check_dns configuration problem

Thomas Guyot-Sionnest dermoth at aei.ca
Wed Aug 6 13:56:59 CEST 2008


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

On 06/08/08 04:13 AM, Ian Masters wrote:
> Hello
> 
> I'm a little confused about the configuration of check_dns.
> 
> If I do:
> [nagios at localhost libexec]$ ./check_dns 172.16.11.1 -H google.com
> I think I am querying the DNS service on server 172.16.11.1 for
> google.com . Is that correct?
> 
> I get the following output:
> DNS OK: 0.196 seconds response time. google.com returns
> 64.233.167.99,64.233.187.99,72.14.207.99|time=0.196169s;;;0.000000
> 
> I would like to define the check_dns command in commands.cfg so that I
> can query any server for any given address but at the moment I can only
> seem to get it to check a fixed address so at the moment my check_dns
> command looks like this:


See the --help output for check_dns. Every arguments should be defined
by a switch (positional args are only for backwards compatibility). To
specify the DNS server, use the -s switch; -H is the address you're
looking up.

Any recursive server should return something with the following command:

check_dns -s <dns_server> -H .

Be aware that if you use a full hostname on a caching DNS server, the
server will cache the domain according to the DNS TTL for that domain,
so depending on the domain you use it could take hours or even days to
detect a failure. Therefore you should try to find a domain with a very
sort TTL.

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

iD8DBQFImZGL6dZ+Kt5BchYRAhV4AKDdDLa8af5oWHKG9kXYxvvj4yfPHwCfdBF4
2f7yr01YOMHyr4EKDZcvWI8=
=rHVZ
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list