New Question
 
 
PRTG Network Monitor

Intuitive to Use.
Easy to manage.

200.000 administrators have chosen PRTG to monitor their network. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free PRTG
Download >>

 

What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general. You are invited to get involved by asking and answering questions!

Learn more

 

Top Tags


View all Tags


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

Votes:

0

Your Vote:

Up

Down

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 by  kkuderko (0) 1



2 Replies

Votes:

0

Your Vote:

Up

Down

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

Your Vote:

Up

Down

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 by  kkuderko (0) 1



Please log in or register to enter your reply.


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.