Page 1 of 1
Change service name retain performance data
Posted: Wed Jan 24, 2018 4:53 am
by rdebok
Dear all,
I'm structuring our XI server.
I want to change names of services, but want to retain the performance data.
Is it possible to achieve this, and if so, how to do it.
With kind regards,
Ralph
Re: Change service name retain performance data
Posted: Wed Jan 24, 2018 11:50 am
by npolovenko
Hello,
@rdebok. Yes, it's possible but you'd need to use a Bulk Renaming Tool in Core Configurations Manager. That's the only way to rename hosts and services if you want to keep the performance data.
Before you start, it would probably be a good idea to make a backup of your XI, just in case.
Re: Change service name retain performance data
Posted: Fri Jan 26, 2018 10:07 am
by rdebok
Dear npolovenko,
Thank you for your answer.
I found this option, but it is only available in the enterprise edition.
There is no option to rename only 1 service.
Is there a way to accomplish this manually without the enterprise edition.
I don't mind if this cost me a few hours to achieve since it will be a one time action.
with kind regards,
Ralph
Re: Change service name retain performance data
Posted: Fri Jan 26, 2018 10:23 am
by mcapra
@box293's Performance Data Tool component allows you to merge "old" performance data into "new" performance data:
https://exchange.nagios.org/directory/A ... ol/details
**If you rename a host/service the performance data can be merged into the new RRD files
So essentially, you'd rename the service, allow the "new" RRD to be produced, then merge the old RRD in.
Re: Change service name retain performance data
Posted: Fri Jan 26, 2018 12:27 pm
by npolovenko
@rdebok, I think sometimes when you update the XI you get 60 days trial of Enterprise Features, but don't catch me on that.
Also, sometimes, and not for all services, simply renaming the RRD and XML files in /usr/local/nagios/share/perfdata/ folder works. So say you had a service called service1, and you renamed it to be service2. Immediately after you'd go to /usr/local/nagios/share/perfdata/ open the host folder, find the service1.xml and service1.rrd and rename it to service2.xml and service2.rrd. But before you experiment with this please backup the XI, or atleast the /usr/local/nagios/share/perfdata/ folder. Otherwise, what
@mcapra recommended would be the "recommended" way of doing this, probably not the easiest though.
Re: Change service name retain performance data
Posted: Tue Jan 30, 2018 3:00 am
by rdebok
Thank you all for the suggestions.
Unfortunately I "used" my trail period. (Probably activated it during initial setup)
I'll give the Performance Data Tool a shot.
With kind regards,
Ralph
Re: Change service name retain performance data
Posted: Tue Jan 30, 2018 10:48 am
by npolovenko
@rdebok, Sounds good. I'll leave this thread open for a while in case you have any questions during the process.