Ad Widget

Collapse

Triggering on second failure in a web scenario

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

    #1

    Triggering on second failure in a web scenario

    Zabbix 3.2

    I have a web scenario that will timeout and then recover on the next poll. I need to change the trigger so that it will only alarm after the check has failed twice but I can't seem to figure out how to make it work. The log on the server shows it only failing once before the alarm.

    The condition I am using is:
    {Template Web Root Check:web.test.rspcode[Login Page Response Code 200,Web Page Check].last(#2)}<>200

    What do I need to change to get this to only alarm after it has failed twice?
  • akbar415
    Senior Member
    • May 2015
    • 119

    #2
    Originally posted by lwickline
    Zabbix 3.2

    I have a web scenario that will timeout and then recover on the next poll. I need to change the trigger so that it will only alarm after the check has failed twice but I can't seem to figure out how to make it work. The log on the server shows it only failing once before the alarm.

    The condition I am using is:
    {Template Web Root Check:web.test.rspcode[Login Page Response Code 200,Web Page Check].last(#2)}<>200

    What do I need to change to get this to only alarm after it has failed twice?

    In the config of web scenario you can set "Attempts" to 2.


    As described on documentation:
    "The number of attempts for executing web scenario steps. In case of network problems (timeout, no connectivity, etc) Zabbix can repeat executing a step several times. The figure set will equally affect each step of the scenario. Up to 10 attempts can be specified, default value is 1.
    Note: Zabbix will not repeat a step because of a wrong response code or the mismatch of a required string.
    This parameter is supported starting with Zabbix 2.2."

    Comment

    • lwickline
      Junior Member
      • Sep 2008
      • 12

      #3
      Originally posted by akbar415
      In the config of web scenario you can set "Attempts" to 2.


      As described on documentation:
      "The number of attempts for executing web scenario steps. In case of network problems (timeout, no connectivity, etc) Zabbix can repeat executing a step several times. The figure set will equally affect each step of the scenario. Up to 10 attempts can be specified, default value is 1.
      Note: Zabbix will not repeat a step because of a wrong response code or the mismatch of a required string.
      This parameter is supported starting with Zabbix 2.2."
      Yes this is what I tried first. It does not appear to be working correctly or at least it only generates one log line in the server log. I would expect that I would see it failing multiple times in the log but I only see one failure.

      Comment

      Working...