[rrd-users] area color

Andras Horvai andras.horvai at keystone.hu
Tue Jan 31 14:55:46 MET 2006


Hi,

I'm monitoring the temperature of few cities. I'm using AREA to display the temperature
on the grap and the color is red. How could I solve that when the temperature goes below
zero the color of the area changes to blue too? 

Here is the templates: 

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Tokol - city temperature" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=-100 \
--vertical-label="celsius" \
DEF:a="/rra/temp_1001.rrd":temp:AVERAGE \
AREA:a#FF0000:"Temp\:"  \
GPRINT:a:AVERAGE:"Avg\:%8.2lf %s"  \
GPRINT:a:MIN:"Min\:%8.2lf %s"  \
GPRINT:a:MAX:"Max\:%8.2lf %s"  \
GPRINT:a:LAST:"Current\:%8.2lf %s\n" 

Thanks in advance,

Andras

--
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://lists.ee.ethz.ch/rrd-users
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi



More information about the rrd-users mailing list