Autodiscovery doesn't resolve the Host Name

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
hanif1138
Posts: 5
Joined: Sun Mar 26, 2017 7:08 am

Autodiscovery doesn't resolve the Host Name

Post by hanif1138 »

Hi,

I have installed Nagios XI on VMWare ESXI, when running Autodiscovery it find a wide range of IPs in the network but it's not able to resolve the DNS host name. I chose from the drop-down menu in the wizard DNS Names rather than IP Addresses but in the next page it only shows the IP address as Host Name.

I've configured network IP & DNS name via system--config-network and can ping google.com properly. nslookup resolved the name as well. but Nagios can't resolve the hostname.

What could be the issue?

Thank you
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Autodiscovery doesn't resolve the Host Name

Post by scottwilkerson »

One thing I can think of is do you have reverse DNS setup for the IP's in the range you are scanning, and does your server know about the DNS server that hosts that reverse DNS.

Many times we scan local ranges of IP addresses (e.g. 192.168.x.x) but only have DNS setup for to wider internet.

Can you do a nslookup of an IP address in the range you are scanning from the nagios XI server?

e.g.

Code: Select all

nslookup 192.168.1.2
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
hanif1138
Posts: 5
Joined: Sun Mar 26, 2017 7:08 am

Re: Autodiscovery doesn't resolve the Host Name

Post by hanif1138 »

Thanks for the help.
Yes the issue was coming from missing reverse DNS zone in the AD, after adding that, Nagios resolved Host name successfully.

Now the issue is something different, in Auto discovery after resolving the names and click on submit it gets stuck in the "Waiting for configuration " and does not go through.
You do not have the required permissions to view the files attached to this post.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Autodiscovery doesn't resolve the Host Name

Post by mcapra »

Can you run the following command from the CLI of your Nagios XI machine:

Code: Select all

tail -f /usr/local/nagiosxi/var/cmdsubsys.log
Then try to apply the configuration from the GUI, and share anything that the previous command outputs?
Former Nagios employee
https://www.mcapra.com/
hanif1138
Posts: 5
Joined: Sun Mar 26, 2017 7:08 am

Re: Autodiscovery doesn't resolve the Host Name

Post by hanif1138 »

Yep I ran the command and saw the error WGET Fails with message "Unable to resolve host address"

I goggled that and found the solution in https://support.nagios.com/kb/print.php?id=532 and it was fixed after adding localhost into the hosts file. Now Autodiscovery resolves the names properly.

Thank you very much for the help.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Autodiscovery doesn't resolve the Host Name

Post by cdienger »

Thanks for the update. Is it okay to lock the thread?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
hanif1138
Posts: 5
Joined: Sun Mar 26, 2017 7:08 am

Re: Autodiscovery doesn't resolve the Host Name

Post by hanif1138 »

cdienger wrote:Thanks for the update. Is it okay to lock the thread?
Yes sure..
Locked