Ad Widget

Collapse

How can I add a delay between two web scenario checks?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cjohnsonuk
    Junior Member
    • Oct 2008
    • 16

    #1

    How can I add a delay between two web scenario checks?

    I use a web scenario to initiate an API call to a remote system. This call triggers some tests to be run that I can recover with a second API call.

    If I call the second API too soon I don't get the results back, just a response with an element indicating that the collection is still "in progress". The examples given in raw PHP poll the response in a loop until there is no "in progress" and then triggers a call to pull back the required data.

    I'm not sure that can be done in Zabbix. As an (hopefully simpler) alternative I'd like to add a 5 minute delay between step one of the web scenario and step 2 to ensure that the information collection is complete.

    Can this be done?
  • cjohnsonuk
    Junior Member
    • Oct 2008
    • 16

    #2
    We've now upgraded to version 3. Has anyone found a way to add a delay between 2 web scenarios?

    Comment

    • jairomaia
      Junior Member
      • Mar 2020
      • 1

      #3
      Greetings

      It is possible to get around this by calling https://httpstat.us/ and pass the "sleep" parameter, as follows:



      Therefore, create an additional step in the web scenario between the steps where the wait should take place.
      The graphics on web monitoring will jump, but you can create a custom graphic without the delay steps.

      Comment

      Working...