[Nagiosplug-help] check_http plugin
Thomas Guyot-Sionnest
dermoth at aei.ca
Sat Feb 20 16:40:07 CET 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 20/02/10 06:43 AM, Sylvain Kalache wrote:
>
> Are you really using v1.4.3??
>
>>>Yeap I'm really using this version of Nagios.
>
> This is a very old release and you should upgrade. There are some fixes
> in the latest check_http versions regarding the HTTP version, although
> most servers accept the Host header even with v1.0
>
>>>Unfortunately I'm using this in a company and I just can't upgrade
> Nagios...
>>>The device I want to reach seem to do not accept v1.0 at all:
>
> #check_http -v --ssl -I 172.24.1.4 -p 443
> GET / HTTP/1.0 User-Agent: check_http/1.89 (nagios-plugins 1.4.3)
> https://172.24.1.4:443/ is 443 characters STATUS: HTTP/1.1 505 HTTP
> Version Not Supported **** HEADER **** Date: Sat, 20 Feb 2010 11:40:59
> GMT Server: FortiWeb-2.2.0 Connection: close Content-Type: text/html;
> charset=iso-8859-1 **** CONTENT **** <!DOCTYPE HTML PUBLIC "-//IETF//DTD
> HTML 2.0//EN"> <HTML><HEAD> <TITLE>505 HTTP Version Not
> Supported</TITLE> </HEAD><BODY> <H1>HTTP Version Not Supported</H1> HTTP
> protocol shoud be above or equal 1.1 Please make sure that your browser
> meets the requirement. </BODY></HTML> HTTP CRITICAL: HTTP/1.1 505 HTTP
> Version Not Supported
In any case, to have HTTP/1.1 + Host header you have to specify -H
parameter. Ex:
check_http -v --ssl -H example.com -I 172.24.1.4 -p 443
If you omit the -I parameter, the -H param is used for both resolving
and Host: header. If you specify both, check_http connects to the -I
param and use the -H param for the Host: header.
I'm not sure if this version of check_http will use v1.1 even with a
Host: header though - the latest version will do it.
- --
Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFLgAJX6dZ+Kt5BchYRAqaQAJ9keCbQUtpZvbvGDWC127rLdwQ8rQCeI4Nh
rux/AGrrMXeirI7U2L//KuM=
=YLds
-----END PGP SIGNATURE-----
More information about the Help
mailing list