[rrd-users] How to change graph colour as Temperature increases

Matt.Garrett at shell.com Matt.Garrett at shell.com
Wed Aug 11 17:43:58 CEST 2010


Folks

 

I am monitoring some Temperature props.

At the moment graph looks nice with multi AREA stack but what I would
really like is to see the graphs change color

e.g. Temperature range is 0 - 100

Green stack of 0 - 30

Orange stack  30 - 50

Dark Orange 50 -70

Dark Red 70 - 100

 

Current graphs statement looks like

 

$def[1] =  "DEF:var1=$rrdfile:$DS[1]:AVERAGE " ;

$def[1] .= "CDEF:sp1=var1,100,/,12,* " ;

$def[1] .= "CDEF:sp2=var1,100,/,30,* " ;

$def[1] .= "CDEF:sp3=var1,100,/,50,* " ;

$def[1] .= "CDEF:sp4=var1,100,/,70,* " ;

$def[1] .= "AREA:var1#FF5C00:\"Ambient Zone\" " ;

$def[1] .= "AREA:sp4#FF7C00: " ;

$def[1] .= "AREA:sp3#FF9C00: " ;

$def[1] .= "AREA:sp2#FFBC00: " ;

$def[1] .= "AREA:sp1#FFDC00: " ;

$def[1] .= "LINE1:var1#000000:\"\" " ;

$def[1] .= "GPRINT:var1:LAST:\"%3.4lg %s$UNIT[1] LAST \" ";

$def[1] .= "GPRINT:var1:MAX:\"%3.4lg %s$UNIT[1] MAX \" ";

$def[1] .= "GPRINT:var1:AVERAGE:\"%3.4lg %s$UNIT[1] AVERAGE \" ";

 

What I think I need are some form of IF statements to change the color
over a certain value.

Does anybody have any examples they could share.

 

Thanks

 

Matt

 

 

 

Matthew Garrett 
Subsurface Remote Site Support Engineer 
Shell Information Technology International B.V. 
PO Box 60, 2280 AB Rijswijk-ZH, The Netherlands 

Tel: +31(0)70 447 4369 
Email: Matt.Garrett at shell.com 
Internet: http://www.shell.com <http://www.shell.com>  

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/rrd-users/attachments/20100811/6d13afdb/attachment-0001.htm 


More information about the rrd-users mailing list