Need Advice on Monitoring a Process That Runs Occasionally

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
nguytran
Posts: 3
Joined: Tue Aug 22, 2017 9:17 am

Need Advice on Monitoring a Process That Runs Occasionally

Post 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.
scottwilkerson
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

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
nguytran
Posts: 3
Joined: Tue Aug 22, 2017 9:17 am

Re: Need Advice on Monitoring a Process That Runs Occasional

Post 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.
scottwilkerson
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

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
nguytran
Posts: 3
Joined: Tue Aug 22, 2017 9:17 am

Re: Need Advice on Monitoring a Process That Runs Occasional

Post by nguytran »

Is there documentation available to help set up this vbscript for monitoring on Nagios xi?
kyang

Re: Need Advice on Monitoring a Process That Runs Occasional

Post 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!
Locked