Have you tried moving your Munin rrd files to a new machine and ended up with this error
I have a solution and like other I have seen works recursively.
There are 2 stages to this. Exporting your old rrd files to xml and then converting the xml back into the new rrd format.
Stage 1 - Export the old rrd files into xml
/var/lib/munin and create a file called
rrdexport.sh and copy this into it
It’s a little rough and ready but it does the job. Lets explain what it does.
First it finds all the directories from where you run it, I am assuming it will be run from ‘var/lib/munin’,
then it creates a matching layout in
Secondly it finds all the directories and passes them into the function
foo. It uses
xargs -P 2 to use to threads
at once in an attempt to speed it up a little.
foo accepts a directory name as input. We then find all
.rrd files in the directory and
rrdtool export it as xml into
Stage 2 - Convert the exported xml into the new rrd format
I have skipped a stage here, the one where you copy the
/tmp/rrd_dump directory onto your new machine. I am sure you can do this without my help.
Now we will do the same as before but in reverse. In your
rrd_dump directory create a files named
You might have to tweak the file permissions once you have finished but all you historical data should now have been transferred onto your new system.