Hi,
I am using RRDTOOL 1.2 to create graphs for memory utilization, CPU
utilization etc. Now using this RRD data I need to create CSV file. So can
anyone tell me how can I export these RRD data to CSV file. Any kind of
help would be really appreciable.
Thanks Regards,
Mohandas Kudva K
apt-get install librrds-perl
vim exportrrd2csv.pl
#!/usr/bin/perl
use RRDs;
user warnings;
use strict;
my $fstart = time - 3600;
my ($start,$step,$names,$rrddata) = RRDs::fetch($file,
--start=$fstart, AVERAGE);
my $ERR=RRDs::error;
open CSV, rrd.csv;
foreach my $line(@rrdata) {
//do