Hi,
I have a website that requires authentication. If I access it (using firefox or ie) through this url (https://www.mysite.com/login/loginFE...gin&pwd=mypwd), I'm able to gain access to the restricted area.
So, I configured a scenario for web monitoring doing the following:
Application: web
Name: mysite
Update: 30
Agent: Firefox Win & IE 6
Variables: {login}=mylogin
{pwd}=mypwd
Steps:
Name: mypage
URL: http://www.mysite.com/login/loginFE.do
Post: login={login}&pwd={pwd}
Timeout: 15
Required: Welcome
Status code: 200
But it isn't working. It shows: "Error: Page didn't match". So I think that zabbix isn't authenticated.
I also tried to use curl directly from console (curl http://www.mysite.com/login/loginFE....gin&pwd=mypwd), and I could see that the retrived page isn't the authenticated page. So this is why zabbix didn't found "Welcome".
Am I missing something? Does anybody got success accessing autheticated content?
Zabbix works fine if I try to monitor "regular" content (not authenticated). Even when I use required strings.
TIA,
Bob
I have a website that requires authentication. If I access it (using firefox or ie) through this url (https://www.mysite.com/login/loginFE...gin&pwd=mypwd), I'm able to gain access to the restricted area.
So, I configured a scenario for web monitoring doing the following:
Application: web
Name: mysite
Update: 30
Agent: Firefox Win & IE 6
Variables: {login}=mylogin
{pwd}=mypwd
Steps:
Name: mypage
URL: http://www.mysite.com/login/loginFE.do
Post: login={login}&pwd={pwd}
Timeout: 15
Required: Welcome
Status code: 200
But it isn't working. It shows: "Error: Page didn't match". So I think that zabbix isn't authenticated.
I also tried to use curl directly from console (curl http://www.mysite.com/login/loginFE....gin&pwd=mypwd), and I could see that the retrived page isn't the authenticated page. So this is why zabbix didn't found "Welcome".
Am I missing something? Does anybody got success accessing autheticated content?
Zabbix works fine if I try to monitor "regular" content (not authenticated). Even when I use required strings.
TIA,
Bob
Comment