[rrd-users] Problems with Print and gprint

Carter, Steve Steve.Carter at cwbar.cwplc.com
Thu Oct 24 15:29:39 MEST 2002


Hi,
 
Previously I had asked for some assistance on the format of the print and
gprint commands and had gotten some.  I have since been doing a tutorial
(http://faq.mrtg.org/example/karting.html
<http://faq.mrtg.org/example/karting.html> ) and am getting errors which I
need help understanding.
 
If I run this command
 
rrdtool graph karting2.png --start 986947200 --end start+720000 \
                --width 360 \
                --imgformat PNG \
                --vertical-label "speed in %"  \
                DEF:speed=karting.rrd:speed:AVERAGE \
                CDEF:percentage=speed,382300,*  \
                LINE1:percentage#000000:"Speed in percent of max speed"
 
instead of "speed in %" on the vertical I get 
 
C:\rrd>rrdtool graph karting2.png --start 986947200 --end start+720000
--width 360 --imgformat PNG --vertical-label "speed in
speed=karting.rrd:speed:AVERAGE CDEF:percentage=speed,382300,*
LINE1:percentage#000000:"Speed in percent of max speed"
ERROR: can't parse 'in'
 
(and I am running it as one string with the \'s removed)
 
If I take out the % sign it runs ok, so the % is not being read correctly.
 
 
One of the other commands includes
 
.... GPRINT:race1a:MAX:%8.2lf GPRINT:race1a:AVERAGE:%6.2lf
GPRINT:race1a:MIN:%6.2lf
 
With this I get an error -
 
ERROR: bad format for [G]PRINT in '.2lf'
 
 
Can someone point me in the right direction please?
 
As you can tell I am running on a Windows platform.
 
Thanks much.
 
 
 
Steve Carter
 


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