Nagios Auto-Discovery displays wrong hostnames

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
camelel
Posts: 9
Joined: Mon Oct 06, 2014 6:29 am

Nagios Auto-Discovery displays wrong hostnames

Post 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
litsupport.box
Posts: 80
Joined: Wed Apr 02, 2014 7:24 am

Re: Nagios Auto-Discovery displays wrong hostnames

Post 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
Nagios XI Version : 2014R2.6
fqdn 2.6.32-431.17.1.el6.x86_64 x86_64
CentOS release 6.5 (Final)
Gnome is not installed
Proxy appears to be in use
VMware Image
Mod Gearman
camelel
Posts: 9
Joined: Mon Oct 06, 2014 6:29 am

Re: Nagios Auto-Discovery displays wrong hostnames

Post 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
litsupport.box
Posts: 80
Joined: Wed Apr 02, 2014 7:24 am

Re: Nagios Auto-Discovery displays wrong hostnames

Post by litsupport.box »

nagios is buggy sometimes :P good luck.
Nagios XI Version : 2014R2.6
fqdn 2.6.32-431.17.1.el6.x86_64 x86_64
CentOS release 6.5 (Final)
Gnome is not installed
Proxy appears to be in use
VMware Image
Mod Gearman
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios Auto-Discovery displays wrong hostnames

Post 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.
You do not have the required permissions to view the files attached to this post.
Former Nagios employee
Locked