Can a sensor be created or configured to monitor a service that has been in the stopping state for a specific amount of time? I would like a notification or run an external program if a service has been in the stopping state for over 30 seconds.
Article Comments
Attention: This article is a record of a conversation with the Paessler support team. The information in this conversation is not updated to preserve the historical record. As a result, some of the information or recommendations in this conversation might be out of date.
I'm afraid that's not possible with the built-in WMI service sensor.
However, you could write a Custom script sensor that processes the Status field in this WMI class:
http://msdn.microsoft.com/en-us/library/aa394418%28v=VS.85%29.aspx
and then configure your notification accordingly.
Kind regards,
- Volker
May, 2011 - Permalink