Zabbix Web Scenario

htmlwebzabbix

One of my tasks with Zabbix is to monitor the many web applications that I support and gather accurate response times, emulating the user-experience. I have attempted to implement my scenarios based on the Zabbix Web Scenario section in the manual, but I can't manage to get Zabbix to login to the page.

In the Zabbix tutorial, they are using the namefield in the HTML to designate where to enter the data. Zabbix page example

On my web applications, this field is present for entering the user name and password, but not for the login button.
My page example

How can I get Zabbix to login to these pages without the name field being present in the HTML code?

Best Answer

Ok, I solved the problem. As per the comments, the button was not actually necessary to submit the content. However, the value of the name field was required for the username and password to submit properly.
Name fields
The trick was to create a login step, with the URL that is called when the form is submitted (in my example it is the action of the form). You need to put your post variables in this step as well, following redirects of course. Action
For example, using the above pictures:

  • URL: https://www.example.com/nu
  • Post (using macros in Zabbix): userName={user}&passWord={password}

Then, I created the login check step, which searched for a string that is on the landing page, and received a status code of 200.

Once this is working, you know that you have logged in successfully. Be sure that after all steps you want Zabbix to take, you have it log out.

Thanks for all the help in comments!

Related Topic