check_http fails to redirect to secure sites
"Frank Bulk" <[email protected]>
| Newsgroups | gmane.network.nagios.plugins.devel |
|---|---|
| Message-ID | <[email protected]> |
Starting this morning two of the sites I monitor failed, www.sprint.net and
www.sprintv6.net. After some testing its become clear to me that
check_http doesnt 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 Im 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#
============================================================================
==
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________________
Nagios Plugin Development Mailing List Nagiosplug-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Unsubscribe at https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel
::: Please include plugins version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
smime.p7s
(application/pkcs7-signature, 6.4 KB) - not displayed