Posts Tagged ‘monitor dns’

How to Enable check_dns on Nagios Monitoring System

Friday, February 25th, 2011

Most user who are new to Nagios doesn’t know there is a hidden plug-in called check_dns in Nagios Monitoring system. On FreeBSD server, the binary can be found at /usr/local/libexec/nagios. List the directory and you should see check_dns.

check_dns usage is as below

$ ./check_dns -H host [-s server] [-a expected-address] [-A] [-t timeout] [-w warn] [-c crit]

Try to run the command as below and you will get the query result

$ ./check_dns -H -s        
DNS OK: 0.012 seconds response time. returns|time=0.011703s;;;0.000000