1

I have to move my Munin instance on new server. I've installed from package (Debian) Munin 2.x. All was fine, but ... I copied /var/lib/munin to new server. But after updating munin overwrite old data and i have empty graph :( Could you tell me why? And how i can save old data?

I tried rrdtool dump/restore too. It was the same :(

Thank you for answer and help.

Br,

Rafał Kamiński
  • 187
  • 2
  • 5
  • 15

1 Answers1

0

What is the version of rrd databases ? The last munin want 0003 and you may need to convert them. Check with a file the version.

You may check your logs : you will maybe see something about the owner or something else.

To convert :

#!/bin/bash
SOURCE="/var/lib/munin/DOMAIN/"
cd $SOURCE
for FILE in *rrd
do 
  echo $FILE
  rrdtool dump $FILE > /tmp/$FILE.xml
  NEW=`basename $FILE .xml`
  rm $SOURCE/$NEW
  rrdtool restore /tmp/$FILE.xml $SOURCE/$NEW
  chown munin:munin $SOURCE/$NEW
done
rm /tmp/*.xml
Dom
  • 6,743
  • 1
  • 20
  • 24