Checking number of process in windows

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ranjitw
Posts: 175
Joined: Tue Sep 01, 2015 1:52 am

Checking number of process in windows

Post by ranjitw »

Hi All,

Could you please suggest what would be Plugin to check the instances of a named process on a remote Windows server ?

eg: if notepad.exe is a process in windows machine and they are 3 instances of notepad I would need a output saying 3 instances are running and criteria for check as if <2 generate critical alarm.

Please provide few examples on using the plugin . It would be of great help. I would need to configure it in Nagios XI.
Regards,
Ranjit W
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Checking number of process in windows

Post by rkennedy »

You can use NSClient++ / NRPE to achieve this. You will need to change the command slightly to fit your exact needs.

On the windows client, modify nsclient.ini and add this to the end:

Code: Select all

[/settings/NRPE/server]
allow arguments = true
From the Nagios XI website, go to 'Configuration' up top, and then click 'Configuration Wizards'. In the search box type NRPE and select the result.

On the next page, enter the IP and select Windows.

Modify these commands to your need, with the 'Remote NRPE Command' being CheckProcState and the Command Args MaxCritCount=3 showall notepad.exe

This will cause a warning if 3 or more notepad.exe's are open, otherwise it will return with OK.
Former Nagios Employee
ranjitw
Posts: 175
Joined: Tue Sep 01, 2015 1:52 am

Re: Checking number of process in windows

Post by ranjitw »

Hi rkennedy,

Thanks this is helpful. Please close the post.
Regards,
Ranjit W
Locked