[rrd-users] How to change graph colour as Temperature increases
Matt.Garrett at shell.com
Matt.Garrett at shell.com
Thu Aug 12 15:06:24 CEST 2010
Kelly
Cool (Pun intend) that looks like what I was after
Thanks
Matt
From: K.D. Lucas [mailto:kdlucas at gmail.com]
Sent: 11 August 2010 19:19
To: Garrett, Matt SITI-ITV/TS
Cc: rrd-users at lists.oetiker.ch
Subject: Re: [rrd-users] How to change graph colour as Temperature
increases
I use three color stacks for my temperature readings, and also have a
background (bg) color for the graph. The main thing is to define the
color as unknown if it doesn't fall in the range you want to use for it.
============================
'CDEF:bg=cpu,UN,0,cpu,IF,0,GT,UNKN,INF,IF',
'AREA:bg#DDDDDD:',
'CDEF:cool=cpu,40,LE,cpu,UNKN,IF',
'CDEF:warm=cpu,40,60,LIMIT',
'CDEF:hot=cpu,60,GE,cpu,UNKN,IF',
'AREA:cool#B0F5EC:"Cool "',
'AREA:warm#FFCC00:"Warm "',
'AREA:hot#CC3300:"Hot \\n"',
'VDEF:maxC=cpu,MAXIMUM',
'VDEF:minC=cpu,MINIMUM',
'VDEF:avgC=cpu,AVERAGE',
'GPRINT:minC:"Min %2.1lf"',
'GPRINT:maxC:"Max %2.1lf"',
'GPRINT:avgC:"Avg %2.1lf Celsius \\n"',
'LINE1:cpu#660000:',
'HRULE:60#FF0000',
==============================
Kelly
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/rrd-users/attachments/20100812/3475eb73/attachment-0001.htm
More information about the rrd-users
mailing list