check_http inconsistent results
Martin Green
Martin.Green at nsynergy.com
Wed Dec 17 13:19:43 CET 2008
No load balancing, it's just a plain old IIS server with SharePoint running on it, configured to accept Basic auth.
Auth details truncated for obvious reasons...
root at Bungle:/usr/local/nagios/libexec# ./check_http -I pluto.uk.nsynergy.com -a 123:123
HTTP OK - HTTP/1.1 302 Redirect - 0.690 second response time |time=0.690064s;;;0.000000 size=457B;;;0
root at Bungle:/usr/local/nagios/libexec# ./check_http -H pluto.uk.nsynergy.com -a 123:123
HTTP OK - HTTP/1.1 302 Redirect - 6.493 second response time |time=6.493219s;;;0.000000 size=467B;;;0
root at Bungle:/usr/local/nagios/libexec# ./check_http -H pluto.uk.nsynergy.com -a 123:123
HTTP WARNING: HTTP/1.1 401 Unauthorized
root at Bungle:/usr/local/nagios/libexec#
With –vvv root at Bungle:/usr/local/nagios/libexec# ./check_http -H pluto.uk.nsynergy.com -a 123:123 -vvv
GET / HTTP/1.0
User-Agent: check_http/v2053 (nagios-plugins 1.4.13)
Connection: close
Host: pluto.uk.nsynergy.com
Authorization: Basic bmFnaW9zOjB2M3IyWTB1
http://pluto.uk.nsynergy.com:80/ is 224 characters
STATUS: HTTP/1.1 401 Unauthorized
**** HEADER ****
Server: Microsoft-IIS/7.0
WWW-Authenticate: NTLM
X-Powered-By: ASP.NET
MicrosoftSharePointTeamServices: 12.0.0.6219
Date: Wed, 17 Dec 2008 12:05:11 GMT
Connection: close
Content-Length: 0
**** CONTENT ****
HTTP WARNING: HTTP/1.1 401 Unauthorized
root at Bungle:/usr/local/nagios/libexec# ./check_http -H pluto.uk.nsynergy.com -a 123:123 -vvv
GET / HTTP/1.0
User-Agent: check_http/v2053 (nagios-plugins 1.4.13)
Connection: close
Host: pluto.uk.nsynergy.com
Authorization: Basic bmFnaW9zOjB2M3IyWTB1
http://pluto.uk.nsynergy.com:80/ is 467 characters
STATUS: HTTP/1.1 302 Redirect
**** HEADER ****
Content-Type: text/html; charset=UTF-8
Location: http://pluto.uk.nsynergy.com/Pages/Default.aspx
Server: Microsoft-IIS/7.0
X-Powered-By: ASP.NET
MicrosoftSharePointTeamServices: 12.0.0.6219
Date: Wed, 17 Dec 2008 12:05:18 GMT
Connection: close
Content-Length: 170
**** CONTENT ****
<head><title>Document Moved</title></head>
<body><h1>Object Moved</h1>This document may be found <a HREF="http://pluto.uk.nsynergy.com/Pages/Default.aspx">here</a></body>
HTTP OK - HTTP/1.1 302 Redirect - 0.239 second response time |time=0.238797s;;;0.000000 size=467B;;;0
root at Bungle:/usr/local/nagios/libexec#
That pattern will continue if I try again - whether it will be accepted or not is somewhat arbritrary.
M
-----Original Message-----
From: Thomas Guyot-Sionnest [mailto:dermoth at aei.ca]
Sent: 16 December 2008 19:43
To: Nagios Developers List
Subject: Re: [Nagios-devel] check_http inconsistent results
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Martin Green wrote:
> When I use basic auth with the –a argument, on one test I get 302
> (fine), next I get 401 Unauth – testing repeatedly, I’ll get different
> results with each test.
Are you behind some kind of load balancing? If so it could be some
servers actually fails basic auth.
Otherwise please send full output of this plugin in debug mode (-vvv)
for each different result you get.
Thanks
- --
Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFJSATQ6dZ+Kt5BchYRAl+yAKCqsamfIZxrcBa1ymhYMT4jAEmXVgCgulm+
PIDun53DjtSsJ728PF84fqA=
=n4sl
-----END PGP SIGNATURE-----
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel
More information about the Developers
mailing list