[Nagiosplug-help] check_http and missing DNS fallback

Steffen Poulsen sp at tdchosting.dk
Tue Mar 31 13:03:51 CEST 2009


> On large setups in can be very annoying when your dns fail
while you rely on it for all your checks

So we noticed :-)

Thanks for your suggestions, I guess there is no really "easy" way here - as much as I had hoped ..
 
Best regards,
Steffen

-----Original Message-----
From: Thomas Guyot-Sionnest [mailto:dermoth at aei.ca] 
Sent: 31. marts 2009 12:38
To: Nagios Plugin Help List
Subject: Re: [Nagiosplug-help] check_http and missing DNS fallback

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 30/03/09 04:17 AM, Steffen Poulsen wrote:
> Hi,

Hi,

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

This problem is not specific to Nagios Plugins. If your DNS fail other
components might be affected with delays. This is an OS configuration
problem.

It is normal behavior on UNIX to test DNS servers listed in
/etc/resolv.conf in order with a rather long delay between them. If you
want a behavior more like Windows, install a local DNS cache (I use
Dnscache) configured to use all your DNS servers as "masters", then
point your resolv.conf to Dnscache (127.0.0.1). Dnscache will try all
servers in the "@" file quicker and cache the IPs.

http://cr.yp.to/djbdns/run-cache-home.html

> 
> 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 do all my tests using IP-based checks, and explicitly test dns
separately. On large setups in can be very annoying when your dns fail
while you rely on it for all your checks. :)

- --
Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJ0fKc6dZ+Kt5BchYRAuhbAJ9jSN4au5d2hCX0KBbYykP5ZOWWzwCeLcxS
PUAbhl9MxuC7la9JnhdM/Yg=
=itcY
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
_______________________________________________
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