check_http inconsistent results

Paa.listas paa.listas at gmail.com
Sat Jan 3 11:25:57 CET 2009


$ host pluto.uk.nsynergy.com
pluto.uk.nsynergy.com has address 78.129.232.220
pluto.uk.nsynergy.com has address 78.129.232.223

Are both configured equal?

Saludos. Pablo.


-----Mensaje original-----
De: Martin Green [mailto:Martin.Green at nsynergy.com] 
Enviado el: Sábado, 03 de Enero de 2009 12:30 a.m.
Para: Nagios Developers List
Asunto: Re: [Nagios-devel] check_http inconsistent results

Hey Jon,

The machine is the DC.

M

-----Original Message-----
From: Jon Angliss [mailto:jon at netdork.net]
Sent: 02 January 2009 20:12
To: nagios-devel at lists.sourceforge.net
Subject: Re: [Nagios-devel] check_http inconsistent results

Martin,

Have you tried eliminating it being an issue with the plugin, and just
testing with wget or something similar?

Is the IIS server part of a domain?  Have you tried checking the
security logs on the server to see if there are any odd entries there?
I do notice a substantial time difference between the execution of one
over the other.  The successful run takes 0.69s, whilst the failed run
takes 6.49s, 10 times the execution time.  If it is on a domain, could
it be having issues authenticating to a DC?


On Wed, 17 Dec 2008 23:19:43 +1100, Martin Green
<Martin.Green at nsynergy.com> wrote:

>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
--
Jon Angliss


----------------------------------------------------------------------------
--
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel

----------------------------------------------------------------------------
--
_______________________________________________
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