How to export munin raw data to CSV

csvmuninrrdtool

I'm monitoring my Debian GNU/Linux server with Munin monitoring software. I was wondering whether I could export the raw data used to generate Munin charts?

I want to do some in-depth statistical analysis for example on outgoing traffic. CSV or some similar table format preferred.

I was reading in some forums that the data is stored in some RRDtool database format. It can be exported using rrdump or rrdxport but both are rather used for RRD-internal ex- and import and only dump XML files.

Did anyone try to extract the data to CSV and if so, how?

Best Answer

Did you try googling? I searched "rrd2csv" (thinking that it'd probably be named thusly, if it existed), and found:

https://code.google.com/p/rrd2csv/

Alternatively, there's https://github.com/mscoutermarsh/RRD-to-CSV

and in Python => https://gist.github.com/afternoon/947301

As it's Perl, and Open Source, you can customise it to meet your exact requirements.

Related Topic