Ad Widget

Collapse

Web Monitoring Javascript Login

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • marauder
    Junior Member
    • Mar 2015
    • 1

    #1

    Web Monitoring Javascript Login

    Hey,
    I'm new to zabbix, and have been asked to setup a web scenario to perform a login check on a javascript site.
    I have 4 steps setup. The fist checks to see if the login page comes up. - That step works
    Step 2, is to login
    Step 3, Checks for a required string
    step 4, logs out
    Steps 1&2 are getting status OK, with the 3rd getting an ErrorL required pattern not found.
    I am not sure if this is error is because the page isn't loading or because it doens't actually login.
    On the login page, I did an inspect element and go the action ID for everything and setup: userName={user}&password={password}&enter=submit in the Post section, with a required status code of 200. The user/password is defined in the scenario variables.

    Step 3 goes to a url that is accessible when logged in and checks for the word System and a status code of 200.

    Am I missing something, because this is javascript? Or is there an error is my code.
  • ingus.vilnis
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Mar 2014
    • 908

    #2
    Hello and welcome to Zabbix forums!

    There is no error in your code. Unfortunately Zabbix cannot check websites which use Javascript logins. Only POST and GET variables are supported.

    Best Regards,
    Ingus

    Comment

    • pepek_123
      Junior Member
      • Aug 2024
      • 1

      #3
      Hello,

      With zabbix 7 is this still true? i don't have JS loggin but using JS redirect to other pages (react app ) .
      and can't monitor status of my webpage still getting only :
      " for running this page you need to allow JavaScript"

      thank you for answer,

      Best regards,
      Peter

      Comment

      • cyber
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • Dec 2006
        • 4806

        #4
        v7 has "Script items" https://www.zabbix.com/documentation...emtypes/script

        Comment

        Working...