Ad Widget

Collapse

Zabbix Web Scenario - get URL from response.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sboorbou
    Junior Member
    • Sep 2019
    • 18

    #1

    Zabbix Web Scenario - get URL from response.

    Hello people,
    I need your help to be able to create a web scenario.
    I want to implement 5 steps, but I'm having trouble doing it.
    Step 1 - Hit the webpage.
    Step 2 - Login in page.
    Step 3 - Check login
    Step 4 - Log off
    Step 5 - Check off

    my problem is step 2 and step 3

    The page is gerint.procempa.com.br/gerintweb
    when log in this page, we are redirect to https://sso-16-pro.procempa.com.br/, where I log in, and them back to gerint.procempa.com.br/gerintweb

    When loged we recive a URL like this :


    in step 2 I need get the URL after gerintweb and give it in step 3 to complete de URL.
    How I do it? I try using variables and regex in step 2, but it not work.
    I attached every step ( 1 -3 ) in the manner I belive is rigth ( but it did not work )

    Attached Files
  • isaqueprofeta
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Aug 2020
    • 154

    #2
    Use Follow Redirects on the second Screenshot and/or try using "Retrieve mode" = "Headers" to get the new URL data from HTTP Header.

    More details: zabbix.com/documentation/current/manual/web_monitoring

    Comment

    • Hboris
      Junior Member
      • Jun 2022
      • 12

      #3
      Well done! Well done!
      Thanks isaqueprofeta!

      Comment

      Working...