PDA

View Full Version : Required field in step configuration scenario


tbernard
11-04-2007, 18:30
(with zabbix beta 1.3.4)

I configured one scenario with one step : one pointing to http://www.url1.com for example.

The response code of the first step is 200 and it status OK.

Then, I tried to use the REQUIRED field in step configuration. I typed a crazy string in order to force zabbix to not find it inside the html.

The response code of the first step is always 200.

I would like have error if zabbix don't find the text required.

tbernard
23-04-2007, 18:13
i find the problem with tcpdump.
The url is not correctly encoded : '&' is encoded as '&' and we can't change that in mysql. For example :
username=toto&password=toto -> username=toto&password=toto
so there is an error !

Alexei
24-04-2007, 11:25
Response code has nothing to do with the required string. If a page does not match required string, ZABBIX:

1. Do not process further steps
2. Number of failed step is set to the current step

tbernard
24-04-2007, 11:53
ok sorry. It isnt' clear.
I find a problem about form and scenario (zabbix version 1.3.4and5)
I want to access a page with postdata (name=> username and password).
When zabbix send request for authentification, there isnt correctly encoded param (& to & ) and so we can't access to this page.

Solution :
go to mysql and change directly the parameters
mysql>SELECT posts FROM httpstep;
=> username={user}&password={pwd}

mysql>UPDATE httpstep SET posts='username={user}&password={pwd}' WHERE httpstepid=XX;