Ad Widget

Collapse

How to Validate Web Scenario steps

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Yello
    Senior Member
    • Apr 2011
    • 309

    #1

    How to Validate Web Scenario steps

    Hi,
    When we want to validate an agent item we can use zabbix_get to test the functionality and the response. How can this be done for web scenarios?

    I have some one step scenarios that I know are failing because they finish too quickly. But I don't know why. When i test them using curl at the command-line they work. When I test them via another tool, they work. They only fail in zabbix.

    The characteristics of these tests are:

    - very long urls
    - XML response
    - Check for a validation string

    I am storing the urls in the macros field of the httptest table so the url length shouldn't be an issue.

    What I want to be able to do is see what the httppoller sees when the test returns so quickly. Is there a way that I can do this?


    Regards,
    David
  • Yello
    Senior Member
    • Apr 2011
    • 309

    #2
    Any comments?

    Comment

    • nicolasg
      Member
      • Apr 2011
      • 50

      #3
      I would like to know how to see the returns too...

      Comment

      • Yello
        Senior Member
        • Apr 2011
        • 309

        #4
        To be explicit...run the http poller from the command-line. Some feedback from the knowledgeable members of the forum would be really appreciated.


        Regards,
        David

        Comment

        • storm
          Member
          • Jan 2012
          • 37

          #5
          Did you ever get an answer to this??

          Mike

          Comment

          • Yello
            Senior Member
            • Apr 2011
            • 309

            #6
            The http poller can only process urls up to a certain length. My url's were way too long and were being truncated.

            There's a request in to raise this I believe but I don't have the number to hand.

            Regards,
            David

            Comment

            • storm
              Member
              • Jan 2012
              • 37

              #7
              Thanks David. Do you know if the "Required string" field in web scenarios can handle regular expressions. I want anything but "Not Found" to pass but if the page has "Not Found" in it, it should fail. So the reg. exp. would be something like "/^(Not Found)/gi". Any ideas on how I might do that?

              Comment

              • Hrobocop
                Junior Member
                • Oct 2012
                • 22

                #8
                Originally posted by Yello
                The http poller can only process urls up to a certain length. My url's were way too long and were being truncated.

                There's a request in to raise this I believe but I don't have the number to hand.

                Regards,
                David
                IMHO, there should be clear warning that URL length is limited in GUI...

                Comment

                • Yello
                  Senior Member
                  • Apr 2011
                  • 309

                  #9
                  Originally posted by storm
                  Thanks David. Do you know if the "Required string" field in web scenarios can handle regular expressions. I want anything but "Not Found" to pass but if the page has "Not Found" in it, it should fail. So the reg. exp. would be something like "/^(Not Found)/gi". Any ideas on how I might do that?
                  It's a straight string match.

                  Comment

                  Working...