Need Advice on Monitoring a Process That Runs Occasionally
Need Advice on Monitoring a Process That Runs Occasionally
What is the best way to monitor a .exe process on a server? It does not run all the time, but if it does run, we do not want it to run over a certain amount of minutes. We are using Nagios XI and have installed NSClient++ on the server.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Need Advice on Monitoring a Process That Runs Occasional
I think this is the perfect plugin for the job I just found on the Nagios Exchange
https://exchange.nagios.org/directory/P ... me/details
https://exchange.nagios.org/directory/P ... me/details
Re: Need Advice on Monitoring a Process That Runs Occasional
Thanks! Are you able to show where to input the minutes in the file? I want to make sure I am entering in the correct place.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Need Advice on Monitoring a Process That Runs Occasional
I did not text the plugin but according to the top of the file you can test it like this
Code: Select all
cscript process_runtime.vbs /p:calc.exe /c:10
Re: Need Advice on Monitoring a Process That Runs Occasional
Is there documentation available to help set up this vbscript for monitoring on Nagios xi?
Re: Need Advice on Monitoring a Process That Runs Occasional
Here's an article for setting up a VBScript in Nagios and testing it.
Make sure you follow the instructions and add your VBScript into the C:\Program Files\NSClient++\scripts folder.
https://support.nagios.com/kb/article.php?id=528
Hope this helps!
Make sure you follow the instructions and add your VBScript into the C:\Program Files\NSClient++\scripts folder.
https://support.nagios.com/kb/article.php?id=528
Hope this helps!