[Nagiosplug-devel] check_http, IPv6 and "Bad Request"

Jumper99 at gmx.de Jumper99 at gmx.de
Sun May 22 23:54:08 CEST 2011


Hi,

If you query IIS7 on Windows 2008R2 using an IPv6 address the result is "Bad Request":

[helmut at BSDHelmut ~]$ /usr/local/libexec/nagios/check_http -6 -H zeus
HTTP OK: HTTP/1.1 200 OK - 954 bytes in 0.003 second response time |time=0.002732s;;;0.000000 size=954B;;;0
[helmut at BSDHelmut ~]$ /usr/local/libexec/nagios/check_http -6 -H 2001:6f8:1013:1:1::254
HTTP WARNING: HTTP/1.1 400 Bad Request - 513 bytes in 0.001 second response time |time=0.000978s;;;0.000000 size=513B;;;0

A workaround is to put brackets around the IPv6 address:

[helmut at BSDHelmut ~]$ /usr/local/libexec/nagios/check_http -6 -H [2001:6f8:1013:1:1::254]
HTTP OK: HTTP/1.1 200 OK - 954 bytes in 0.002 second response time |time=0.001647s;;;0.000000 size=954B;;;0
[helmut at BSDHelmut ~]$

Helmut
-- 
NEU: FreePhone - kostenlos mobil telefonieren!			
Jetzt informieren: http://www.gmx.net/de/go/freephone




More information about the Devel mailing list