[rrd-users] Re: area color

Alex van den Bogaerdt alex at ergens.op.het.net
Tue Jan 31 16:09:52 MET 2006


On Tue, Jan 31, 2006 at 02:55:46PM +0100, Andras Horvai wrote:

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

Paint two areas.  One area is red, the other is blue.
With a CDEF, you make sure the red area displays numbers above zero, or
set the value to unknown.
Similar, you set the blue area to numbers below zero, or unknown.

DEF:a=temp.rrd:AVERAGE
CDEF:b=a,0,GE,UN,a,IF
CDEF:c=a,0,LE,UN,a,IF
AREA:b#FF0000
AREA:c#0000FF:temperature

Add the print statements you already had (printing "a", not b or c).

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

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