Re: [Nagios-users] Active and Passive checks of the same service
That's exactly what I described. Altho the docs don't describe toggling active checks on/off, which is the requirement here. You can still do the same using the external commands process. Taylor On Sat, Aug 23, 2008 at 12:16 AM, Thomas Guyot-Sionnest [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 22/08/08 03:45 PM, Taylor Dondich wrote: So a nice round-about way of doing it would be to disable active checks on the service initially. Then when your passive check script detects a problem, not only does it send nagios a passive check RESULT, but it also sends a command to enable active checks on that service. Then your active check script, when it determines the problem has resolved itself, could also send nagios itself a command to disable active checks on that service. Fun way to do it. Information on the commands you need, their description, and sample shell scripts which execute them, are at: http://www.nagios.org/developerinfo/externalcommands/commandlist.php I would rather implement the adaptive monitoring part using eventhandlers. I there's even a section in Nagios doc about adaptive monitoring. Don't miss the list of external commands neither; they're available here: http://www.nagios.org/developerinfo/externalcommands/ Some of them are very useful for altering the monitoring logic. - -- Thomas -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIr7kw6dZ+Kt5BchYRAhW0AJ4iIj/mYdtG1m9wYAHwcjyNRK5+pgCg+Yva d3+4EueprfHxB84t7qXtovY= =KAlq -END PGP SIGNATURE- -- Taylor Check out my Shortcut with O'Reilly Press: Network Monitoring with Nagios: http://oreilly.com/catalog/9780596528195/index.html - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ 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] Linux Question
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thomas Guyot-Sionnest wrote: On 22/08/08 10:46 AM, Edwin Zoeller wrote: We have recently installed Redhat AS4 throughout our network. I have installed various plugins from the Nagios Exchange site for Linux and all seems to be well, except for the check_ram command. I am running this on various servers with different configurations and all are giving the same results. Here is what I have on one of the servers: check_ram -n -w 20MB -c 10MB ( the system has 8GB installed), results display 30MB free (am I doing this right?) Other admins here are disputing the results and claim that Linux buffers all the memory and gives what it needs. I don't know for fact it this is true. I have also run top, free and ps -eo checking on memory size, all give back the same results as the Nagios plugin. Is this plugin with the option chosen giving real memory results or bogus results. My question, in desperation, can anyone explain in very simple terms how Linux memory works? Also how are you monitoring memory, using what command and how it is configured etc. All unused memory gets buffered/cached eventually if your server is doing I/0. I've seen very stable servers with 32GB get down to only a few MBs free, but the picture is much better if you account the buffered/cached memory which for most of it can be freed anytime if needed. For that reason you should add the buffer/cache memory to the total (i.e. the -/+ buffers/cache: line of the free command). My check_memory script does that. it's written in Perl and uses the Nagios::Plugin Perl module (available on CPAN). http://www.nagiosexchange.org/cgi-bin/page.cgi?g=1433.html;d=1 The whole point of this is that unused memory is wasted memory. So if you do not use RAM for aplications itself your system will find a good use for it to speed up the system by using it for buffers and cache. Hugo. - -- [EMAIL PROTECTED] http://hugo.vanderkooij.org/ PGP/GPG? Use: http://hugo.vanderkooij.org/0x58F19981.asc A: Yes. Q: Are you sure? A: Because it reverses the logical flow of conversation. Q: Why is top posting frowned upon? Bored? Click on http://spamornot.org/ and rate those images. -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQFIr8bBBvzDRVjxmYERAlAZAKCWrQ+HVxx5c48bKP9QLjOp87+MLQCcCoR9 sf13K2ppzE5ncjEZ1xaGNro= =8xVk -END PGP SIGNATURE- - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ 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] check_ntp_peer
Hi, When I try to use check_ntp_peer for my OpenBSD timeserver (Openntpd): ./check_ntp_peer -H myname -t 30 -w 0.5 -c 1; the response is: CRITICAL - Socket timeout after 30 seconds ./check_ntp_time -H myname works fine. I can also set the time of my system with #ntpdate myname. Does someone know why I can't use check_ntp_peer? Thanks in advance, Tijn - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ 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] check_ntp_peer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 23/08/08 09:04 PM, Tijn wrote: Hi, When I try to use check_ntp_peer for my OpenBSD timeserver (Openntpd): ./check_ntp_peer -H myname -t 30 -w 0.5 -c 1; the response is: CRITICAL - Socket timeout after 30 seconds ./check_ntp_time -H myname works fine. I can also set the time of my system with #ntpdate myname. Does someone know why I can't use check_ntp_peer? Not all servers support NTP Control packets used by check_ntp_peer. Do you get anything with this command? ntpq -p myname If you don't, then check_ntp_peer won't work either. - -- Thomas -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIsLlG6dZ+Kt5BchYRApkSAKDH0Mw9VWLqBige5cnR5JvYWVSSCgCfeAYO I66XcJrlyU1DH5bQwiEreFw= =HtEw -END PGP SIGNATURE- - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ 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