Hi Rafael,
On 3 Nov 2009, at 16:17, Rafael Carneiro wrote:
I have recently updated our Opsview to the 3.3.2 version. We monitor
a lot of websites and I noticed that one of them went to critical
after the update.
Basically, this is what now fails and worked fine before the upgrade:
/usr/local/nagios/libexec/check_http -H <domain> --onredirect=follow
-w 2 -c 5
I noticed that if i remove the -H the plugin returns an Ok:
/usr/local/nagios/libexec/check_http <domain> --onredirect=follow -w
2 -c 5
That seemed fine to me, but then I noticed that now the plugin
returns an Ok for a Critical state (that's when not using the -H):
/usr/local/nagios/libexec/check_http <domain> --onredirect=follow -w
2 -c 5
In the NEWS file for the nagios plugins, it says "Fixed check_http
sending HTTP/1.0 with v1.1 headers".
You had privately sent me the full <domain>, which allowed me to run
check_http with -v -v -v for debug output. This showed that there is a
Host: {hostname} header sent to the web server, where a socket timeout
occurred.
It looks like the web server returns back "Server: Microsoft-IIS/7.0"
and my guess is that this server is not respecting or not processing
the Host: header correctly.
However, looking at the ./check_http help file, it seems you can run -
I {hostname} instead of -H and this doesn't include the Host: header.
Try that instead.
The RFC says that the Host header should be set: http://www.w3.org/Protocols/rfc2616/rfc2616-sec19.html#sec19.6.1.1
, so I guess the plugins are still wrong for allowing -I to work
without setting this header. So there maybe some breakage again in
future.
I started troubleshooting and found out that the new version of
check_http is bigger in size but reports the same version as the old
one:
New:
[mia1-ops-001] reports > ls -la /usr/local/nagios/libexec/check_http
-rwxr-xr-x 1 nagios nagios 154124 2009-10-08 07:29 /usr/local/nagios/
libexec/check_http
[mia1-ops-001] reports > /usr/local/nagios/libexec/check_http -V
check_http v1.4.14 (nagios-plugins 1.4.14)
Old (copied from another box):
[mia1-ops-001] reports > ls -la /home/vpn-c0115m/check_http_original
-rwxr-xr-x 1 vpn-c0115m vpn-c0115m 72472 2009-11-03 09:51 /home/vpn-
c0115m/check_http_original
[mia1-ops-001] reports > /home/vpn-c0115m/check_http_original -V
check_http v1.4.14 (nagios-plugins 1.4.14)
Not sure why there are different sizes. We only included nagios
plugins 1.4.14 in Opsview 3.3.2.
Ton
_______________________________________________
Opsview-users mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-users