check_* -w and -c switches
Jason Lixfeld
jason+lists.nagios at lixfeld.ca
Thu Mar 4 21:55:58 CET 2004
Ok, I'm trying to figure out the -w and -c switches for nagios in
conjunction with the check_procs plugin.
If I'm monitoring a single process that doesn't spawn, I can't figure
out how to get nagios to understand that if it checks and finds 0
processes, that it's a bad thing. Here's an example:
su-2.05b# /usr/local/libexec/nagios/check_procs -w 1 -c 1 -C fooproc
OK - 0 processes running with command name fooproc
su-2.05b# /usr/local/libexec/nagios/check_procs -w 1 -C fooproc
OK - 0 processes running with command name fooproc
su-2.05b# /usr/local/libexec/nagios/check_procs -c 1 -C fooproc
OK - 0 processes running with command name fooproc
su-2.05b# /usr/local/libexec/nagios/check_procs -w 0 -c 0 -C fooproc
OK - 0 processes running with command name fooproc
Even if I set it to a higher value, it still things that 0 is a good
thing :(
su-2.05b# /usr/local/libexec/nagios/check_procs -w 5 -c 10 -C fooproc
OK - 0 processes running with command name fooproc
su-2.05b#
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at 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
More information about the Users
mailing list