[Nagiosplug-devel] check_http fails to redirect to secure sites

Frank Bulk frnkblk at iname.com
Fri Feb 24 05:28:19 CET 2012


Starting this morning two of the sites I monitor failed, www.sprint.net and
www.sprintv6.net.  After some testing it’s become clear to me that
check_http doesn’t currently redirect to secure sites, even with the use of
the '-f follow' command.  I guess Sprint turned on redirection to the secure
version this morning.

 

Not sure whether to call this a bug or working-as-designed, but I’m request
the follow feature be enhanced to allow redirection to the secure version of
host.

 

I'm running check_http version 1.4.15.

 

Here's a copy of my tests:

 

============================================================================
==

nagios:/etc/nagios3#

nagios:/etc/nagios3# /usr/lib/nagios/plugins/check_http -H www.sprint.net -4

CRITICAL - Socket timeout after 10 seconds

nagios:/etc/nagios3#

nagios:/etc/nagios3# wget -4 www.sprint.net

--2012-02-23 17:52:06--  http://www.sprint.net/

Resolving www.sprint.net... 208.24.22.50

Connecting to www.sprint.net|208.24.22.50|:80... connected.

HTTP request sent, awaiting response... 302 Moved Temporarily

Location: https://www.sprint.net/ [following]

--2012-02-23 17:52:06--  https://www.sprint.net/

Connecting to www.sprint.net|208.24.22.50|:443... connected.

HTTP request sent, awaiting response... 200 OK

Length: unspecified [text/html]

Saving to: âindex.html.4â

 

    [ <=>
] 16,997      --.-K/s   in 0.05s

 

2012-02-23 17:52:06 (348 KB/s) - âindex.html.4â

 

nagios:/etc/nagios3#

============================================================================
==

nagios:/etc/nagios3# /usr/lib/nagios/plugins/check_http -H www.sprint.net -6

CRITICAL - Socket timeout after 10 seconds

nagios:/etc/nagios3#

nagios:/etc/nagios3# wget -6 www.sprint.net

--2012-02-23 17:54:49--  http://www.sprint.net/

Resolving www.sprint.net... 2600::

Connecting to www.sprint.net|2600::|:80... connected.

HTTP request sent, awaiting response... 302 Moved Temporarily

Location: https://www.sprint.net/ [following]

--2012-02-23 17:54:49--  https://www.sprint.net/

Connecting to www.sprint.net|2600::|:443... connected.

HTTP request sent, awaiting response... 200 OK

Length: unspecified [text/html]

Saving to: âindex.html.5â

 

    [ <=>
] 17,739      --.-K/s   in 0s

 

2012-02-23 17:54:49 (174 MB/s) - âindex.html.5â

 

nagios:/etc/nagios3#

============================================================================
==

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/devel/attachments/20120223/e6b14ab2/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6517 bytes
Desc: not available
URL: <https://www.monitoring-plugins.org/archive/devel/attachments/20120223/e6b14ab2/attachment.bin>


More information about the Devel mailing list