check_* -w and -c switches

Karl DeBisschop karl at debisschop.net
Fri Mar 5 04:03:11 CET 2004


On Thu, 04 Mar 2004 23:18:09 +0000
"Paul L. Allen" <pla at softflare.com> wrote:

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

The output from check_procs --help is below. 2 paragraphs plus 4
examples. Please feel free to suggest specific improvements.


--cut-- 

RANGEs are specified 'min:max' or 'min:' or ':max' (or 'max'). If
specified 'max:min', a warning status will be generated if the
count is inside the specified range

This plugin checks the number of currently running processes and
generates WARNING or CRITICAL states if the process count is outside
the specified threshold ranges. The process count can be filtered by
process owner, parent process PID, current state (e.g., 'Z'), or may
be the total number of running processes

Examples:
 check_procs -w 2:2 -c 2:1024 -C portsentry
   Warning if not two processes with command name portsentry. Critical
   if < 2 or > 1024 processes

 check_procs -w 10 -a '/usr/local/bin/perl' -u root
   Warning alert if > 10 processes with command arguments containing 
   '/usr/local/bin/perl' and owned by root

 check_procs -w 50000 -c 100000 --metric=VSZ
   Alert if vsz of any processes over 50K or 100K
 check_procs -w 10 -c 20 --metric=CPU
   Alert if cpu of any processes over 101001133246r 20%

--cut--

I guess an example for 0 is in order:

./build-redhat/plugins/check_procs -C httpd -w 1: -c 1:
PROCS CRITICAL: 0 processes with command name 'httpd'

I'll add that now. Anything else?

--
Karl


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