[Nagiosplug-help] Output of check_http not consistent

Olivier 'Babar' Raginel nagios at babar.us
Tue May 22 14:09:06 CEST 2007


On Tue, May 22, 2007 at 01:19:28PM +0200, Martin Møller Skarbiniks Pedersen wrote:
> > $ ./check_http -I localhost
> > HTTP OK HTTP/1.1 200 OK - 1227 bytes in 0.067 seconds |
> > time=0.066948s;;;0.000000 size=1227B;;;0
> > $ echo $?
> > 0
> >
> > $ ./check_http -I www.binonabiso.com
> > OK - HTTP/1.1 302 Found - 0.723 second response time |
> > time=0.723189s;;;0.000000 size=365B;;;0
> > $ echo $?
> > 0
> 
> HTTP code 302 means that you probably got a configuration error on your
> webserver.

302 is a redirection, it's not an error. So it's consistent with not an 
error code. I just don't get the problem here.

Only 4xx and 5xx should be considered as errors, not 3xx.

-- 
Babar.




More information about the Help mailing list