[Nagiosplug-devel] [ nagiosplug-Bugs-2082501 ] check_http redirects sporadically endless in version 1.4.12

SourceForge.net noreply at sourceforge.net
Fri Aug 29 16:17:16 CEST 2008


Bugs item #2082501, was opened at 2008-08-29 16:10
Message generated for change (Settings changed) made by ewasser
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=2082501&group_id=29880

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: General plugin execution
Group: Release (specify)
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Erik Wasser (ewasser)
Assigned to: Nobody/Anonymous (nobody)
>Summary: check_http redirects sporadically endless in version 1.4.12

Initial Comment:
The check_http plugin in version 1.4.12 is brocken. Version 1.4.11 works fine. The plugin messes up the redirection url. The redirection doesn't end and it will result in a "WARNING".

Here's the sample output, the binarys were taken from DAG http://apt.sw.be/redhat/el5/en/i386/RPMS.dag/ but I also recompiled the version 1.4.12 from the official sources.

Plugin Version (-V output): check_http v1991 (nagios-plugins 1.4.12)
Plugin Name: check_http
Plugin Commandline showing issues: see down below
Operating System: Linux
Architecture: i386, x86_64
Compiler: gcc

WORKING VERSION 1.4.11:

% ./check_http-1.4.11-1 --onredirect=follow -H www.taxi-blog.de -u /wordpress/ -s Impressum -t 30
HTTP OK HTTP/1.1 200 OK - 0.552 second response time |time=0.551658s;;;0.000000 size=61131B;;;0

This is working everytime.

DEFECT VERSION 1.4.12:

The error itself is not consistent: B-(

% ./plugins/check_http --onredirect=follow -H www.taxi-blog.de -u /wordpress/ -s Impressum -t 30
HTTP OK HTTP/1.1 200 OK - 1.525 second response time |time=1.525200s;;;0.000000 size=61216B;;;0
% ./plugins/check_http --onredirect=follow -H www.taxi-blog.de -u /wordpress/ -s Impressum -t 30
HTTP WARNING - maximum redirection depth 15 exceeded - http://www.taxi-blog.de:80wordpress/
% ./plugins/check_http --onredirect=follow -H www.taxi-blog.de -u /wordpress/ -s Impressum -t 30
HTTP OK HTTP/1.1 200 OK - 0.173 second response time |time=0.172721s;;;0.000000 size=61216B;;;0
% ./plugins/check_http --onredirect=follow -H www.taxi-blog.de -u /wordpress/ -s Impressum -t 30
HTTP OK HTTP/1.1 200 OK - 2.788 second response time |time=2.788378s;;;0.000000 size=61217B;;;0
% ./plugins/check_http --onredirect=follow -H www.taxi-blog.de -u /wordpress/ -s Impressum -t 30
HTTP OK HTTP/1.1 200 OK - 0.169 second response time |time=0.168843s;;;0.000000 size=61216B;;;0
% ./plugins/check_http --onredirect=follow -H www.taxi-blog.de -u /wordpress/ -s Impressum -t 30
HTTP WARNING - maximum redirection depth 15 exceeded - http://www.taxi-blog.de:80wordpress/
% ./plugins/check_http --onredirect=follow -H www.taxi-blog.de -u /wordpress/ -s Impressum -t 30
HTTP WARNING - maximum redirection depth 15 exceeded - http://www.taxi-blog.de:80wordpress/

As you can see the error messages shows a messed up error message (a missing '/').

I think it depends on the header structure/size/order of the HTTP response message. Others URLs are failing
too with the version 1.4.12 so I think it's not an apache problem on the other side.

Greetings and thanks for the good work.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=2082501&group_id=29880




More information about the Devel mailing list