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.
Checking number of process in windows
Checking number of process in windows
Regards,
Ranjit W
Ranjit W
Re: Checking number of process in windows
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:
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.
On the windows client, modify nsclient.ini and add this to the end:
Code: Select all
[/settings/NRPE/server]
allow arguments = true
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
Re: Checking number of process in windows
Hi rkennedy,
Thanks this is helpful. Please close the post.
Thanks this is helpful. Please close the post.
Regards,
Ranjit W
Ranjit W