Page 1 of 1

Eval NagiosXI - DNS

Posted: Thu Nov 08, 2012 2:54 pm
by sharding
I have a trial version of XI setup and IP/DNS settings are correct. When I try to monitor a website it kept failing to find out the VM cannot query DNS to resolve server names, it there something else I should be doing ?

I used the system-network-config to enter IP and DNS info and these are correct, I then ifdown my eth0 and ifup eth0

Am using r1 - Nagios tells me there is an update from Nov 5 but the download page does not have this available.

Re: Eval NagiosXI - DNS

Posted: Thu Nov 08, 2012 4:06 pm
by slansing
What was the error you received in the XI Web interface pertaining to this service's check failing?

Re: Eval NagiosXI - DNS

Posted: Mon Nov 12, 2012 3:54 pm
by sharding
sorry I must have explained wrong, it's not a DNS check in Nagios XI, it's the DNS of my VM, I am using our DNS addresses but when I ssh into the VM I cannot resolve any DNS names

Re: Eval NagiosXI - DNS

Posted: Mon Nov 12, 2012 4:47 pm
by lmiltchev
Can you post a screenshot of the error that you are getting?

Re: Eval NagiosXI - DNS

Posted: Fri Nov 16, 2012 10:19 am
by sharding
Not really an error, anything shows as fails when the nodes/hostnames are up so I am assuming the VM has a DNS issue, but it does have the correct DNS Ip's in the system-network-config or whatever it's called

Re: Eval NagiosXI - DNS

Posted: Fri Nov 16, 2012 2:28 pm
by slansing
Can you run the following as a test from your command line and post the results?

Code: Select all

/usr/local/nagios/libexec/check_dns -H serverfault.com -a 69.59.197.21

Re: Eval NagiosXI - DNS

Posted: Fri Nov 16, 2012 2:57 pm
by sharding
dns ok: 0.155 sec resp time. serverfault.com returns 69.59.197.21|time=0.155300s;;;0.000000

if I try the same with an internal hostname and ip it says

Domain <hostname> was not found by the server

Re: Eval NagiosXI - DNS

Posted: Fri Nov 16, 2012 3:22 pm
by scottwilkerson
do you have your internal DNS server set in the /etc/resolv.conf ?

This will be required to use internal dns names...
or add the hosts to the /etc/hosts file

Re: Eval NagiosXI - DNS

Posted: Fri Nov 16, 2012 3:39 pm
by sharding
No all the config was done via the system-network-config util, but I did check it and the DNS was correct but the domain was totally not ours so I changed to our domain name re-started an it looks a lot better now, will check some more, but all those DNS errors have gone

thanks for your help