check_* -w and -c switches

Geoff Rispin grispin at paradata.com
Fri Mar 5 01:29:12 CET 2004


you want to use the -l flag.   RTFM

-----Original Message-----
From: Paul L. Allen [mailto:pla at softflare.com]
Sent: Thursday, March 04, 2004 3:18 PM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] Re: check_* -w and -c switches


Jason Lixfeld writes: 

> 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.

Take a look at the plugin developers' guidelines.  There's a section
on specifying ranges which give a minimum and/or maximum value that
will do what you want.  Not all plugins support that syntax.  Most of
the ones that do support the syntax don't explain it to you.  Check_procs
does support it, and I use it to check that 1 instance of a process is
running, or that a minimum of x processes are running (we have fax
servers where I need to know that 1 copy of hfaxd is running and two
copies of faxgetty are running). 

Maybe the details ought to be in the FAQ, but since many plugins don't
support the range syntax, that might be a bad idea.  It would probably be
better if the plugins that did support ranges explained them in more
detail. 

-- 
Paul Allen
Softflare Support 




-------------------------------------------------------
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


-------------------------------------------------------
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_id70&alloc_id638&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