[HOWTO] Migrating between architectures and directories

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: Developers, Moderators

hinze57
Posts: 6
Joined: Wed Sep 12, 2007 3:31 pm
Location: Colorado

Post by hinze57 »

Excellent notes on moving from 32 to 64 bit. I had to do the rrdtool dump/restore for the rrd's on NMIS and was looking at the steps needed for Cacti (mostly db backup/restore) when I found your post.

Very helpful, thank you for posting.
Single GNU Theory
Posts: 3
Joined: Thu Oct 18, 2007 1:34 pm
Location: Chapin, SC USA

Thank you!

Post by Single GNU Theory »

I spent a few minutes to tailor your script for my environment, and your script saved me hours!
computer_guru
Cacti User
Posts: 141
Joined: Thu Apr 10, 2008 6:52 pm

Re: [HOWTO] Migrating between architectures and directories

Post by computer_guru »

Awesome script! Thank you.


I found this to work best for me:

disable poller in cacti settings

find /xml/path/here -name \*.xml | while read i; do A=`echo $i|sed 's/\.xml//'`; echo rrdtool restore -f $i $A; done > restore_rrd.sh

chmod +x restore_rrd.sh

./restore_rrd.sh
(wait for last command to finish, it will take a while)

mv /xml/path/here/*.rrd /var/www/html/rra/

enable poller in cacti settings
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest