check_http fails for two Sprint sites
Joerg Linge
pitchfork at ederdrom.de
Fri Feb 24 08:29:01 CET 2012
OK, more tests.
check_http with verbose output
OMD[gearman]:~$ ./lib/nagios/plugins/check_http -vv -H www.sprint.net
GET / HTTP/1.1
User-Agent: check_http/v1.4.15 (nagios-plugins 1.4.15)
Connection: close
Host: www.sprint.net
CRITICAL - Socket timeout after 10 seconds
so lets test with low level telnet
OMD[gearman]:~$ telnet www.sprint.net 80
Trying 2600::...
Connected to www.sprint.net.
Escape character is '^]'.
GET / HTTP/1.1
Host: www.sprint.net
HTTP/1.1 302 Moved Temporarily
Server: HTTP Proxy/1.0
Connection: Close
Content-Length: 0
Location: https://www.sprint.net/
Server: HTTP Proxy/1.0 ??
Lets do a http 1.0 request
OMD[gearman]:~$ telnet www.sprint.net 80
Trying 2600::...
Connected to www.sprint.net.
Escape character is '^]'.
GET / HTTP/1.0
HTTP/1.1 200 OK
Set-Cookie: ServerID=1125; path=/
Date: Fri, 24 Feb 2012 07:26:04 GMT
Content-Type: text/html
Connection: close
Server: Apache/2.2.21 (Unix)
Now its an Apache 2.2.22 ??
Joerg
Am 24.02.2012 um 07:02 schrieb Frank Bulk:
> So if wget can follow redirects from insecure to secure sites, why can't
> check_http?
>
> Frank
>
> -----Original Message-----
> From: Joerg Linge [mailto:pitchfork at ederdrom.de]
> Sent: Thursday, February 23, 2012 11:40 PM
> To: Nagios Users List
> Subject: Re: [Nagios-users] check_http fails for two Sprint sites
>
> Hi Frank,
> your side does not respond to http requests
>
> OMD[gearman]:~$ ./lib/nagios/plugins/check_http -6 -H www.sprint.net
> CRITICAL - Socket timeout after 10 seconds
> OMD[gearman]:~$ ./lib/nagios/plugins/check_http -H www.sprint.net
> CRITICAL - Socket timeout after 10 seconds
>
> HTTPS works well
>
> OMD[gearman]:~$ ./lib/nagios/plugins/check_http -6 -S -H www.sprint.net
> HTTP OK: HTTP/1.1 200 OK - 18004 bytes in 0.744 second response time
> |time=0.743648s;;;0.000000 size=18004B;;;0
> OMD[gearman]:~$ ./lib/nagios/plugins/check_http -S -H www.sprint.net
> HTTP OK: HTTP/1.1 200 OK - 18004 bytes in 0.736 second response time
> |time=0.735588s;;;0.000000 size=18004B;;;0
>
> wget redirects directly to HTTPS
>
> OMD[gearman]:~$ wget www.sprint.net
> --2012-02-24 06:37:35-- http://www.sprint.net/
> Resolving www.sprint.net... 2600::, 208.24.22.50
> Connecting to www.sprint.net|2600::|:80... connected.
> HTTP request sent, awaiting response... 302 Moved Temporarily
> Location: https://www.sprint.net/ [following]
> --2012-02-24 06:37:36-- 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”
> 2012-02-24 06:37:37 (1.31 MB/s) - “index.html” saved [17739]
>
>
> Joerg
>
> Am 24.02.2012 um 00:58 schrieb Frank Bulk:
>
>> Starting this morning two IPv6 sites, www.sprint.net and www.sprintv6.net
>> failed to pass check_http. What's strange is that the v4 version of
>> www.sprint.net also fails.
>>
>> I see that there are 302's (redirection) to the secure version of the
> site,
>> but using the '-f follow' command doesn't help, either. It seems that if
>> the site one being is redirected to is secure that the check command
> fails.
>>
>> I'm running check_http version 1.4.15.
>>
>> Here's my output:
>>
>>
> ============================================================================
>> ==
>> 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-users mailing list
>> Nagios-users at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/nagios-users
>> ::: Please include Nagios version, plugin version (-v) and OS when
> reporting any issue.
>> ::: Messages without supporting info will risk being sent to /dev/null
>
>
> ----------------------------------------------------------------------------
> --
> 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-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
> ------------------------------------------------------------------------------
> 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-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
------------------------------------------------------------------------------
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-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list