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.
Eval NagiosXI - DNS
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Eval NagiosXI - DNS
What was the error you received in the XI Web interface pertaining to this service's check failing?
Re: Eval NagiosXI - DNS
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
Can you post a screenshot of the error that you are getting?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Eval NagiosXI - DNS
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
You do not have the required permissions to view the files attached to this post.
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Eval NagiosXI - DNS
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.21Re: Eval NagiosXI - DNS
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
if I try the same with an internal hostname and ip it says
Domain <hostname> was not found by the server
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Eval NagiosXI - DNS
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
This will be required to use internal dns names...
or add the hosts to the /etc/hosts file
Re: Eval NagiosXI - DNS
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
thanks for your help