[Nagiosplug-help] check_http and missing DNS fallback

Steffen Poulsen sp at tdchosting.dk
Mon Mar 30 10:17:22 CEST 2009


Hi,

Is there any way to make check_http fallback on dns service used (like other services at the machine)?

A little test reveals that apparently only the primary DNS server is in use, the second and following name servers are ignored.

--

[root at nag-test nagios-plugins-1.4.13]# ./plugins/check_http -H <hostname> -u / -f warning -p 80 -w 3 -c 5 -t 10
HTTP OK HTTP/1.1 200 OK - 356 bytes in 0.013 seconds |time=0.012519s;3.000000;5.000000;0.000000 size=356B;;;0

[root at nag-test nagios-plugins-1.4.13]# iptables -A INPUT -s <primary dns> -j DROP

[root at nag-test nagios-plugins-1.4.13]# ./plugins/check_http -H <hostname> -u / -f warning -p 80 -w 3 -c 5 -t 10
CRITICAL - Socket timeout after 10 seconds

--

I know there is  a "-I" parameter for passing in the ip directly to the check, but this is not the behavior I'm after - I still want the check to be dynamic with regards to the IP address for the service.

I hope I'm just missing the obvious?

Best regards,
Steffen

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20090330/1b7ebc80/attachment.html>


More information about the Help mailing list