Re: [Nagios-users] check_snmp OID integer /10
You can always write a script that acts as a wrapper around check_snmp if you want prettier info displayed. Jeffrey. 2012/2/1 Sánta József > Hi! > > ** ** > > I have a temperature SNMP device. > > ** ** > > snmpget 10.0.0.63 1.3.6.1.4.1.17095.4.1.3.3.0 -c public -v 1 > > iso.3.6.1.4.1.17095.4.1.3.3.0 = INTEGER: 40 > > ** ** > > But I like /10 of the integer… > > ** ** > > Something like this: > > ** ** > > [oid("1.3.6.1.4.1.17095.4.1.3.3.0")/10]°C > > ** ** > > How to add this to the check_snmp command? > > ** ** > > Thanks! > > > ** > -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] Fwd: Re: FW: NDOUtils Error writing to data sink! Some output may get lost. xxx queued items to flush
Hi Jonny Thanks for the suggestion. That user name and password is correct. I am also able to login to the Nagios_Reporting with the above details Sent from Samsung Mobile Original message Subject: Re: [Nagios-users] FW: NDOUtils Error writing to data sink! Some output may get lost. xxx queued items to flush From: Jonny Mosco To: Nagios Users List CC: In ndo2db.cfg, is the username and password to connect to the db correct? db_user=nagios db_pass=nagios I had a similar error, and that was how I fixed it. On Fri, Feb 3, 2012 at 12:37 PM, FTL Nagios wrote: Ok so for no apparent reason as nothing has changed from me writing the original email the log has now logged something new [1328289822] ndomod: Successfully reconnected to data sink! 0 items lost, 328 queued items to flush. [1328289822] ndomod: Error writing to data sink! Some output may get lost. 47 queued items to flush. [1328289838] ndomod: Successfully reconnected to data sink! 0 items lost, 189 queued items to flush. [1328289838] ndomod: Successfully flushed 189 queued items to data sink. [1328289838] ndomod: Error writing to data sink! Some output may get lost… [1328289838] ndomod: Please check remote ndo2db log, database connection or SSL parameters [1328289854] ndomod: Successfully reconnected to data sink! 0 items lost, 192 queued items to flush. [1328289854] ndomod: Successfully flushed 192 queued items to data sink. [1328289854] ndomod: Error writing to data sink! Some output may get lost… [1328289854] ndomod: Please check remote ndo2db log, database connection or SSL parameters So it started at least flushing stuff if not logging But then a few minutes later back to normal [1328290414] ndomod: Successfully reconnected to data sink! 0 items lost, 397 queued items to flush [1328290414] ndomod: Error writing to data sink! Some output may get lost. 139 queued items to flush Nothing at all has changed. This will drive me drink, I know it From: Andrew Thompson [mailto:and...@fulgent.co.uk] Sent: 03 February 2012 17:06 To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] NDOUtils Error writing to data sink! Some output may get lost. xxx queued items to flush Hi all, Ubuntu 11.04 32bit Desktop edition NDOUtils 1.4b9 Im trying to install NDOUtils so I can get Nagios writing its log files to MYSQL. But im not having much luck. I have followed the install guide to the letter: http://nagios.sourceforge.net/docs/ndoutils/NDOUtils.pdf When all said and done that fires out this entry in the nagios.log: [1328283956] ndomod: NDOMOD 1.4b9 (10-27-2009) Copyright © 2009 Nagios Core Development Team and Community Contributors [1328283956] ndomod: Could not open data sink! I’ll keep trying, but some output may get lost… [1328283956] Event broker module ‘/usr/local/nagios/bin/ndomod-3x.o’ initialized successfully. [1328283956] Finished daemonizing… (New PID=5771) So did a bit of googling and then :- Chmod 755 /usr/local/nagios/bin/ndo2db-3x Chmod 755 /usr/local/nagios/bin/ndomod-3x.o Restarted the ndomod and nagios services/processes and got somewhere [1328284715] ndomod: NDOMOD 1.4b9 (10-27-2009) Copyright © 2009 Nagios Core Development Team and Community Contributors [1328284715] ndomod: Successfully connected to data sink. 0 queued items to flush. [1328284715] Event broker module ‘/usr/local/nagios/bin/ndomod-3x.o’ initialized successfully. [1328284715] ndomod: Error writing to data sink! Some output may get lost… [1328284715] Please check remote ndo2db log, database connection or SSL Parameters [1328284715] Finished daemonizing… (New PID=13760) So did a bit more googling and I then:- Chmod 775 /usr/local/nagios/etc/ndo2db.cfg Chmod 775 /usr/local/nagios/etc/ndomod.cfg Chown nagios:nagios /usr/local/nagios.etc.ndo* Restarted the ndomod and nagios services/processes and got a bit further – No check log/db/parameters error [1328285023] ndomod: NDOMOD 1.4b9 (10-27-2009) Copyright © 2009 Nagios Core Development Team and Community Contributors [1328285023] ndomod: Successfully connected to data sink. 2793 queued items to flush. [1328285023] ndomod: Error writing to data sink! Some output may get lost. 2554 queued items to flush [1328285023] Event broker module ‘/usr/local/nagios/bin/ndomod-3x.o’ initialized successfully. [1328285023] Finished daemonizing… (New PID=17107) Then read to change the perms on the ndo.sock file, so: Chmod 775 /usr/local/nagios/var/ndo.sock But still the same output: [1328285748] ndomod: NDOMOD 1.4b9 (10-27-2009) Copyright © 2009 Nagios Core Development Team and Community Contributors [1328285748] ndomod: Successfully connected to data sink. 957 queued items to flush. [1328285748] ndomod: Error writing to data sink! Some output may get lost. 2374 queued items to flush [1328285748] E
Re: [Nagios-users] FW: NDOUtils Error writing to data sink! Some output may get lost. xxx queued items to flush
In ndo2db.cfg, is the username and password to connect to the db correct? db_user=nagios db_pass=nagios I had a similar error, and that was how I fixed it. On Fri, Feb 3, 2012 at 12:37 PM, FTL Nagios wrote: > Ok so for no apparent reason as nothing has changed from me writing the > original email the log has now logged something new > > ** ** > > [1328289822] ndomod: Successfully reconnected to data sink! 0 items lost, > 328 queued items to flush. > > [1328289822] ndomod: Error writing to data sink! Some output may get lost. > 47 queued items to flush. > > ** ** > > [1328289838] ndomod: Successfully reconnected to data sink! 0 items lost, > 189 queued items to flush. > > [1328289838] ndomod: Successfully flushed 189 queued items to data sink.** > ** > > [1328289838] ndomod: Error writing to data sink! Some output may get lost… > > > [1328289838] ndomod: Please check remote ndo2db log, database connection > or SSL parameters > > [1328289854] ndomod: Successfully reconnected to data sink! 0 items lost, > 192 queued items to flush. > > [1328289854] ndomod: Successfully flushed 192 queued items to data sink.** > ** > > [1328289854] ndomod: Error writing to data sink! Some output may get lost… > > > [1328289854] ndomod: Please check remote ndo2db log, database connection > or SSL parameters > > ** ** > > So it started at least flushing stuff if not logging > > ** ** > > But then a few minutes later back to normal > > ** ** > > [1328290414] ndomod: Successfully reconnected to data sink! 0 items lost, > 397 queued items to flush > > [1328290414] ndomod: Error writing to data sink! Some output may get > lost. 139 queued items to flush > > ** ** > > ** ** > > Nothing at all has changed. > > ** ** > > This will drive me drink, I know it > > ** ** > > ** ** > > *From:* Andrew Thompson [mailto:and...@fulgent.co.uk] > *Sent:* 03 February 2012 17:06 > *To:* nagios-users@lists.sourceforge.net > *Subject:* [Nagios-users] NDOUtils Error writing to data sink! Some > output may get lost. xxx queued items to flush > > ** ** > > Hi all, > > ** ** > > Ubuntu 11.04 32bit Desktop edition > > NDOUtils 1.4b9 > > ** ** > > ** ** > > ** ** > > Im trying to install NDOUtils so I can get Nagios writing its log files to > MYSQL. > > ** ** > > But im not having much luck. > > ** ** > > I have followed the install guide to the letter: > http://nagios.sourceforge.net/docs/ndoutils/NDOUtils.pdf > > ** ** > > When all said and done that fires out this entry in the nagios.log: > > ** ** > > [1328283956] ndomod: NDOMOD 1.4b9 (10-27-2009) Copyright © 2009 Nagios > Core Development Team and Community Contributors > > [1328283956] ndomod: Could not open data sink! I’ll keep trying, but some > output may get lost… > > [1328283956] Event broker module ‘/usr/local/nagios/bin/ndomod-3x.o’ > initialized successfully. > > [1328283956] Finished daemonizing… (New PID=5771) > > ** ** > > ** ** > > ** ** > > So did a bit of googling and then :- > > ** ** > > Chmod 755 /usr/local/nagios/bin/ndo2db-3x > > Chmod 755 /usr/local/nagios/bin/ndomod-3x.o > > ** ** > > ** ** > > ** ** > > Restarted the ndomod and nagios services/processes and got somewhere > > ** ** > > [1328284715] ndomod: NDOMOD 1.4b9 (10-27-2009) Copyright © 2009 Nagios > Core Development Team and Community Contributors > > [1328284715] ndomod: Successfully connected to data sink. 0 queued items > to flush. > > [1328284715] Event broker module ‘/usr/local/nagios/bin/ndomod-3x.o’ > initialized successfully. > > [1328284715] ndomod: Error writing to data sink! Some output may get lost… > > > [1328284715] Please check remote ndo2db log, database connection or SSL > Parameters > > [1328284715] Finished daemonizing… (New PID=13760) > > ** ** > > ** ** > > ** ** > > So did a bit more googling and I then:- > > ** ** > > Chmod 775 /usr/local/nagios/etc/ndo2db.cfg > > Chmod 775 /usr/local/nagios/etc/ndomod.cfg > > Chown nagios:nagios /usr/local/nagios.etc.ndo* > > ** ** > > ** ** > > ** ** > > Restarted the ndomod and nagios services/processes and got a bit further – > No check log/db/parameters error > > ** ** > > ** ** > > [1328285023] ndomod: NDOMOD 1.4b9 (10-27-2009) Copyright © 2009 Nagios > Core Development Team and Community Contributors > > [1328285023] ndomod: Successfully connected to data sink. 2793 queued > items to flush. > > [1328285023] ndomod: Error writing to data sink! Some output may get lost. > 2554 queued items to flush > > [1328285023] Event broker module ‘/usr/local/nagios/bin/ndomod-3x.o’ > initialized successfully. > > [1328285023] Finished daemonizing… (New PID=17107) > > ** ** > > ** ** > > ** ** > > Then read to change the perms on the ndo.sock file, so: > > ** ** > > Chmod 775 /usr/local/nagios/var/ndo.sock > > ** ** > > ** ** > > But still the same output: > > **
[Nagios-users] FW: NDOUtils Error writing to data sink! Some output may get lost. xxx queued items to flush
Ok so for no apparent reason as nothing has changed from me writing the original email the log has now logged something new [1328289822] ndomod: Successfully reconnected to data sink! 0 items lost, 328 queued items to flush. [1328289822] ndomod: Error writing to data sink! Some output may get lost. 47 queued items to flush. [1328289838] ndomod: Successfully reconnected to data sink! 0 items lost, 189 queued items to flush. [1328289838] ndomod: Successfully flushed 189 queued items to data sink. [1328289838] ndomod: Error writing to data sink! Some output may get lost. [1328289838] ndomod: Please check remote ndo2db log, database connection or SSL parameters [1328289854] ndomod: Successfully reconnected to data sink! 0 items lost, 192 queued items to flush. [1328289854] ndomod: Successfully flushed 192 queued items to data sink. [1328289854] ndomod: Error writing to data sink! Some output may get lost. [1328289854] ndomod: Please check remote ndo2db log, database connection or SSL parameters So it started at least flushing stuff if not logging But then a few minutes later back to normal [1328290414] ndomod: Successfully reconnected to data sink! 0 items lost, 397 queued items to flush [1328290414] ndomod: Error writing to data sink! Some output may get lost. 139 queued items to flush Nothing at all has changed. This will drive me drink, I know it From: Andrew Thompson [mailto:and...@fulgent.co.uk] Sent: 03 February 2012 17:06 To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] NDOUtils Error writing to data sink! Some output may get lost. xxx queued items to flush Hi all, Ubuntu 11.04 32bit Desktop edition NDOUtils 1.4b9 Im trying to install NDOUtils so I can get Nagios writing its log files to MYSQL. But im not having much luck. I have followed the install guide to the letter: http://nagios.sourceforge.net/docs/ndoutils/NDOUtils.pdf When all said and done that fires out this entry in the nagios.log: [1328283956] ndomod: NDOMOD 1.4b9 (10-27-2009) Copyright C 2009 Nagios Core Development Team and Community Contributors [1328283956] ndomod: Could not open data sink! I'll keep trying, but some output may get lost. [1328283956] Event broker module '/usr/local/nagios/bin/ndomod-3x.o' initialized successfully. [1328283956] Finished daemonizing. (New PID=5771) So did a bit of googling and then :- Chmod 755 /usr/local/nagios/bin/ndo2db-3x Chmod 755 /usr/local/nagios/bin/ndomod-3x.o Restarted the ndomod and nagios services/processes and got somewhere [1328284715] ndomod: NDOMOD 1.4b9 (10-27-2009) Copyright C 2009 Nagios Core Development Team and Community Contributors [1328284715] ndomod: Successfully connected to data sink. 0 queued items to flush. [1328284715] Event broker module '/usr/local/nagios/bin/ndomod-3x.o' initialized successfully. [1328284715] ndomod: Error writing to data sink! Some output may get lost. [1328284715] Please check remote ndo2db log, database connection or SSL Parameters [1328284715] Finished daemonizing. (New PID=13760) So did a bit more googling and I then:- Chmod 775 /usr/local/nagios/etc/ndo2db.cfg Chmod 775 /usr/local/nagios/etc/ndomod.cfg Chown nagios:nagios /usr/local/nagios.etc.ndo* Restarted the ndomod and nagios services/processes and got a bit further - No check log/db/parameters error [1328285023] ndomod: NDOMOD 1.4b9 (10-27-2009) Copyright C 2009 Nagios Core Development Team and Community Contributors [1328285023] ndomod: Successfully connected to data sink. 2793 queued items to flush. [1328285023] ndomod: Error writing to data sink! Some output may get lost. 2554 queued items to flush [1328285023] Event broker module '/usr/local/nagios/bin/ndomod-3x.o' initialized successfully. [1328285023] Finished daemonizing. (New PID=17107) Then read to change the perms on the ndo.sock file, so: Chmod 775 /usr/local/nagios/var/ndo.sock But still the same output: [1328285748] ndomod: NDOMOD 1.4b9 (10-27-2009) Copyright C 2009 Nagios Core Development Team and Community Contributors [1328285748] ndomod: Successfully connected to data sink. 957 queued items to flush. [1328285748] ndomod: Error writing to data sink! Some output may get lost. 2374 queued items to flush [1328285748] Event broker module '/usr/local/nagios/bin/ndomod-3x.o' initialized successfully. [1328285748] Finished daemonizing. (New PID=19520) My 2 config files can be found here: Ndomod.cfg - http://dl.dropbox.com/u/895609/ndomod.cfg Ndo2db.cfg - http://dl.dropbox.com/u/895609/ndo2db.cfg Can anybody please help me? This has to be permission related im sure of it but I cannot solve it. Thankyou in advance -- Try before you buy = See our experts in action! The most comprehensive online learning library for Mi
Re: [Nagios-users] NDOUtils Error writing to data sink! Some output may get lost. xxx queued items to flush
Ok so for no apparent reason as nothing has changed from me writing the original email the log has now logged something new [1328289822] [1328289822] [1328289822] [1328289822] [1328289822] [1328289822] [1328289822] [1328289822] [1328289822] [1328289822] [1328289822] [1328289822] [1328289822] [1328289822] [1328289822] [1328289822] [1328289822] [1328289822] [1328289822] [1328289822] From: Andrew Thompson [mailto:and...@fulgent.co.uk] Sent: 03 February 2012 17:06 To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] NDOUtils Error writing to data sink! Some output may get lost. xxx queued items to flush Hi all, Ubuntu 11.04 32bit Desktop edition NDOUtils 1.4b9 Im trying to install NDOUtils so I can get Nagios writing its log files to MYSQL. But im not having much luck. I have followed the install guide to the letter: http://nagios.sourceforge.net/docs/ndoutils/NDOUtils.pdf When all said and done that fires out this entry in the nagios.log: [1328283956] ndomod: NDOMOD 1.4b9 (10-27-2009) Copyright C 2009 Nagios Core Development Team and Community Contributors [1328283956] ndomod: Could not open data sink! I'll keep trying, but some output may get lost. [1328283956] Event broker module '/usr/local/nagios/bin/ndomod-3x.o' initialized successfully. [1328283956] Finished daemonizing. (New PID=5771) So did a bit of googling and then :- Chmod 755 /usr/local/nagios/bin/ndo2db-3x Chmod 755 /usr/local/nagios/bin/ndomod-3x.o Restarted the ndomod and nagios services/processes and got somewhere [1328284715] ndomod: NDOMOD 1.4b9 (10-27-2009) Copyright C 2009 Nagios Core Development Team and Community Contributors [1328284715] ndomod: Successfully connected to data sink. 0 queued items to flush. [1328284715] Event broker module '/usr/local/nagios/bin/ndomod-3x.o' initialized successfully. [1328284715] ndomod: Error writing to data sink! Some output may get lost. [1328284715] Please check remote ndo2db log, database connection or SSL Parameters [1328284715] Finished daemonizing. (New PID=13760) So did a bit more googling and I then:- Chmod 775 /usr/local/nagios/etc/ndo2db.cfg Chmod 775 /usr/local/nagios/etc/ndomod.cfg Chown nagios:nagios /usr/local/nagios.etc.ndo* Restarted the ndomod and nagios services/processes and got a bit further - No check log/db/parameters error [1328285023] ndomod: NDOMOD 1.4b9 (10-27-2009) Copyright C 2009 Nagios Core Development Team and Community Contributors [1328285023] ndomod: Successfully connected to data sink. 2793 queued items to flush. [1328285023] ndomod: Error writing to data sink! Some output may get lost. 2554 queued items to flush [1328285023] Event broker module '/usr/local/nagios/bin/ndomod-3x.o' initialized successfully. [1328285023] Finished daemonizing. (New PID=17107) Then read to change the perms on the ndo.sock file, so: Chmod 775 /usr/local/nagios/var/ndo.sock But still the same output: [1328285748] ndomod: NDOMOD 1.4b9 (10-27-2009) Copyright C 2009 Nagios Core Development Team and Community Contributors [1328285748] ndomod: Successfully connected to data sink. 957 queued items to flush. [1328285748] ndomod: Error writing to data sink! Some output may get lost. 2374 queued items to flush [1328285748] Event broker module '/usr/local/nagios/bin/ndomod-3x.o' initialized successfully. [1328285748] Finished daemonizing. (New PID=19520) My 2 config files can be found here: Ndomod.cfg - http://dl.dropbox.com/u/895609/ndomod.cfg Ndo2db.cfg - http://dl.dropbox.com/u/895609/ndo2db.cfg Can anybody please help me? This has to be permission related im sure of it but I cannot solve it. Thankyou in advance -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] NDOUtils Error writing to data sink! Some output may get lost. xxx queued items to flush
Ok so for no reason nothing has changed from em writing the end of this email I now see [1328289822] ndomod: Successfully reconnected to data sink! 0 items lost, 328 queued items to flush. [1328289822] ndomod: Error writing to data sink! Some output may get lost. 47 queued items to flush. [1328289822] [1328289822] [1328289822] [1328289822] [1328289822] [1328289822] [1328289822] [1328289822] [1328289822] From: Andrew Thompson [mailto:and...@fulgent.co.uk] Sent: 03 February 2012 17:06 To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] NDOUtils Error writing to data sink! Some output may get lost. xxx queued items to flush Hi all, Ubuntu 11.04 32bit Desktop edition NDOUtils 1.4b9 Im trying to install NDOUtils so I can get Nagios writing its log files to MYSQL. But im not having much luck. I have followed the install guide to the letter: http://nagios.sourceforge.net/docs/ndoutils/NDOUtils.pdf When all said and done that fires out this entry in the nagios.log: [1328283956] ndomod: NDOMOD 1.4b9 (10-27-2009) Copyright C 2009 Nagios Core Development Team and Community Contributors [1328283956] ndomod: Could not open data sink! I'll keep trying, but some output may get lost. [1328283956] Event broker module '/usr/local/nagios/bin/ndomod-3x.o' initialized successfully. [1328283956] Finished daemonizing. (New PID=5771) So did a bit of googling and then :- Chmod 755 /usr/local/nagios/bin/ndo2db-3x Chmod 755 /usr/local/nagios/bin/ndomod-3x.o Restarted the ndomod and nagios services/processes and got somewhere [1328284715] ndomod: NDOMOD 1.4b9 (10-27-2009) Copyright C 2009 Nagios Core Development Team and Community Contributors [1328284715] ndomod: Successfully connected to data sink. 0 queued items to flush. [1328284715] Event broker module '/usr/local/nagios/bin/ndomod-3x.o' initialized successfully. [1328284715] ndomod: Error writing to data sink! Some output may get lost. [1328284715] Please check remote ndo2db log, database connection or SSL Parameters [1328284715] Finished daemonizing. (New PID=13760) So did a bit more googling and I then:- Chmod 775 /usr/local/nagios/etc/ndo2db.cfg Chmod 775 /usr/local/nagios/etc/ndomod.cfg Chown nagios:nagios /usr/local/nagios.etc.ndo* Restarted the ndomod and nagios services/processes and got a bit further - No check log/db/parameters error [1328285023] ndomod: NDOMOD 1.4b9 (10-27-2009) Copyright C 2009 Nagios Core Development Team and Community Contributors [1328285023] ndomod: Successfully connected to data sink. 2793 queued items to flush. [1328285023] ndomod: Error writing to data sink! Some output may get lost. 2554 queued items to flush [1328285023] Event broker module '/usr/local/nagios/bin/ndomod-3x.o' initialized successfully. [1328285023] Finished daemonizing. (New PID=17107) Then read to change the perms on the ndo.sock file, so: Chmod 775 /usr/local/nagios/var/ndo.sock But still the same output: [1328285748] ndomod: NDOMOD 1.4b9 (10-27-2009) Copyright C 2009 Nagios Core Development Team and Community Contributors [1328285748] ndomod: Successfully connected to data sink. 957 queued items to flush. [1328285748] ndomod: Error writing to data sink! Some output may get lost. 2374 queued items to flush [1328285748] Event broker module '/usr/local/nagios/bin/ndomod-3x.o' initialized successfully. [1328285748] Finished daemonizing. (New PID=19520) My 2 config files can be found here: Ndomod.cfg - http://dl.dropbox.com/u/895609/ndomod.cfg Ndo2db.cfg - http://dl.dropbox.com/u/895609/ndo2db.cfg Can anybody please help me? This has to be permission related im sure of it but I cannot solve it. Thankyou in advance -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] NDOUtils Error writing to data sink! Some output may get lost. xxx queued items to flush
Hi all, Ubuntu 11.04 32bit Desktop edition NDOUtils 1.4b9 Im trying to install NDOUtils so I can get Nagios writing its log files to MYSQL. But im not having much luck. I have followed the install guide to the letter: http://nagios.sourceforge.net/docs/ndoutils/NDOUtils.pdf When all said and done that fires out this entry in the nagios.log: [1328283956] ndomod: NDOMOD 1.4b9 (10-27-2009) Copyright (c) 2009 Nagios Core Development Team and Community Contributors [1328283956] ndomod: Could not open data sink! I'll keep trying, but some output may get lost... [1328283956] Event broker module '/usr/local/nagios/bin/ndomod-3x.o' initialized successfully. [1328283956] Finished daemonizing... (New PID=5771) So did a bit of googling and then :- Chmod 755 /usr/local/nagios/bin/ndo2db-3x Chmod 755 /usr/local/nagios/bin/ndomod-3x.o Restarted the ndomod and nagios services/processes and got somewhere [1328284715] ndomod: NDOMOD 1.4b9 (10-27-2009) Copyright (c) 2009 Nagios Core Development Team and Community Contributors [1328284715] ndomod: Successfully connected to data sink. 0 queued items to flush. [1328284715] Event broker module '/usr/local/nagios/bin/ndomod-3x.o' initialized successfully. [1328284715] ndomod: Error writing to data sink! Some output may get lost... [1328284715] Please check remote ndo2db log, database connection or SSL Parameters [1328284715] Finished daemonizing... (New PID=13760) So did a bit more googling and I then:- Chmod 775 /usr/local/nagios/etc/ndo2db.cfg Chmod 775 /usr/local/nagios/etc/ndomod.cfg Chown nagios:nagios /usr/local/nagios.etc.ndo* Restarted the ndomod and nagios services/processes and got a bit further - No check log/db/parameters error [1328285023] ndomod: NDOMOD 1.4b9 (10-27-2009) Copyright (c) 2009 Nagios Core Development Team and Community Contributors [1328285023] ndomod: Successfully connected to data sink. 2793 queued items to flush. [1328285023] ndomod: Error writing to data sink! Some output may get lost. 2554 queued items to flush [1328285023] Event broker module '/usr/local/nagios/bin/ndomod-3x.o' initialized successfully. [1328285023] Finished daemonizing... (New PID=17107) Then read to change the perms on the ndo.sock file, so: Chmod 775 /usr/local/nagios/var/ndo.sock But still the same output: [1328285748] ndomod: NDOMOD 1.4b9 (10-27-2009) Copyright (c) 2009 Nagios Core Development Team and Community Contributors [1328285748] ndomod: Successfully connected to data sink. 957 queued items to flush. [1328285748] ndomod: Error writing to data sink! Some output may get lost. 2374 queued items to flush [1328285748] Event broker module '/usr/local/nagios/bin/ndomod-3x.o' initialized successfully. [1328285748] Finished daemonizing... (New PID=19520) My 2 config files can be found here: Ndomod.cfg - http://dl.dropbox.com/u/895609/ndomod.cfg Ndo2db.cfg - http://dl.dropbox.com/u/895609/ndo2db.cfg Can anybody please help me? This has to be permission related im sure of it but I cannot solve it. Thankyou in advance -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] [SPAM] Re: Issue with distributed Host checks
You can try and remove the active_checks_enabled1 from the host config , the fact that it is enabled make nagios see the change and then trigger the active check which will be the 2nd status update ( from up to down) and hence make it a hard state . if you do not trigger the active check , the master nagios will log the status change and then wait for the worker's next update. Assaf Mike Lindsey wrote: > I'm seeing oddities with my host checks. These are all on 3.2.1, and I > do not have Host dependencies for the hosts in question. > > A worker node will detect a host as being down and send back a soft > passive result. > > In many cases, the master will then immediately perform an active host > check which is NOT logged. That host check will result in a hard state > change, even though host checks are set for 2 retries at 1 minute intervals. > > Anyone know what's going on, or do I need to go read the source? > > Here's the relevant entries from the master node's nagios.cfg: > $ grep host nagios.cfg > accept_passive_host_checks=1 > cached_host_check_horizon=15 > check_for_orphaned_hosts=0 > check_host_freshness=0 > enable_predictive_host_dependency_checks=1 > execute_host_checks=0 > global_host_event_handler=event_handler > high_host_flap_threshold=20.0 > host_check_timeout=30 > host_freshness_check_interval=60 > host_inter_check_delay_method=s > host_perfdata_file=/usr/local/nagios/var/host-perfdata.dat > host_perfdata_file_mode=a > log_host_retries=1 > low_host_flap_threshold=5.0 > max_host_check_spread=30 > obsess_over_hosts=0 > passive_host_checks_are_soft=1 > retained_contact_host_attribute_mask=0 > retained_host_attribute_mask=0 > retained_process_host_attribute_mask=0 > translate_passive_host_checks=0 > use_aggressive_host_checking=0 > > And here's an example host object: > define host { > host_name > address > hostgroups > All,cres,cres-dbss,cres-prod-dbss,cres-prod-dbss.soma,dbss,linux2,soma > check_command check-host-alive > max_check_attempts 2 > check_interval 3 > retry_interval 1 > active_checks_enabled1 > passive_checks_enabled 1 > check_period24x7 > obsess_over_host1 > check_freshness 1 > flap_detection_enabled 1 > process_perf_data 0 > retain_status_information 1 > retain_nonstatus_information 0 > contact_groups sysops > notifications_enabled 1 > notification_interval 60 > notification_period 24x7 > notification_options d,u,r,f > notes_url > https:///cacti/graph_view.php?action=preview&host_id=0&graph_template_id=0&filter= > action_url /nagios/cgi-bin/extui.py?host=.com > _ENVIRONMENTprod > _HARDWARE R710 > _LOCATION soma > _OS Linux 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 > EDT 2009 x86_64 > _PORTFOLIO Encryption > _PRODUCTcres > _PURPOSEdbss > _RACK 07--11 > _SERIAL 536QNM1 > _SOURCE ASDB/Servers > _SOURCE_URL https:///servers/admin/servers/server/3363/ > __SNMP_COMMUNITY > } > > -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null