Check for duplicate processes

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
jkinning
Posts: 748
Joined: Wed Oct 09, 2013 2:54 pm

Check for duplicate processes

Post 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.
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Check for duplicate processes

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked