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 sth with data array
print CSV "$line[0],$line[1]\n";
}
close CSV;
------------------
use it as a sample code and configure your params for RRDs::fetch
hope that helps.
Kind regards,
Michael
Mohandas K wrote the following on 15.06.2009 10:12:
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
Mailto: mohanda...@tcs.com
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you
------------------------------------------------------------------------
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
------------------------------------------------------------------------
_______________________________________________
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
--
DI (FH) Michael Friedrich
michael.friedr...@univie.ac.at
Tel: +43 1 4277 14359
Vienna University Computer Center
Universitaetsstrasse 7
A-1010 Vienna, Austria
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting
any issue.
::: Messages without supporting info will risk being sent to /dev/null