[rrd-users] Question on rrdtool graph PRINT function

Didier di07s at yahoo.fr
Fri Aug 6 09:55:49 MEST 2004


Hello,

     I'm studing the ability to display a table of global statistics (MIN,
MAX, AVERAGE) of graphs displayed in Cacti (based on RRD) knowing a start
and end.
     Instead of graphing from LINE1, LINE2, LINE3    I'm intended to print
on stdout MIN, MAX, AVERAGE.

     I've found that I can use the  PRINT  function  of   rrdtool GRAPH
as below
     Therefore the work can be done more or less by replacing   GPRINT    by
PRINT

                 rrdtool graph test1_ds1_12.png --start 1091736000 --end
1091740800 DEF:val1=test1_ds1_12.rrd:ds1:AVERAGE PRINT:val1:AVERAGE:%lf
                 0x0
                 6.126250    ======> it is the average

                 rrdtool graph test1_ds1_12.png --start 1091736000 --end
1091740800 DEF:val1=test1_ds1_12.rrd:ds1:AVERAGE PRINT:val1:MAX:%lf
                 0x0
                 9.990000   ======> it is the maximum





      In the example above can anybody tell me what represent  0x  ;   I
always get it.
      How can I avoid it ?  Is there an error in the way I use the function
above ?



Thanks for your answer

Didier

--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list