Hi,
I am having some problems with the check_dns plugin. I’m trying to check the DNS service on a couple of active directory Windows servers.
Here’s the entry from command.cfg:
‘check_dns’ command definition
define command{
command_name check_dns
command_line $USER1$/check_dns -H www.somesite.com -s $HOSTADDRESS$
}
And the entry from services.cfg:
define service{
use local-service
host_name UTILPRD001
service_description DNS
check_command check_dns!172.19.3.254
}
The error I’m getting is:
DNS CRITICAL - ‘/usr/local/bin/nslookup -sil’ output parsing exited with no address
and nagios.log:
SERVICE ALERT: UTILPRD001;DNS;CRITICAL;HARD;4;DNS CRITICAL - ‘/usr/local/bin/nslookup -sil’ output parsing exited with no address
I checked the paths and nslookup is indeed in /usr/local/bin.
Is there a problem with my syntax?
Thanks,