Ad Widget

Collapse

Web site login monitoring

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • joelreyes
    Junior Member
    • Dec 2016
    • 4

    #1

    Web site login monitoring

    Hello again all. Once again, I'm pretty new to using Zabbix.

    I think I'm really confused about how to use the Web Scenarios to monitor a web site's log in capability.

    Background: We have a website that our clients log into to be able to use our software.

    The initial login page looks like: https://*client*.*oursoftware*.com/W...n.aspx?l=en-US

    Here on this page, they enter a username and password and there's a login button to click or they can hit enter.

    Once they hit login, they're now on a page with a URL that looks like:
    https://*client*.*oursoftware*.com/Web/Home/Home

    I've been successful at doing a basic monitor that just pulls up the first URL and looks for text and tells me if it's up or if it can't see the string of text. I'm using the Internet Explorer 11.0 agent too since most, if not all clients use that browser.

    My problem is testing the login.

    I can't seem to make it work.

    I'm doing the steps in the real world scenario offered in the guide where I set {user} and {password} and such and then POST that data in a multi step Web Scenario. But I can tell it's not working because I put in a bad password for the {password} variable. So in step 2 when it's doing the LogginIn check using that bad password and it still says "OK". So...that tells me it's not even being passed.

    What am I doing wrong? I'm fully expecting that I'm not understanding how a username/password is being passed to test with.

    Please let me know if there's something I can send back to help you understand my web page.

    Also...once I do get the login portion working, I'll need to check the resulting login page for string text. I guess I have to use the second URL???
  • GPegel
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2015
    • 113

    #2
    I'm using web monitoring also and the way I set it up is working for me so I hope it will also work in your case.

    While creating a web scenario I use the field "Variables" and I have two variables defined like:

    Code:
    {username}=TestUser
    {password}=VeryDifficultPassword
    Then in my 'login' step I added two fields in the Post section:

    Code:
    username={username}&password={password}
    But please note, the fields 'username' and 'password' must be the same name as in your website. So if you see the login page on your website, do a right click and click on 'view source' to see the names of these 2 fields.

    Then I also checked "Follow redirects"

    The required status codes: 200-299

    Comment


    • StevenColombia
      StevenColombia commented
      Editing a comment
      When you say thath 'username' and 'password' must be the same name as in yout website, it mean that the varable declared in the scenario must be with equals name?
  • joelreyes
    Junior Member
    • Dec 2016
    • 4

    #3
    That sounded like a great idea. But didn't work.

    As best as I can tell, my username/password are not being passed to the page because if just put gibberish in the username/password variables I still don't get an error.

    I even wondered if for some reason the page was getting a login error and I couldn't see it. So, I changed the step to include the required string "Error: Login failure. Check your User ID and Password." If that step had stayed in an OK status then I'd know it was trying to pass credentials because that string was being seen. That didn't work either. Just errored out telling me it couldn't find that string.

    I'll keep plugging away and if I have any success I'll reply. I can't be the only one having this issue.

    Comment

    • adrianflores21
      Junior Member
      • Jul 2017
      • 1

      #4
      Web site login monitoring

      I'm having the same problem. Did you manage to fix this? Thanks.

      Comment

      • neo32
        Senior Member
        • Nov 2013
        • 149

        #5
        Same Problem.. (

        Originally posted by adrianflores21
        I'm having the same problem. Did you manage to fix this? Thanks.
        And Im having the same problem also.. who ever found a solution?

        Comment

        • GPegel
          Senior Member
          Zabbix Certified SpecialistZabbix Certified Professional
          • Dec 2015
          • 113

          #6
          Sorry for my late response.

          I have a couple of questions. The first question is: which version of Zabbix are you using?

          The second question is: the website you are trying to monitor, is it using Java?

          Comment

          • neo32
            Senior Member
            • Nov 2013
            • 149

            #7
            Originally posted by GPegel
            Sorry for my late response.

            I have a couple of questions. The first question is: which version of Zabbix are you using?

            The second question is: the website you are trying to monitor, is it using Java?
            1) Zabbix version 3.2.6

            2) Java is using

            Its OpenText application.

            Thx.
            Last edited by neo32; 07-11-2017, 12:47.

            Comment

            • wolbec
              Junior Member
              • Mar 2019
              • 1

              #8
              If you still need this, I think this will help you https://www.zabbix.com/forum/zabbix-...g-web-scenario

              Comment

              Working...