Page 1 of 1
Need Advice on Monitoring a Process That Runs Occasionally
Posted: Fri Sep 01, 2017 8:32 am
by nguytran
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.
Re: Need Advice on Monitoring a Process That Runs Occasional
Posted: Fri Sep 01, 2017 10:01 am
by scottwilkerson
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
Re: Need Advice on Monitoring a Process That Runs Occasional
Posted: Fri Sep 01, 2017 10:33 am
by nguytran
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.
Re: Need Advice on Monitoring a Process That Runs Occasional
Posted: Fri Sep 01, 2017 11:09 am
by scottwilkerson
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
Posted: Wed Oct 11, 2017 10:50 am
by nguytran
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
Posted: Wed Oct 11, 2017 1:17 pm
by kyang
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!