[Nagiosplug-devel] check_http: Socket timeout after 10 seconds (but webserver is up! )

Karl DeBisschop karl at debisschop.net
Sun Jan 26 21:28:01 CET 2003


On Sun, 2003-01-26 at 17:02, Christoph Stotz wrote:
> Hello,
> 
> I am experiencing a strange behaviour regarding check_http. I am trying to
> check multiple virtual Webs being hosted on the same machine. It seems, that
> first web (I call it first, because it has the lowest IP even if that does
> not should really matter) is checked without any problems, but any following
> times out.
> 
> <---cut here---><---cut here---><---cut here---><---cut here---><---cut
> here--->
> spaehfix:/usr/local/nagios # ./libexec/check_http -H A.B.C.D
> HTTP ok: HTTP/1.1 200 OK -   0.212 second response time |time=  0.212
> spaehfix:/usr/local/nagios # ./libexec/check_http -H E.F.G.H
> Socket timeout after 10 seconds
> spaehfix:/usr/local/nagios # ./libexec/check_http -H I.J.K.L
> Socket timeout after 10 seconds
> <---cut here---><---cut here---><---cut here---><---cut here---><---cut
> here--->
> 
> and so on. All webs are on the very same server within the same identical
> IIS instance (if "use Apache" pops up in your mind: I have the same problem
> with an Apache Web as well :o). The difference seems to be the way a request
> like the following one is served:

Can you try the same command with the -I flag instead of -H.

Still just a guess here, but remember the '-H' sets the hostname,
whereas '-I' does not. The server should either be successful or give a
400, so it's for from a sure thing. But maybe worth a try.

--
Karl





More information about the Devel mailing list