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!!!
Wrong Rename Services - Nagios xi 5.8.3
-
- Posts: 1288
- Joined: Tue Jun 01, 2021 1:27 pm
Re: Wrong Rename Services - Nagios xi 5.8.3
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:
Then we would like to go ahead and stop the running processes and restart the nagios service:
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.
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
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'
Code: Select all
systemctl stop nagios
pkill bin/nagios or killall -9 nagios
systemctl start nagios
- 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.
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
-
- Posts: 48
- Joined: Thu May 25, 2017 6:35 am
Re: Wrong Rename Services - Nagios xi 5.8.3
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). 2.-I apply compilation and the result is correct (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
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). 2.-I apply compilation and the result is correct (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
You do not have the required permissions to view the files attached to this post.
-
- Posts: 1288
- Joined: Tue Jun 01, 2021 1:27 pm
Re: Wrong Rename Services - Nagios xi 5.8.3
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
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
-
- Posts: 48
- Joined: Thu May 25, 2017 6:35 am
Re: Wrong Rename Services - Nagios xi 5.8.3
Hello!!!
I attach it
I attach it
You do not have the required permissions to view the files attached to this post.
-
- Posts: 1288
- Joined: Tue Jun 01, 2021 1:27 pm
Re: Wrong Rename Services - Nagios xi 5.8.3
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
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