Ad Widget

Collapse

Web scenario - failed step seems to be affecting next step execution

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gofree
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2017
    • 400

    #1

    Web scenario - failed step seems to be affecting next step execution

    Hi guys

    I'm pretty new with zabbix - I had to monitor some links - so I created a scenario with 7 steps - checking for status 200 - update interval 1m.

    Seems like when the 4th step fails, step 5,6,7 are not being executed eg. they stop sending data the same time as the step 4 - so trigger fires for the step 4 as expected and triggers fire also for step 5,6,7 as no data are being received for the latest 5 min - kinda faulty alarm. See screens for the steps and trigger - the trigger is the same for step 5,6,7.

    Any ideas, does it work as expected ? Eg failed step prevents following steps to run ? Steps 1,2,3 are sending data no issues after the fail for 4 step occurs.

    Example:


    Trigger ( step 4-7 )

    Problem: {Zabbix server:web.test.rspcode[foo,NODE_4].last()}<>200 or {Zabbix server:web.test.rspcode[foo,NODE_4].nodata(5m)}
    Recovery: {Zabbix server:web.test.rspcode[foo,NODE_4].last()}=200

    Steps in screen
    Attached Files
  • annow
    Junior Member
    • May 2021
    • 1

    #2

    Hi all,
    I also have a similar problem, my web scenario contains more than 10 steps, if the second step does not receive the expected HTTP code then every next step is skipped and has the status unknow, how to make the other steps checked even though one of them returns an error?


    Thanks

    Comment

    • leksykoon
      Junior Member
      • Dec 2021
      • 4

      #3
      Hello Everyone,

      I am also experiencing described behavior. Is is intended in web scenario with multiple steps?
      What I am trying to achieve is to have web scenario with multiple steps, which will monitor next steps even if previous one will fail.
      It will be helpful during troubleshooting to have overview which URLs doesn't work and which works fine.
      Currently, if one of steps fails, I don't know if next steps are works or no. The only workaround which i found is to configure separate scenario for each URL, which is not good for me.
      I will be grateful for any tips or ideas.
      gofree have you resolved this?

      Comment

      • cyber
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • Dec 2006
        • 4807

        #4
        This is normal behaviour and you cannot really work around it.
        But it stores the step number, which fails, so you know, to which point it reaches...

        Comment

        • leksykoon
          Junior Member
          • Dec 2021
          • 4

          #5
          This is normal behaviour and you cannot really work around it.
          But it stores the step number, which fails, so you know, to which point it reaches...
          The problem is, that if for example web scenario consists of 5 steps, step 2 fails, and then I know that it failed at step 2, but Zabbix doesn't check step 3 4 5, so I don't know if it's also affected.

          Comment

          • cyber
            Senior Member
            Zabbix Certified SpecialistZabbix Certified Professional
            • Dec 2006
            • 4807

            #6
            I understand your problem, but this is how it is...
            Initial web scenario idea was to "emulate a client", like that example in docs about Zabbix webpage. Simple steps one by one. If login fails, there is no reason to verify any further, as they wont work anyway. This has changed very little over years and versions...
            If you need to check multiple services within one page, where some work and some not at same time, then you need multiple scenarios. It just works like that.. As you see, there is no option like "if step fails, continue with next" anywhere...

            I do see in roadmap for 6.2 https://www.zabbix.com/roadmap#v6_2
            • End-user Web monitoring
              • Support of complex scenarios for monitoring of Web applications and services
            But there is no more explanations or ZBX ticket links...

            Comment

            • leksykoon
              Junior Member
              • Dec 2021
              • 4

              #7
              cyber thank you for explanation, I really appreciate it!
              I hope this functionality will be implemented in next version.

              Comment

              Working...