Nagios - check_dns

 

 


check_dns

 

Usage:

check_dns -H host [-s server]

-H, --hostname=HOST                 # The name or address you want to query
    
-s, --server=HOST                       # Optional DNS server you want to use for the lookup

# If no DNS server is specified, the default server(s) specified in /etc/resolv.conf will be used.

command: check_dns_itself

define command{
        command_name    check_dns_itself
        command_line    $USER1$/check_dns -H $HOSTADDRESS$ -s $HOSTADDRESS$
        }

Troubleshoot

CRITICAL - Plugin timed out while executing system call

出事的一句

commands.cfg:

command_line    $USER1$/check_dns -H hk.yahoo.com -s $HOSTADDRESS$