Page 1 of 1
NNA can't resolve host IP
Posted: Fri Jul 10, 2020 5:55 am
by agpol07
Hi,
There is one ip address in my network that is not resolved on NNA gui.
If i make a nslookup or ping the host name from cli it is resolved properly.
Re: NNA can't resolve host IP
Posted: Fri Jul 10, 2020 9:43 am
by scottwilkerson
It need to be able to do a
reverse DNS lookup, if you run nslookup with the IP what do you get?
Re: NNA can't resolve host IP
Posted: Mon Jul 13, 2020 2:06 am
by agpol07
Code: Select all
[root@nagios /]# nslookup 10.2.2.20
Server: 10.2.3.16
Address: 10.2.3.16#53
20.2.2.10.in-addr.arpa name = proxy1.XXXXXXXXXXXX.
[root@nagios /]#
[root@nagios /]# nslookup proxy1.XXXXXXXXXXXXX
Server: 10.2.3.16
Address: 10.2.3.16#53
Name: proxy1.XXXXXXXXXX
Address: 10.2.2.20
Re: NNA can't resolve host IP
Posted: Mon Jul 13, 2020 4:47 pm
by ssax
What does your
/etc/resolv.conf show?
What does this output?
Code: Select all
php -r 'echo gethostbyaddr("10.2.2.20")."\n";'
Re: NNA can't resolve host IP
Posted: Tue Jul 14, 2020 2:13 am
by agpol07
ssax wrote:What does your
/etc/resolv.conf show?
Code: Select all
; generated by /sbin/dhclient-script
search MYDOMAIN
nameserver 10.2.3.16
nameserver 10.3.3.33
ssax wrote:
What does this output?
Code: Select all
php -r 'echo gethostbyaddr("10.2.2.20")."\n";'
Re: NNA can't resolve host IP
Posted: Tue Jul 14, 2020 3:15 am
by agpol07
I've tried everything from this thread, too.
https://support.nagios.com/forum/viewto ... 32&t=38274
But, with no luck..
Re: NNA can't resolve host IP
Posted: Tue Jul 14, 2020 9:07 am
by agpol07
I'd like to mention that when i first set up NNA, the above resolutions didn't work.
Then i contacted DNS admin, and after he changed something everything worked fine from ssh(cli), but not from GUI.
Re: NNA can't resolve host IP
Posted: Tue Jul 14, 2020 4:53 pm
by ssax
I'm out of ideas. Please create a ticket for this and include a link back to this forum thread so we can get a remote session setup so we can debug further:
https://support.nagios.com/tickets/
Re: NNA can't resolve host IP
Posted: Tue Jul 21, 2020 3:30 pm
by ssax
Locking thread, ticket received, we will continue support through the ticket.
If anyone else experiences this, run this command to delete the old cached item:
- Change X.X.X.X to the IP of the affected system
Code: Select all
mysql -h 127.0.0.1 -unagiosna -pnagiosna nagiosna -e "delete from nagiosna_hostname_cache where ip='X.X.X.X';"
Then go view a report that contains it and it should re-cache the information.