Ad Widget

Collapse

Advanced Web Scenario

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hughmcl
    Junior Member
    • Oct 2008
    • 20

    #1

    Advanced Web Scenario

    We have some web sites we need to monitor, but I've not seen any options or descriptions on how to make it work. Here's the situation. The first page loads, there are 5-6 hidden fields (some have dynamic information), that also need to be submitted with the form as well as 2 other fields which we can set with the parameters.

    Is it possible to have those 'hidden' fields also submitted?
  • frankcheong
    Member
    • Oct 2009
    • 73

    #2
    I am also looking for a solution the same situation which the first webpage will generate a so-called token and then all subsequent page should also submit (post/get) with this token.

    Any help would be much appreciated.

    Comment

    • danrog
      Senior Member
      • Sep 2009
      • 164

      #3
      Has anyone figured out a way to do this?

      Comment

      • david_at_ticoon
        Junior Member
        • Jun 2011
        • 7

        #4
        I am also looking for a solution to this problem! +1

        I guess this forum topic needs a Google "+1" button, because that's basically what I am doing now in this post.

        I am trying to accomplish something very similar, however my problem is even more complicated:

        Problem #1:
        The application I am trying to "web monitor" does not use cookies, so I have to extract the action="" property from the form tag of the login page that contains the JSESSIONID value required to link the session created with the initial request of the login page with the next request I am going to make required to authenticate myself.

        So this constitutes a dynamic portion of the URL for Web Step #2, whose input comes from parsing the output of step #1.

        Problem #2:
        This is where my problem becomes more like what is already described here: The login page contains hidden form fields that determine a "view state". This hidden paramater is unique to every request, and again it must be extracted from the output of step #1 and then inserted as a variable into the POST params of step #2.

        I know that this can be accomplished, because our application is monitored using Gomez by one of our more performance-minded clients. Parsing the HTML output as an XML document to seek out the desired elements to extract the required values isn't impossible - but I was hoping to not have to re-invent the wheel if something that is directly pluggable into the Zabbix framework already exists out there in the wild.

        So, has anybody out there solved this problem already?
        Or am I going to have to roll up my sleeves and learn how to plug into the Zabbix framework to write my own? (yn)

        Regards,

        -David.

        Comment

        • david_at_ticoon
          Junior Member
          • Jun 2011
          • 7

          #5
          More requests for this feature

          I was Googling around for plugins and work-arounds, and I came across more people having the same problems and requesting the same feature:



          +2.

          Comment

          • david_at_ticoon
            Junior Member
            • Jun 2011
            • 7

            #6
            How do I formally request a new Zabbix feature?

            Hello again, yes - I can't seem to stop posting on this topic!

            My "ViewState" JSF issue is described nicely here:
            + http://wiki.apache.org/myfaces/Perfo...tingWithJMeter

            Seemingly the changes (to the UI at least) required to support this are fairly straight forward in my mind. The Step configuration page would need to have an "output parsing rules" section, where each rule consists of two fields:

            1. Regex to match in the result of fetching the URL defined in the current "step".
            2. Mapping of numerical sub-match positions to Zabbix web scenario variables (i.e. {1} => {ViewState}, {2} => {AnotherVar} ) so that they can be used in the definition of future "steps".

            I guess the only question remaining is does Zabbix already support the inclusion of {variables} into the URL field of web step definitions?

            Moderators: What is the formal process for submitting new feature requests, like the one I have described above?

            I would be willing to help do the coding!
            *hint hint*
            *wink wink*
            *nudge nudge*
            *heavy breathing*

            Thanks,

            -David.

            Comment

            • MrKen
              Senior Member
              • Oct 2008
              • 652

              #7
              The nudge, nudge, wink, winks are fine, but please . . . . not the heavy breathing!

              You can lodge Feature Requests here: https://support.zabbix.com/browse/ZBXNEXT

              MrKen
              Disclaimer: All of the above is pure speculation.

              Comment

              • Robert Wagnon
                Member
                • Jan 2008
                • 47

                #8
                Plus one

                I'm a +1.

                I've created ZBXNEXT-1059 at https://support.zabbix.com/browse/ZBXNEXT-1059
                Last edited by Robert Wagnon; 21-12-2011, 17:02.

                Comment

                Working...