Ad Widget

Collapse

Strange Trigger ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • igloo_kem
    Junior Member
    • Oct 2012
    • 19

    #1

    Strange Trigger ?

    Hi all!
    I want to create trigger with the next logic:
    trigger fires if value of last 3 checks of item2 less than max value of item1 for last 180 seconds.

    I tried to use trigger like:
    {host:web.test2.count(#3,"{host:web.test1.max(180) }","lt")}=3
    but it doesn't work.

    How to implement such logic?
  • igloo_kem
    Junior Member
    • Oct 2012
    • 19

    #2
    Tried {host:web.test2.count(#3,"{host:web.test2.max(180) }","lt")}=3 - doesn't work.

    Comment

    • heaje
      Senior Member
      Zabbix Certified Specialist
      • Sep 2009
      • 325

      #3
      You can't nest other items in trigger functions like you're attempting to do. You're trigger needs to look like this (not tested). You did not specify what you mean by "value of last 3 checks of item2". Do you want the maximum value from the last 3 checks? The minimum? The sum? To simply know how many went over some value?

      {host:web.test2.count(#3,300),"ge"}<{host:web.test 1.max(180)}

      This would go off if the the number of times that "test2" has been greater than 300 in the last 3 checks is less than the max number from test1 in the last 180 seconds.

      Comment

      • heaje
        Senior Member
        Zabbix Certified Specialist
        • Sep 2009
        • 325

        #4
        I should have put

        {host:web.test2.max(#3)}<{host:web.test 1.max(180)}

        Comment

        • igloo_kem
          Junior Member
          • Oct 2012
          • 19

          #5
          Thank you for reply!
          Originally posted by heaje
          You did not specify what you mean by "value of last 3 checks of item2". Do you want the maximum value from the last 3 checks? The minimum? The sum? To simply know how many went over some value?
          .
          Sorry, i mean: "If each value of last 3 checks of item2 less than max value of item1 for last 180 seconds."

          Even simplify: If each value of last 3 checks of item1 less than max value of item1 for last 180 seconds.

          Anyway,
          {host:web.test1.max(#3)}<{host:web.test1.max(3600) }
          covers that i need.
          Thank you again.

          Comment

          Working...