Need Advice on Monitoring a Process That Runs Occasionally

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The SourceForge.net mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

Need Advice on Monitoring a Process That Runs Occasionally

Postby nguytran » Fri Sep 01, 2017 8:32 am

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

Re: Need Advice on Monitoring a Process That Runs Occasional

Postby scottwilkerson » Fri Sep 01, 2017 10:01 am

I think this is the perfect plugin for the job I just found on the Nagios Exchange
https://exchange.nagios.org/directory/Plugins/Operating-Systems/Windows-NRPE/Check-Process-Runtime/details
User avatar
scottwilkerson
CTO
 
Posts: 7903
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Need Advice on Monitoring a Process That Runs Occasional

Postby nguytran » Fri Sep 01, 2017 10:33 am

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

Re: Need Advice on Monitoring a Process That Runs Occasional

Postby scottwilkerson » Fri Sep 01, 2017 11:09 am

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
User avatar
scottwilkerson
CTO
 
Posts: 7903
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Need Advice on Monitoring a Process That Runs Occasional

Postby nguytran » Wed Oct 11, 2017 10:50 am

Is there documentation available to help set up this vbscript for monitoring on Nagios xi?
nguytran
 
Posts: 3
Joined: Tue Aug 22, 2017 9:17 am

Re: Need Advice on Monitoring a Process That Runs Occasional

Postby kyang » Wed Oct 11, 2017 1:17 pm

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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
kyang
 
Posts: 351
Joined: Tue Jul 25, 2017 3:35 pm


Return to Nagios Core

Who is online

Users browsing this forum: Bing [Bot] and 20 guests