[rrd-users] Label spaces and pipe mode

Alex van den Bogaerdt alex at ergens.op.het.net
Mon Dec 17 22:14:02 CET 2007


On Mon, Dec 17, 2007 at 09:57:30PM +0200, Petteri Matilainen wrote:

> I'm pretty sure it's because you can't have space in Area 1 etc. without 
> quotes. So you should write AREA:GRAPH7:"Area 1":STACK etc. And no 
> spaces between "Area x" and :STACK.

There's no problem with spaces before :STACK, provided of course that
RRDtool sees these spaces instead of the OS.

rrdtool create x.rrd DS:x:GAUGE:120:U:U RRA:AVERAGE:0:1:1
rrdtool graph /dev/null \
        DEF:x1=x.rrd:x:AVERAGE \
        CDEF:x2=x1 \
        CDEF:x3=x1 \
        CDEF:x4=x1 \
        CDEF:x5=x1 \
        "AREA:x1#FF0000:Abc     " \
        "AREA:x2#00FF00:Defg    ":STACK \
        "AREA:x3#0000FF:Hijklm  :STACK" \
        AREA:x4#0000FF:"Nop     ":STACK \
        AREA:x5#0F0F0F:Qrstuv\ \ :STACK


This doesn't produce anything useful, its sole purpose is to show
no syntax error occurs.


-- 
Alex van den Bogaerdt
http://www.vandenbogaerdt.nl/rrdtool/



More information about the rrd-users mailing list