Page 1 of 1

Wrong Rename Services - Nagios XI 5.8.3

Posted: Thu Jul 22, 2021 4:35 am
by igae1
Hello,
Sometimes when we rename services, The old name is not removed from the host and the service is added with the new name. How can we solve this problem?
Thank you!!!

Re: Wrong Rename Services - Nagios XI 5.8.3

Posted: Thu Jul 22, 2021 3:39 pm
by pbroste
Hello @igae1

Thanks for reaching out about the issue on renaming.

Sounds like issue is related to ghost services. This is when there are multiple instances of nagios running.

To start with let's clean up the running processes by looking at what is running:

Code: Select all

ps -aux | grep -Ei 'bin/nagios'
Then we would like to go ahead and stop the running processes and restart the nagios service:

Code: Select all

systemctl stop nagios
pkill bin/nagios  or killall -9 nagios
systemctl start nagios
Once you have completed that and verified that the nagios service is running without multiple '/bin/nagios' processes running we can head over to CCM and delete the configs.
  • Go to the Core Config Manager
  • Tools > Config File Management (in older versions of XI it may be under the heading "Write Config FIles")
  • Click on Write Configs and Verify Files to check for config errors
  • If you don't have any errors, click on Delete to remove all host and service configuration files.
  • Next, apply configuration. The configs will be recreated with whatever is in the database.
Here is the support article that we are referencing:

https://support.nagios.com/kb/article.php?id=27

If you see that you still have the old names listed please go ahead and make the necessary changes in your Configuration Manager and then re-apply using the "apply configuration" to write to the database.

Thanks,
Perry

Re: Wrong Rename Services - Nagios XI 5.8.3

Posted: Fri Jul 23, 2021 2:14 am
by igae1
Hi
I'm going to send you an example:

1.-Rename the service Traffic_Usage_Prueba to Traffic_Usage, this service has four hosts assigned (caso_p1.png).
caso_p1.png
2.-I apply compilation and the result is correct (caso_p2.png)
caso_p2.png
Sometimes the old name still appears in some host, in the configuration files the old name does not appear but in the nagioxi database the two names appear, the old and the new have two different identifiers

Thanks

Re: Wrong Rename Services - Nagios XI 5.8.3

Posted: Fri Jul 23, 2021 1:06 pm
by pbroste
Hello @igae1

Thanks for follow up with the screenshot details.

We will want to get the system profile from you so we can take a look at what is going on.

To send us your system profile.
1. Login to the Nagios XI GUI using a web browser.
2. Click the "Admin" > "System Profile" Menu
3. Click the "Download Profile" button
4. Save the profile.zip file and share this in a private message and then reply to this post to bring it up in the queue.

Thanks
Perry

Re: Wrong Rename Services - Nagios XI 5.8.3

Posted: Mon Jul 26, 2021 2:56 am
by igae1
Hello!!!

I attach it

Re: Wrong Rename Services - Nagios XI 5.8.3

Posted: Mon Jul 26, 2021 1:25 pm
by pbroste
Hello @igae1

Thanks for following up on this and providing the System Profile.

Did you use the Bulk Renaming Tool within the web console to update your hosts and services configs and does a good job updating related files associated with perfdata and so on.

Typically we can get things cleaned up by heading over to the CCM (Core Configuration Manager) > Tools > Config File Management > Then delete => write => then apply configuration to update the database. Bounce the nagios service to jump things into place.

Was talking to Sean about this ticket, and we would suggest also upgrading Nagios to the latest version 5.8.5 which will help clean up some NDO3 issues on the backend and should clean things up as well.

https://assets.nagios.com/downloads/nagiosxi/docs/XI-Upgrade-Instructions.pdf

Thanks,
Perry