[rrd-users] Using RPN variables in the RRD graph title label: simple yes or no answer

Steve Shipway s.shipway at auckland.ac.nz
Tue May 14 10:50:11 CEST 2013


>($result,$xsize,$ysize) = RRDs::graph ...
>
>but it is unclear for me, how to extract the information from $result? Can
>you explain it to me?

This should make it clearer:

($result,$xsize,$ysize) = RRDs::graph ( $file, @args );
print "The generated graph image in $file is $xsize pixels by $ysize pixels.\n";
foreach my $line ( @$result ) {
  print "print output> $line\n";
}

The first returned value is a pointer to an array of strings, containing the PRINT outputs from the RRDs::graph call.

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