Page 1 of 1
long hostname
Posted: Mon Jul 06, 2020 8:52 am
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
Re: long hostname
Posted: Tue Jul 07, 2020 9:09 am
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.
Re: long hostname
Posted: Tue Jul 07, 2020 11:05 am
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
Re: long hostname
Posted: Wed Jul 08, 2020 4:23 pm
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
Re: long hostname
Posted: Thu Jul 09, 2020 10:44 am
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
Re: long hostname
Posted: Fri Jul 10, 2020 1:35 pm
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/
Re: long hostname
Posted: Thu Aug 27, 2020 12:42 pm
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.