Ad Widget

Collapse

Web Scenario - Login

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • monarch684
    Member
    • Oct 2017
    • 32

    #1

    Web Scenario - Login

    We have a fairly decent sized website that our senior management wants to monitor with Zabbix. I have been able to monitor the up status and page load. I am now to the login portion and have tried different methods I have found online to make this work. I always get an error 400. Can someone let me know what I have configured incorrectly?

    Zabbix Server Details
    =============
    Zabbix Version: 3.4.6
    Server OS: Ubuntu 16.04.3 LTS
    Public Website: www.rxaap.com

    Current Web Scenerio
    =============
    Variables
    Agent: Chrome 38.0 (Windows)
    {email}=Username
    {password}=Password

    Steps
    ==============
    Step 1
    Step 2
    • Name: Front Page Render
    • URL: https://www.rxaap.com
    • Follow Redirects: true
    • Timeout: 15s
    • Required string: Contact Us
    • Required Status codes: 200

    Step 3
    • Name: Sign In Render
    • URL: https://rxaap.com/Account/Login
    • Variables
      • email={username}
      • password={password}
      • btn-login=Login
    • Follow Redirects: true
    • Timeout: 15s
    • Required Status codes: 200


    Error Message: Step "Sign In Render" [3 of 3] failed: response code "400" did not match any of the required status codes "200"

    I know I have probably missed something or just completely configured this wrong. Any help is appreciated.
    Last edited by monarch684; 15-02-2018, 20:13. Reason: Accidentally hit Submit before finished
  • jan.garaj
    Senior Member
    Zabbix Certified Specialist
    • Jan 2010
    • 506

    #2
    https://rxaap.com/Account/Login - this not a simple login page, which accepts POST data. OpenID Connect - Authorization Code Flow is used there - single sign-on solution.

    Read a doc of your identity provider (IdP) for more details - https://auth0.com/docs/api-auth/tuto...ion-code-grant.

    You will need at least two steps:
    1.) Get IdP POST URL
    2.) Post user credential to IdP POST URL obtained from the step 1
    Devops Monitoring Expert advice: Dockerize/automate/monitor all the things.
    My DevOps stack: Docker / Kubernetes / Mesos / ECS / Terraform / Elasticsearch / Zabbix / Grafana / Puppet / Ansible / Vagrant

    Comment

    • monarch684
      Member
      • Oct 2017
      • 32

      #3
      Apologies for the delayed response. I have been on vacation. Back in the office now.

      I have never worked with Auth0. Is this something I might need to get our developer to help with or is this something I should be able to do myself?

      I have gone through the article you linked and while I understand the concept of how it works, I am at a loss on how to program Zabbix to perform the necessary steps. In my mind, I may be overcomplicating what I read.

      Comment

      Working...