On a Windows server, I am trying to monitor the state of a Windows Service that is either running or stopped and trigger if it is stopped for more than 5 minutes.
I created this trigger, but I'm not sure it is as optimal as it could be. Is there a better way to write this trigger expression to accomplish this? The state of the Windows Service returns more than 0 or 1 depending on the various states of a Windows service, but 0 means it is running.
I created this trigger, but I'm not sure it is as optimal as it could be. Is there a better way to write this trigger expression to accomplish this? The state of the Windows Service returns more than 0 or 1 depending on the various states of a Windows service, but 0 means it is running.
Code:
min(/host.domain.com/service.info["ServiceName",state],5m)<>0
Comment