I need to monitor how long a process runs. Usually it rund 2 Second, but some time it runs for hours. an i need to know when that happens.

any ideas?


Article Comments

You can use a WMI Process Sensor. It has one channel called "instances". It is the number of times the process is running.

Since the sensor returns a error if no process with this name is found you need to create a "dummy" process with the same name that is always running (but requires no resources).

Then the instances will show a 1 for not running (only the dummy process) and 2 and above if the process is running.

You can then set a notification if this channel is bigger than 1 with a latency of e.g. 15min. Then you will get a notification if the process is running longer than 15min.


Mar, 2013 - Permalink