long hostname

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
progressive.nagiosXI
Posts: 277
Joined: Mon Jul 31, 2017 5:54 am

long hostname

Post by progressive.nagiosXI »

Hi,

we need to know why nagiosxi show long hostname in Dashboard

Code: Select all

Xyz-Production-PulseDB-172.26.7.0-Windows-Infra (Xyz-Production-PulseDB-172.26.7.0-Windows-Infra)
while in hostname configuration we put
Host Name : Xyz-Production-PulseDB-172.26.7.0-Windows-Infra
Alias:
Address : 172.26.7.0
Display Name :

Note:- Alias and display name is blank ,then why hostname info repeat in brakets() ,how to resolve this

Thanks
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: long hostname

Post by ssax »

What XI version are you running? I labbed this up in 5.7.1 and I'm not able to replicate it.

Please PM me a copy of your profile, you can download it from Admin > System Profile > Download Profile button.
progressive.nagiosXI
Posts: 277
Joined: Mon Jul 31, 2017 5:54 am

Re: long hostname

Post by progressive.nagiosXI »

Hi ,

Details shared in PM , showing in outbox

Re: long hostname
Sent: Tue Jul 07, 2020 10:32 pm
From: progressive.nagiosXI
To: ssax


Thanks
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: long hostname

Post by ssax »

Received, when looking in your /var/nagiosramdisk/objects.cache file I see the alias listed there.

Please run these commands as root and PM me the resulting /tmp/nagios_objects.zip file:
- NOTE: You may need to adjust the -h 127.0.0.1, the -uroot, and -pnagiosxi in the first command if your DB is offloaded to another server and/or you've changed the root mysql password

Code: Select all

mysqldump -h 127.0.0.1 -uroot -pnagiosxi --add-drop-database nagios nagios_objects > /tmp/nagios_objects.dump
zip /tmp/nagios_objects.zip /tmp/nagios_objects.dump
progressive.nagiosXI
Posts: 277
Joined: Mon Jul 31, 2017 5:54 am

Re: long hostname

Post by progressive.nagiosXI »

required details shared in PM

Re: long hostname
Sent: Thu Jul 09, 2020 10:12 pm
From: progressive.nagiosXI
To: ssax


Thanks
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: long hostname

Post by ssax »

Can you edit the host and set the alias to something else (anything other than blank), apply config, and then see if it changes?

If that doesn't work, please go to Configure > Core Config Manager > Tools > Config File Management:
- Click the Delete Files button (don't worry, it's safe, they will be rewritten)

Once you've done that do you see the /usr/local/nagios/etc/hosts/YOURHOSTNAME.cfg file removed now?

If not, please manually delete it:

Code: Select all

rm /usr/local/nagios/etc/hosts/YOURHOSTNAME.cfg
Then click the Write Files button, then apply config.

If none of that works me may need to setup a remote session to debug.

Please create a ticket for this and include a link back to this forum thread so we can get a remote session setup:

https://support.nagios.com/tickets/
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: long hostname

Post by ssax »

Here is the bug report that was submitted for this:

https://github.com/NagiosEnterprises/na ... issues/785

It's actually Nagios Core that is doing this on the backend which is why XI is showing it.
Locked