Nagios - check_procs Plugin

Sabir Alvi <[email protected]> Thu, 29 Sep 2016 07:06:58 +0000
Newsgroups gmane.network.nagios.plugins
Message-ID <BL2PR04MB20345647E81E7946A628838FAACE0__9111.76437880403$1475140689$gmane$org@BL2PR04MB2034.namprd04.prod.outlook.com>
Hi,

I came across the link  - The check_procs Plugin (https://www.monitoring-plugins.org/doc/man/check_procs.html) as I was looking to monitor specific process count. Which works just fine.
However Nagios reports as Critical if no process is found which is not right in our scenario.

OK - If processes are 0-3
Warning - 4
Critical - 5

$USER1$/check_nrpe -H $HOSTADDRESS$ -c checkProcState -a ShowAll MaxWarnCount=4 MaxCritCount=5 "javaws.exe"

Above is the command that works fine with processes running, however need help in adjusting OK for 0 processes.

Thank You,
Sabir Alvi
Moxie Cloud Services