[ZBX-3485] Web Monitoring stalls on a redirect loop Created: 2011 Feb 01  Updated: 2017 May 30  Resolved: 2016 Jan 27

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F), Server (S)
Affects Version/s: 1.8.3
Fix Version/s: None

Type: Incident report Priority: Major
Reporter: Alex Crowe Assignee: Unassigned
Resolution: Duplicate Votes: 2
Labels: webmonitoring
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Debian (Lenny x64) running on mysql database.


Issue Links:
Duplicate
duplicates ZBXNEXT-173 Make the Curl "Follow redirects" opti... Closed

 Description   

During a web monitoring scenario if a redirection loop within one of the steps is not marked as a failure only as "Unknown"

The server will not detect the loop and drop out with an error rather it will keep following the 302 indefinitely (I'm guessing until the time-out)

Steps to reproduce:

Setup:

  • Create a simple location to direct your web monitoring scenario to eg: www.test.org/redirectloop and if desired place some text in an index.html
  • Create your web scenario with a single step pointing to the above URL and specify the text you entered and response code 200
  • Check scenario is reporting "OK" with 200 response code.
  • Add Trigger for "Failed step of scenario X"
  • Confirm Trigger is "OK"
  • Add a redirection loop. For example in apache2 add:

RewriteRule ^/redirectloop$ http://www.test.org/redirectloop [NC,L]

Expected:

  • Web scenario show step as "Failed" after the timeout and Trigger to be generated.

Observed:

  • Web scenario shows "Unknown" and no Trigger is generated, huge number of hits to the requested page in the web servers logs.


 Comments   
Comment by Alex Crowe [ 2011 Feb 01 ]

Sorry I have realised that the name I've given this bug is not as accurate as it could have been, please change to something more appropriate if possible.

Comment by Wessel [ 2011 Jul 22 ]

About the same problem here with Zabbix 1.8.3 on Ubuntu.

I had to configure one my monitored websites to redirect to another site (so not in a loop, just a normal redirect to another site) and I would have expected to be alerted, since I'm monitoring the step for a 200.

The response code graph also shows a straight line on 200, while curl -I on the same URL returns HTTP/1.1 301 Moved Permanently

Maybe this behaviour is by design when not ending in a loop, but for me it's not the expected & desired behaviour

Comment by richlv [ 2011 Jul 22 ]

monitoring redirects directly is a different issue, see ZBXNEXT-173

Comment by Scott Parkerson [ 2012 Sep 11 ]

I've seen this issue in 1.8.15, where a misbehaving web application redirects forever. The timeout doesn't seem to ever be triggered, and the only way to stop Zabbix from following the infinite redirect is to restart the server. I'm wondering if this is a separate issue, though and should be filed on its own.

Comment by Igor Tretyak [ 2014 Jun 30 ]

affects also version 2.0.8

Comment by richlv [ 2014 Nov 05 ]

this should be solved by ZBXNEXT-282 which, among other things, introduced an option to control following redirects and a hardcoded limit of 10 redirects.

could you please confirm that it solves this issue ?

Comment by Aleksandrs Saveljevs [ 2016 Jan 27 ]

No response, closing as a duplicate of ZBXNEXT-173. Please reopen if the issue is still relevant.

Generated at Mon May 05 07:03:16 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.