Page 1 of 1

Moving service from one host to other host without losing h

Posted: Fri Jan 30, 2015 10:03 am
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

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

Posted: Fri Jan 30, 2015 10:48 am
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?

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

Posted: Wed Feb 25, 2015 3:39 am
by WillemDH
Andy,

Jsut confirmed this is working.

Thanks.

Willem