Upgrade existing graphs to new cacti server

If you figure out how to do something interesting/cool in Cacti and want to share it with the community, please post your experience here.

Moderators: Moderators, Developers

Post Reply
Author
Message
Nadee1
Posts: 29
Joined: Thu Oct 04, 2018 11:43 pm

Upgrade existing graphs to new cacti server

#1 Post by Nadee1 » Tue Jun 11, 2019 4:15 am

I have cacti Version 0.8.8h with graphs

I want to transfer existing graphs to another server which has Version 1.1.28

Which files do I want to transfer?

Already I transferred rra file in /var/www/html/cact/ and cacti folder in /var/lib/mysql . Do I need to transfer another file ?

Nadee1
Posts: 29
Joined: Thu Oct 04, 2018 11:43 pm

Re: Upgrade existing graphs to new cacti server

#2 Post by Nadee1 » Tue Jun 11, 2019 6:44 am


User avatar
Osiris
Cacti Pro User
Posts: 863
Joined: Mon Jan 05, 2015 10:10 am

Re: Upgrade existing graphs to new cacti server

#3 Post by Osiris » Mon Jul 22, 2019 8:16 pm

In Cacti 1.2.5, there is an updated rrd_splice.php script in the cli directory that will allow you to change from 5 minute smpling to 1 minute sampling. There is not a lot of help on how to use it, but if you think about it for a bit, you will begin to understand how it might work. The trick is:

1) Dump your database,
2) Move to another system and upgrade it (scripts, resources, spine, ...)
3) Change your default data source profile to 1 minute
4) For all your data sources, change the data source profile to 1 minute
5) Enable cron to create all the new rrdfiles and start graphing
6) Resolve any issues so that data collection is stable
7) After things are stable, and the old system is still up and in production, copy over the old rrdfiles one at a time from the old system to the new and run the rrd_splice.php on them. It goes something like this:
php -q rrd_splice.php --oldrrd=/old/file.rrd --newrrd=/new/file.rrd --finrrd=/new/file.rrd
8) Once you have copied and spliced all your files, you will have preserved your old data and moved to one minute collection.

Pretty cool.
Before history, there was a paradise, now dust.

Post Reply