[Nagiosplug-help] check_http and missing DNS fallback
Steffen Poulsen
sp at tdchosting.dk
Tue Mar 31 10:10:59 CEST 2009
Hi lei,
Thanks for your feedback, unfortunately using the -I has its "static" side effects that we would like to avoid.
Best regards,
Steffen
-----Original Message-----
From: lei chen [mailto:cloved at gmail.com]
Sent: 31. marts 2009 09:12
To: Nagios Plugin Help List
Subject: Re: [Nagiosplug-help] check_http and missing DNS fallback
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
------------------------------------------------------------------------------
_______________________________________________
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
More information about the Help
mailing list