[rrd-users] Re: Problems with Print and gprint

Alex van den Bogaerdt alex at ergens.op.het.net
Thu Oct 24 16:03:29 MEST 2002


On Thu, Oct 24, 2002 at 09:29:39AM -0400, Carter, Steve wrote:

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


Notice the percent *and* a double quote are removed.  It looks as
if the part after 'vertical-label' (starting from 'speed in ')
through 'LINE1:percentage#000000:' is seen as if it is a single
quoted string with some newlines included.  The word 'Speed' is 
appended to that (no whitespace) and RRDtool is presented 'in'
as the next command.

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

Another parsing error.

> Can someone point me in the right direction please?

You either suffer from a cut'n'paste problem or your OS
does something strange.

Start by simplifying the examples.  You don't need something
as "complicated"  as "speed in %", just 'speed' (without the
quotes) will do for now.

In general:  start with the most basic form and keep extending
until you're done.

Also: try another interpreter.  You're running windows but unless
I'm mistaking there's a difference between command.com and cmd.exe

HTH
Alex

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