Moving service from one host to other host without losing h

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Moving service from one host to other host without losing h

Post by WillemDH »

Hello,

How can I move a service with a 1,5 year long perfdata history we don't want to loose to another host without loosing the history?

Grtz

Willem
Nagios XI 5.8.1
https://outsideit.net
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Moving service from one host to other host without losin

Post by abrist »

First copy the old rrd to the new host:

Code: Select all

cp /usr/local/nagios/share/perfdata/<old host>/<service>.rrd /usr/local/nagios/share/perfdata/<new host>
Change the host for the service and apply config. It all goes well, it should use the rrd copy for the new host, appending data as you would expect.

Does this make sense?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Moving service from one host to other host without losin

Post by WillemDH »

Andy,

Jsut confirmed this is working.

Thanks.

Willem
Nagios XI 5.8.1
https://outsideit.net
Locked