Ad Widget

Collapse

Oracle ADF Page Login Page Monitoring Issue with Zabbix

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kerem.yarali
    Junior Member
    • Sep 2019
    • 23

    #1

    Oracle ADF Page Login Page Monitoring Issue with Zabbix

    Hello

    We want to measure login response time for a website which is created by Oracle ADF.

    It is posting dynamic ids in URL everytime. So, I can not post directly username,password in URL. Is there any other way imitiate login in this kind of web page with Zabbix?

    Thanks
    Kerem
  • dimir
    Zabbix developer
    • Apr 2011
    • 1080

    #2
    Looks like a tas for Web Monitoring: https://www.zabbix.com/documentation...web_monitoring
    You can have a web step that gets that dynamic ID using a macro. A macro can be specified in a Variables list:
    Code:
    {myid}=regex:<regular expression>
    And then use {myid} in next steps, e. g. in POST field values.

    Comment

    • kerem.yarali
      Junior Member
      • Sep 2019
      • 23

      #3
      Hello Dimir

      I created Variables but I'm getting cannot extract the value response error. I'm sharing my example variables, sample regex and errors with you.

      Example URL:
      www. xxx?afrLoop=34156579044178782&_afrWindowMode=0&_af rWindowId=null&_adf.ctrl-state=19gkj7popa_10#!%40%40%3F_afrWindowId%3Dnull% 26_afrLoop%3D45256579044158781%26_afrWindowMode%3D 0%26_adf.ctrl-state%3D17gkj7popa_14


      Variables & Regex
      {adfctrl_state} regex:_adf.ctrl-state=([-_0-9A-Za-z!]{10,13})
      {afr_loop} regex:_afrLoop=([0-9]{13,17})
      {afrWindowId} regex:window.name='([-_0-9A-Za-z!]{10,13})'



      Step "Page Response" [1 of 1] failed: error in step variables "{adfctrl_state}=regex:_adf.ctrl-state=([-_0-9A-Za-z!]{10,13}) {afrWindowId}=regex:window.name='([-_0-9A-Za-z!]{10,13})' {afr_loop}=regex:_afrLoop=([-_0-9A-Za-z]{13,17})": cannot extract the value of "{afr_loop}" from response

      Step "Page Response" [1 of 1] failed: error in step variables "{adfctrl_state}=regex:_adf.ctrl-state=([-_0-9A-Za-z!]{10,13}) {afrWindowId}=regex:window.name='([-_0-9A-Za-z!]{10,13})' {afr_loop}=regex:_afrLoop=([-_0-9A-Za-z]{13,17})": cannot extract the value of "{afrWindowId}" from response

      How can I solve this issue?

      Thanks


      Comment

      • dimir
        Zabbix developer
        • Apr 2011
        • 1080

        #4
        The variables are fetched from the body of HTML that is returned when accessing URL. Are you sure it always contains _afrLoop=([0-9]{13,17}) and window.name='([-_0-9A-Za-z!]{10,13})'. You can test it using curl from command line:
        Code:
        curl -s '<URL>' | egrep '_afrLoop=|window.name='

        Comment

        • kerem.yarali
          Junior Member
          • Sep 2019
          • 23

          #5
          Hello Dimir

          I followed your requested curl command and I could not find _afrLoop in command output. When I trigger web page, web page returns some variables (adfctrl_state,afr_loop,afrWindowId etc.) in browser. Therefore, I created these variables. However, after curl command I realized some variables aint in curl command output.


          Actually, I want to monitor a web scenario. The web page contains username and password text box and submit button.

          To create this simulation, I created a web scenario (like described in Zabbix Real life scenario documentation) steps which include, measuring page response time, login web page, login control (using string control) and search something in the web page and logout.


          In the first step, I created web page's URL and created a jsessionid variable with the following value: regex:jsessionid=([-_0-9A-Za-z!]{63}).

          Secondly, I created Login step, in the query fields, I put jsessionid for name side, {jsessionid} for value side.In the post field side,I created three things: j_username,j_password and submit (value:Login)

          These two steps are returns OK, Lastly, I created Login Check step. In this step I filled only required String area. Unfortunatelly, I'm getting required pattern was not found error.It means login step fails. Also I tried to login via curl command (curl -d "j_username=xxx" -d "j_password=xxx" -L "https://xxx") but can't login too.

          In addition, I'm using same URLs for each pages.

          I'm a little bit confused, which way should I follow to solve the issue? I'm waiting your response and your helps.

          Regards
          Kerem


          Last edited by kerem.yarali; 27-10-2019, 11:42.

          Comment

          Working...