Dear Expert
When we do Service Rename via Bulk Renaming Tool, its very okay as long as there is no change in Host, however many time we shift our customer links from one Router to another, in this case we not only want to change the Service Name but along with Service we want to change (rename) Host Name too.
So when we renaming services, there should be ManageHost + ConfigName should be given to edit, so our old utilization graph will intact with new readings, SNMP IfIndex , RRD file name, we changing accordingly new Router manually
Regards
Service Rename when Host also get change
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Service Rename when Host also get change
@zaji_nms, Have you tried using a Bulk Renaming Tool? You can change names of hosts and services, and that wouldn't cause loss of a previous graph.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Service Rename when Host also get change
Dear npolovenko
Sure, we tried the same in the past and sure experience same issue and stopped to rename Host Config Name, however when you asked to try, we did and its not working in proper way.
renamed the OLDHOSTCONFIG to NEWHOSTCONFIGNAME
Please check yourself to rename Services with Host too and sure you will face the same issue.
When we did, its showing done, but when we did Apply Config, there is error. Please check when the Services in some of ServiceGroup. Via web I checked and not showing any Services in that group but still error, finally I removed the ServiceGroup. Apply config is okay but there is orphan services under OLDHOST. Checking via web, there is no such Services but in Service Detail still showing, now how to delete orphan services?
Regards
Sure, we tried the same in the past and sure experience same issue and stopped to rename Host Config Name, however when you asked to try, we did and its not working in proper way.
renamed the OLDHOSTCONFIG to NEWHOSTCONFIGNAME
Please check yourself to rename Services with Host too and sure you will face the same issue.
When we did, its showing done, but when we did Apply Config, there is error. Please check when the Services in some of ServiceGroup. Via web I checked and not showing any Services in that group but still error, finally I removed the ServiceGroup. Apply config is okay but there is orphan services under OLDHOST. Checking via web, there is no such Services but in Service Detail still showing, now how to delete orphan services?
Regards
- tacolover101
- Posts: 432
- Joined: Mon Apr 10, 2017 11:55 am
Re: Service Rename when Host also get change
i would try using the CCM config management page, and do a delete, re-write, and apply.
this will wipe your DB with configs, re-write to the DB, and apply config.
from a scaling perspective, this sounds like a mess, and not very sane. rather than renaming these objects in Nagios, why not use custom variables which can help with items like this? you could even update them with a REST call.
https://support.nagios.com/kb/article.php?id=509
this will wipe your DB with configs, re-write to the DB, and apply config.
just my two cents.Router to another, in this case we not only want to change the Service Name but along with Service we want to change (rename) Host Name too.
from a scaling perspective, this sounds like a mess, and not very sane. rather than renaming these objects in Nagios, why not use custom variables which can help with items like this? you could even update them with a REST call.
https://support.nagios.com/kb/article.php?id=509
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Service Rename when Host also get change
I agree with @tacolover101 on manually rewriting configs in Core Configurations Manager. For the reference, here's an article on how to do that:
https://support.nagios.com/kb/article.p ... ategory=44
Scroll down to the part where it says "Resolving the problem".
Next, try these commands:
Here's the reference: https://support.nagios.com/kb/article.php?id=27
I just tried renaming the service and then the host with a Renaming Tool and I didn't get any configuration errors, the graph is still working as it should. Are you using the latest version of XI?
Please click on "apply configuration" in CCM to generate an error one more time, and then send us your system profile.
To send us your system profile. Login to the Nagios XI GUI using a web browser.
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button
Save the profile.zip file and attach it to your next post. Or you could upload the profile to a cloud storage of your choice and share a link with me via personal message. After you send it please post something in this thread to bring it back up in the support queue.
https://support.nagios.com/kb/article.p ... ategory=44
Scroll down to the part where it says "Resolving the problem".
Next, try these commands:
Code: Select all
service nagios stop
killall nagios
service nagios start
I just tried renaming the service and then the host with a Renaming Tool and I didn't get any configuration errors, the graph is still working as it should. Are you using the latest version of XI?
Please click on "apply configuration" in CCM to generate an error one more time, and then send us your system profile.
To send us your system profile. Login to the Nagios XI GUI using a web browser.
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button
Save the profile.zip file and attach it to your next post. Or you could upload the profile to a cloud storage of your choice and share a link with me via personal message. After you send it please post something in this thread to bring it back up in the support queue.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.