Ad Widget

Collapse

simple trigger - dumb question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jdoggy31
    Member
    • Feb 2019
    • 39

    #1

    simple trigger - dumb question

    I have a simple trigger that works

    last(/Test/Test.Status)<>"Healthy"

    Im trying to add a simple time modifier wait 2 hours but the syntax is eluding me.. ​
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    What do you mean with "wait 2 hours"? All values for last 2h have to not match "Healthy" ? (use find() instead) Or "there was a not "Healthy" value 2h ago? (use first(/host/key,2h) → retrieve the oldest value within the last 2 hours until now ) Or something else?

    Comment

    • shoemakerawful
      Junior Member
      • Feb 2023
      • 1

      #3
      i think your syntax is wrong somewhere. You should double check the syntax.

      Comment

      • jdoggy31
        Member
        • Feb 2019
        • 39

        #4
        Clarification -

        last(/Test/Test.Status)<>"Healthy"​ = triggers when any value in Test.status is anything other the Healthy, Now I'm trying to figure out how to modify it to not trigger until I have two hours straight of unhealthy checks, Im new and learning Zabbix so my knowledge of the syntax is not so great.​

        Comment

        Working...