[Nagiosplug-help] check_http and missing DNS fallback
lei chen
cloved at gmail.com
Tue Mar 31 09:11:35 CEST 2009
Try to use -I <IP-address> to specify the IP Addr, instead of using
dns resolve.
Such as that:
./check_http -I 211.103.181.199 -H www.itnms.net -u / -f warning -p
80 -w 3 -c 5 -t 10
2009/3/30 Steffen Poulsen <sp at tdchosting.dk>:
> 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
>
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Nagiosplug-help mailing list
> Nagiosplug-help at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
> ::: Please include plugins version (-v) and OS when reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
>
--
Thanks,
Chenlei & 石头++
MSN Messenger: chnl at 163.com
More information about the Help
mailing list