Page 1 of 1

DNS CRITICAL - '/usr/bin/nslookup -sil' msg parsing exited w

Posted: Thu Jun 20, 2013 9:26 am
by brandonb110
I changed our DNS server for Nagios this morning. Ever since I am gettign this error with our DNS servers "DNS CRITICAL - '/usr/bin/nslookup -sil' msg parsing exited with no address." I changed the DNS serevr back on Nagios to the original one but the error is still there, I have restarted nagios but to no avail. Seems like it should just be a simple reload of someting but I am not sure. Any help would be greatly appreciated.

# 'check_dns' command definition
define command{
command_name check_dns
command_line $USER1$/check_dns -H http://www.google.com -s $HOSTADDRESS$ $ARG1$
}

define service{
use local-service ; Name of service template to use
host_name ns1-cache,ns2-cache,ns1-auth,ns2-auth,opendns1,opendns2
service_description DNS
check_command check_dns
max_check_attempts 3
event_handler restart-win-dns
}

Re: DNS CRITICAL - '/usr/bin/nslookup -sil' msg parsing exit

Posted: Thu Jun 20, 2013 1:01 pm
by abrist
If you run the check from the cli, do you get the same error?

Code: Select all

/usr/local/nagios/libexec/check_dns -H www.google.com -s <ip of ns1-cache or other dns server>

Re: DNS CRITICAL - '/usr/bin/nslookup -sil' msg parsing exit

Posted: Thu Jun 20, 2013 1:24 pm
by brandonb110
Yes, I get the same message and also tried a nslookup and get this results:

nslookup: parse of /etc/resolv.conf failed

my resolv.conf is:
nameserver xxx.xxx.xxx.xxx
nameserver xxx.xxx.xxx.xxx

Re: DNS CRITICAL - '/usr/bin/nslookup -sil' msg parsing exit

Posted: Thu Jun 20, 2013 3:21 pm
by brandonb110
The issue has been resolved, not sure why but I uploaded a new resolv.conf witht he same settings and it works great now.

Thanks

Re: DNS CRITICAL - '/usr/bin/nslookup -sil' msg parsing exit

Posted: Thu Jun 20, 2013 4:54 pm
by lmiltchev
Sounds good!