What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

How to monitor if process is running for more than x mins

Votes:

0

Hi, How to monitor if custom Windows process (i.e. customprocess.exe) runs for more than 15 minutes and then get alert when it does. The normal situation is when the process is NOT running for long time. It runs for a short period of time but should never be stuck for more than 15 minutes. So I'd like to be notified when process runs for longer than it should. Thank you.

process windows wmi

Created on Dec 21, 2016 11:00:58 AM



2 Replies

Votes:

0

Dear kkuderko,

Thank you very much for your KB-Post.

Actually, this is not possible with our native sensors. As an alternative, you might want to try writing your own custom script or application that can be used with our EXE/Script (Advanced) sensor.

Unfortunately, we can't assist in writing custom script sensors for customers as it is too time consuming.

Further information about the sensors and what the expected output of the script/exe has to look like, can be found in the manual:

Kind regards,
Sven

Created on Dec 22, 2016 1:18:08 PM by  Sven Roggenhofer [Paessler Technical Support]

Last change on Dec 22, 2016 1:18:23 PM by  Sven Roggenhofer [Paessler Technical Support]



Votes:

0

Thanks for your advice. Ended up using a GetRunningProcess.vbs script from the thread https://kb.paessler.com/en/topic/66068-check-if-process-is-not-running - sensor EXE/script parameters: customprocess.exe SERVERNAME - sensor security context: Use Windows credentials of parent device - enable Value channel limits > Upper Error Limit (#): 0.5 - enable Notifications: When sensor state is Down for at least 900 seconds perform Email

the solution does the job.

Created on Jan 19, 2017 6:04:42 PM




Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.