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

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
brandonb110
Posts: 7
Joined: Thu Apr 25, 2013 9:10 am

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

Post 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
}
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

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

Post 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>
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
brandonb110
Posts: 7
Joined: Thu Apr 25, 2013 9:10 am

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

Post 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
brandonb110
Posts: 7
Joined: Thu Apr 25, 2013 9:10 am

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

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

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

Post by lmiltchev »

Sounds good!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked