Hey there,
I'm writing here because i've been stuck on a problem for days. I have multiple checks and triggers set up on my Zabbix, all is working fine. I have web scenarios checking the up/down state of lots of pages and everything is ok.
Now for some reasons i would like to create a scenario where i would login to a post form on a web page i'm monitoring (mainly for database state awareness). And everytime I create a step checking a certain string on the page (after i've set up authentification steps, of course), it always fails with the error "Required pattern %whateverpatternthisis% not found".
So for debugging purposes, I've created a simple host, forums.centos.org, which I try to log into. So far I have 2 steps, one logging in and checking if the result is 200, and one looking for a string validating that i'm connected and a 200 return code.
My login step :

I've also tried to login to the website myself, and with Chrome dev tools, grabbing the post data and putting all of it in "raw data" of this step, still no luck.
My second step :

The string "Private" should be on the monitored page once correctly logged in so my guess is that i'm not connected at all.
Am i doing something wrong ? Is there a better way to login to a POST form and checking if you're logged in ?
Thanks a lot.
Regards.
PS : for exemple, the POST data of a failed auth :
I'm writing here because i've been stuck on a problem for days. I have multiple checks and triggers set up on my Zabbix, all is working fine. I have web scenarios checking the up/down state of lots of pages and everything is ok.
Now for some reasons i would like to create a scenario where i would login to a post form on a web page i'm monitoring (mainly for database state awareness). And everytime I create a step checking a certain string on the page (after i've set up authentification steps, of course), it always fails with the error "Required pattern %whateverpatternthisis% not found".
So for debugging purposes, I've created a simple host, forums.centos.org, which I try to log into. So far I have 2 steps, one logging in and checking if the result is 200, and one looking for a string validating that i'm connected and a 200 return code.
My login step :
I've also tried to login to the website myself, and with Chrome dev tools, grabbing the post data and putting all of it in "raw data" of this step, still no luck.
My second step :
The string "Private" should be on the monitored page once correctly logged in so my guess is that i'm not connected at all.
Am i doing something wrong ? Is there a better way to login to a POST form and checking if you're logged in ?
Thanks a lot.
Regards.
PS : for exemple, the POST data of a failed auth :
Comment