I have some issues with setting up dns_check on my Nagios system. What I want is my system to monitor the response time of different DNS-servers.
Like this:
Monitor responstime google.com using DNS1
Monitor responstime google.com using DNS2
Monitor responstime google.com using DNS3
Everything from the same host.
I've read several guides on how to achieve this, but I'm stuck.
The current status is that I've added a service in the localhost cfg:
Code: Select all
lordberre@ubuntu:/etc/nagios3/conf.d$ cat localhost_nagios2.cfg
# DNS-Check
define service{
use generic-service ; Name of service template to use
host_name localhost
service_description DNS 2
check_command check_dns!google.comCode: Select all
lordberre@ubuntu:/usr/lib/nagios/plugins$ ./check_dns -H google.com -s 8.8.8.8
DNS OK: 0.049 seconds response time. google.com returns 216.58.209.110|time=0.048552s;;;0.000000Code: Select all
"4/4 CRITICAL - Plugin timed out while executing system call"Initially, I just wanted to set up the DNS-checking for the currently used DNS server, then proceed with adding the other one, but I haven't really gotten anywhere (I'm a complete noob at this).
System: Ubuntu 14.04 running on a VMWare (v11) machine.
Any help appreciated!