[rrd-users] PRINT to stdout - I give up
Steve Shipway
s.shipway at auckland.ac.nz
Mon Feb 6 08:49:26 CET 2012
Looking at your script, you are not retrieving the return value of RRDs::graph(), which is where the PRINT output goes. It does not go to stdout.
You should do:
@rv = RRDs::graph(@rrd);
Then, @rv = ( @output, $xsize, $ysize ) for a graph image $xsize by $ysize, and @output is the array of all the PRINT output.
See the manual for details: http://oss.oetiker.ch/rrdtool/prog/RRDs.en.html
It might be more efficient though to use RRDs::fetch to collect averages for the various DSs and then do the multiplication and summation in your perl code, rather than go through all the graphing only to throw the image away...
Steve
Steve Shipway
University of Auckland ITS
UNIX Systems Design Lead
s.shipway at auckland.ac.nz
Ph: +64 9 373 7599 ext 86487
More information about the rrd-users
mailing list