[rrd-users] GPRINT Problem

Michael Munn Michael.Munn at northgate-is.com
Tue Aug 7 19:18:48 MEST 2001


Hi,

Fairly new to MRTG & recently converted over to RRDTool & am using the
databases generated from there. The files converted fine & have managed to
get the graphs redrawn, however, without the figures/numbers at the bottom
of the graph. I have tried using the GPRINT function for this, however I
don't seem to be getting anywhere. I've read the manuals, the syntax on the
c printf function & the previous items in this list pertaining to this. From
what I can see the basic syntax is:

GPRINT:vname:CF:format where vname is the value created with a CDEF & is
pointed to by vname, CF is MAX, MIN etc & format is formatting the output of
the numbers. I have put something together along the lines of:

rrdtool graph rtr_ser0.gif --start 993967200 --end 996645600
--vertical-label Kb/s --title "Network Stats for RTR - Serial0"
DEF:inavg=rtr_ser0.rrd:ds0:AVERAGE \ DEF:outavg=rtr_ser0.rrd:ds1:AVERAGE
CDEF:inavgb=inavg,8,* CDEF:outavgb=outavg,8,* CDEF:inav=inavgb,64000,/
CDEF:outav=outavgb,64000,/ LINE1:inavgb# 009900:"Incoming Traffic"
LINE1:outavgb#0000FF:"Outgoing Traffic\l" GPRINT:inav:AVERAGE:"%6.2lf"
GPRINT:outav:AVERAGE:"%6.2lf" 

Can anyone see if there's anything wrong with the formatting that would
perhaps cause it not to print onto the graph, or anything else for that
matter?

Regards

Mike

--
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