Page 1 of 1

Check for duplicate processes

Posted: Tue Mar 19, 2019 1:26 pm
by jkinning
I am running the NSClient++ on my Windows Server 2012 and Server 2016 and trying to figure out how to check for processes that go wild. I have a COBOL application that runs as cassi.exe. On a few occasions, more than I like to count there can be 4 or 6 cassi.exe running at one time. Looking to figure out how Nagios can notify me when there are more than 2 running. Thanks.

Re: Check for duplicate processes

Posted: Tue Mar 19, 2019 4:23 pm
by tgriep
The following example will send a warning is there are greater than 2 cassi.exe processes running and and a critical if greater than 3.

Code: Select all

./check_nrpe -H xxx.xxx.xxx.xxx -c check_process -a process=cassi.exe "warning=count>2" "critical=count>3" show-all
Try it out and see if it works for you.