Ad Widget

Collapse

Alerting after 2 failures

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lwickline
    Junior Member
    • Sep 2008
    • 12

    #1

    Alerting after 2 failures

    I current have the following web check trigger set up: {ZABBIX Server:web.test.rspcode[NCIM Availability Check,200 status check].last(0)}#200

    How would I set this up so that it will trigger after 2 failures instead of 1?
  • Calimero
    Senior Member
    • Nov 2006
    • 481

    #2
    {ZABBIX Server:web.test.rspcode[NCIM Availability Check,200 status check].count(#2,200)}=2

    That is to say: "count the number of times you got '200' over the last 2 checks". If that value is 2, then scream !

    By the way, what version of zabbix server are you running ?
    The "#number_of_checks" syntax (instead of a period of N seconds) isn't documented so I don't know when it was implemented (1.6 or 1.4 ?)

    Comment

    • lwickline
      Junior Member
      • Sep 2008
      • 12

      #3
      it's version 1.6.0 Sorry didn't add that.


      Thanks for the reply I will give it a shot. been tearing my eyes out on the docs not understanding.....

      update it didn't like that syntax. I took out the # and it at least let me save it it.

      Didn't work..
      Last edited by lwickline; 12-12-2008, 21:23.

      Comment

      • Calimero
        Senior Member
        • Nov 2006
        • 481

        #4
        OK, maybe the # syntax is only available in 1.6.1.

        Anyway, you could try something like:
        {ZABBIX Server:web.test.rspcode[NCIM Availability Check,200 status check].count(180,200)}=0

        Over the last 180 seconds, count the number of times you got response code 200. If 0, trigger goes On.

        By the way, my previous example had to be inverted anyway, instead of .count(#2,200)=2 it should have read .count(#2,200)#2 as 200 is the expected value.

        You can also use the "number of failed steps" item which will report any error (response code, missing expected text or connection failure).

        Comment

        Working...