using check_procs to check number of occurrences of a certain process

Ayotunde Itayemi Itayemi.A at ng.celtel.com
Thu Jul 19 14:40:09 CEST 2007


Hi All,

Please I want to use check_procs to warn me if a certain process (say
"myproc") is not running at all (number of processes is equal to zero). 
And also return critical if myproc has more than say 5 occurrences.

The example below is from check_procs' help. I am not sure on how to
adapt it to fit my requirements.

Thank you.

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

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
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