Ad Widget

Collapse

Time-sensitive trigger

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rts
    Member
    • May 2007
    • 54

    #1

    Time-sensitive trigger

    I've got a service which only runs during office hours, but when it's running, it must run smoothly. I've got a trigger on it, but currently it fires every evening, then turns off in the morning. Can someone suggest how to say, for example:

    trigger if:

    {our_monitors:serviceZZ.queuelength.last(0)}>20 AND (hour of day>6am) AND (hour of day < 9pm)
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    This should work:

    {our_monitors:serviceZZ.queuelength.last(0)}>20 & {our_monitors:serviceZZ.queuelength.time(0)}>06000 0 & {our_monitors:serviceZZ.queuelength.time(0)}<21000 0
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • rts
      Member
      • May 2007
      • 54

      #3
      Thanks - I've now found the documentation for this. Section 5.14.1 of http://www.zabbix.com/downloads/ZABB...ual%20v1.4.pdf lists all the expressions that can be used.

      Comment

      Working...