Change service name retain performance data

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
rdebok
Posts: 3
Joined: Wed Jan 11, 2017 7:51 am

Change service name retain performance data

Post 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
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Change service name retain performance data

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
rdebok
Posts: 3
Joined: Wed Jan 11, 2017 7:51 am

Re: Change service name retain performance data

Post 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
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Change service name retain performance data

Post 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.
Former Nagios employee
https://www.mcapra.com/
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Change service name retain performance data

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
rdebok
Posts: 3
Joined: Wed Jan 11, 2017 7:51 am

Re: Change service name retain performance data

Post 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
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Change service name retain performance data

Post by npolovenko »

@rdebok, Sounds good. I'll leave this thread open for a while in case you have any questions during the process.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked