Moving Munin (Actually RRD) Graphs
Saturday, March 14th, 2009I use Munin to do some server monitoring. Munin uses a central server that polls nodes, it collects system data and graphs it for you. I have moved a Munin server before: just create the appropriate configuration so that the server polls the same nodes, and copy the RRD files over from the database directory on the old server.
I ran into a problem doing this recently, and my logs were telling me:
Mar 13 21:10:43 - Unable to graph /usr/local/var/munin/y.com.au/x.y.com.au-open_inodes-max-g.rrd: This RRD was created on another architecture
The problem is that the RRD graphs that Munin stores its data files in are endian specific. That means you can shift between the same endian’ness but not to a different system. More specific to my problem, you can shift between 32 bit same endian’ness, but not between 32 bit and 64 bit! Obviously the shift was because I upgraded a server, wanted to retain the data, and found that because the new server was 64 bit, I can’t.
Now, that’s not quite true. You CAN retain the database data, but you have to dump it out of the RRD file manually and re-import it manually. I didn’t bother, but it would have been nice knowing this in advance anyway.