Check for duplicate processes
Check for duplicate processes
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
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.
Try it out and see if it works for you.
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
Be sure to check out our Knowledgebase for helpful articles and solutions!