Ad Widget

Collapse

Is there a better way to write this trigger expression?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • csmall
    Member
    • Jun 2020
    • 70

    #1

    Is there a better way to write this trigger expression?

    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.

    Code:
    min(/host.domain.com/service.info["ServiceName",state],5m)<>0
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4806

    #2
    Looks as short as it can be.

    Comment

    Working...