Reputation: 1
I have Zabbix server 5.0 and I should check an availability of Outlook authorization. I'm trying to make a Web scenario with 2 steps:
Checking of the authorization page. I use https://<domain_name>/owa but it is redirected to https://<domain_name>/owa/auth/logon.aspx?replaceCurrent=1&url=https%3a%2f%2f<domain_name>%2fowa%2f. I tick "Follow redirects" and get status code 200. https://i.sstatic.net/Pzmhp.jpg
Trying of authorization. I use the same URL that I was redirected to in the first step, also I input this in Raw Post destination=https%3A%2F%2F<domain_name>%2Fowa&flags=4&forcedownlevel=0&username=&password=&isUtf8=1 (I can use Form Data too). But if I input an invalid password and username, status code in response is 200 too (screens are below). I think it's because of redirections: authorization is not done and I was redirected at the same page. https://i.sstatic.net/wVAwa.jpg https://i.sstatic.net/9ddgp.jpg After this step is finished I get status code 200 always. How to do it correctly?
Upvotes: 0
Views: 796
Reputation: 1988
Add a string check to the scenario you already created. Look for a string that is present only after a successful login.
Required regular expression pattern.
Unless retrieved content (HTML) matches the required pattern the step will fail. If empty, no check on required string is performed.
https://www.zabbix.com/documentation/4.2/manual/web_monitoring
Upvotes: -1