[rrd-users] extracting tabular data with rrdgraph

wojtekatbyte wojtek at byte.nl
Mon Apr 11 16:50:31 CEST 2011

That's what I have been looking for!
For the record, in perl:

my @graph = ();
push @graph, (
 "--start" ,"$start",
 "XPORT=cpu_hit:CPU per hit" 

my @out =  RRDs::xport(@graph);
my $out = {
        start => $out[0],
        end => $out[1],
        step => $out[2],
        ngraphs => $out[3],
        legend => $out[4],
        data => $out[5],
print "Content-type: text/plain \n\n";
print to_json( $out,{pretty=>1});

Works !

View this message in context: http://rrd-mailinglists.937164.n2.nabble.com/extracting-tabular-data-with-rrdgraph-tp5796980p6261735.html
Sent from the RRDtool Users Mailinglist mailing list archive at Nabble.com.

More information about the rrd-users mailing list