Page 1 of 1

Nagios Auto-Discovery displays wrong hostnames

Posted: Thu Apr 02, 2015 3:29 am
by camelel
Hi,

i'm using Nagios XI auto discovery wizard, I've set up a scanning job for my network 10.24.26.0/24 and it found 39 hosts, I've used the next settings:
Image
In the next screen, all hosts are getting the name "Netgear WAP" instead of the real dns name, as you can see in the screenshot:
Image

You can also see that the fqdn of the server is not "Netgear WAP":

Code: Select all

[root@nagios01 ~]# /usr/local/nagios/libexec/check_nrpe -H 10.24.26.63
NRPE v2.12
[root@nagios01 ~]# ping pnd04.nj.peer39.com
PING pnd04.nj.peer39.com (10.24.26.63) 56(84) bytes of data.
64 bytes from 10.24.26.63: icmp_seq=1 ttl=63 time=0.161 ms
^C
--- pnd04.nj.peer39.com ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 799ms
rtt min/avg/max/mdev = 0.161/0.161/0.161/0.000 ms
[root@nagios01 ~]#
Why does Nagios behave like that and how can I make sure that the real dns names are properly shown?

Thanks in advance,
Itai

Re: Nagios Auto-Discovery displays wrong hostnames

Posted: Thu Apr 02, 2015 4:39 am
by litsupport.box
This didn't work as smoothly as i hoped too, i used the "Bulk Host Cloning and Import Monitoring Wizard" to get what i wanted.

Configure a host in nagios to be a template for any type of server you want to check. This way you have a ESX machine template for copy, 1 normal server, a switch etc.. i hope this helps you too.

This is the format: (the fields are not all required) this bulk host cloning thingy can also be used to make bulk changes to existing hosts.

Server01,Server01,... (fields are seperated by a comma)
Image

Re: Nagios Auto-Discovery displays wrong hostnames

Posted: Thu Apr 02, 2015 4:52 am
by camelel
Hi,

litsupport.box- Thanks for your response, I'll check it out.

Before purchasing Nagios XI, I've downloaded and installed Nagios XI Trial and when I ran the auto-discovery tool there everything worked as intended... I wonder why it doesn't work with the paid version.
I've specified specifically to the sales person that this is the main reason for us to purchase a license and now it doesn't work.
Nagios team, what do you suggest?

Thanks

Itai

Re: Nagios Auto-Discovery displays wrong hostnames

Posted: Thu Apr 02, 2015 4:59 am
by litsupport.box
nagios is buggy sometimes :P good luck.

Re: Nagios Auto-Discovery displays wrong hostnames

Posted: Thu Apr 02, 2015 9:47 am
by tmcdonald
The field that is showing "Netgear WAP" is actually showing you the "Type" whereas the "Host Name" field with the IP listed would be the name (it might not be resolving correctly depending on your DNS settings). "embedded" is the OS field, and "New" is the status field.

Attached is a scan of one of my Windows workstations for reference.