RRDs are architecture dependent

When migrating our old monitoring server (x86), running munin and smokeping, to our new virtualized platform (x86_64), I ran into a problem. After copying the RRD-files to the new system I did not get nice graphs, but instead the error message „This RRD was created on another architecture“ in the logs. After searching around in the ’net I found the solution in a forum post which worked for me:
clipped from rrd-mailinglists.937164.n2.nabble.com

How do I move my rrds to my new MRTG system.

I dont know if rrdtool has a option for doing it recursivly,

but something like this should do it if the filenames stay the same:
for i in *.rrd; do rrdtool dump $i > `basename $i .rrd`.xml; done
for i in *.xml; do rrdtool restore $i `basename $i .xml`.rrd; done
HTH
Matthias.Merk

Discussion Area - Leave a Comment