Ad Widget

Collapse

Required field in step configuration scenario

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tbernard
    Junior Member
    • Apr 2007
    • 4

    #1

    Required field in step configuration scenario

    (with zabbix beta 1.3.4)

    I configured one scenario with one step : one pointing to http://www.url1.com for example.

    The response code of the first step is 200 and it status OK.

    Then, I tried to use the REQUIRED field in step configuration. I typed a crazy string in order to force zabbix to not find it inside the html.

    The response code of the first step is always 200.

    I would like have error if zabbix don't find the text required.
  • tbernard
    Junior Member
    • Apr 2007
    • 4

    #2
    i find the problem with tcpdump.
    The url is not correctly encoded : '&' is encoded as '&' and we can't change that in mysql. For example :
    username=toto&password=toto -> username=toto&password=toto
    so there is an error !
    Last edited by tbernard; 24-04-2007, 09:03.

    Comment

    • Alexei
      Founder, CEO
      Zabbix Certified Trainer
      Zabbix Certified SpecialistZabbix Certified Professional
      • Sep 2004
      • 5654

      #3
      Response code has nothing to do with the required string. If a page does not match required string, ZABBIX:

      1. Do not process further steps
      2. Number of failed step is set to the current step
      Alexei Vladishev
      Creator of Zabbix, Product manager
      New York | Tokyo | Riga
      My Twitter

      Comment

      • tbernard
        Junior Member
        • Apr 2007
        • 4

        #4
        ok sorry. It isnt' clear.
        I find a problem about form and scenario (zabbix version 1.3.4and5)
        I want to access a page with postdata (name=> username and password).
        When zabbix send request for authentification, there isnt correctly encoded param (& to & ) and so we can't access to this page.

        Solution :
        go to mysql and change directly the parameters
        mysql>SELECT posts FROM httpstep;
        => username={user}&password={pwd}

        mysql>UPDATE httpstep SET posts='username={user}&password={pwd}' WHERE httpstepid=XX;
        Last edited by tbernard; 25-04-2007, 18:33.

        Comment

        Working...