[rrd-users] Re: colors on % ?
Jonathan Davis
davis at snickers.org
Sun Jan 26 00:42:58 MET 2003
I think you may be able to do the following, which I learn via the
Tutorial at:
http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/tutorial/
CDEF:ds33=ds1,33,GT,UNKN,ds1,if \
CDEF:ds66=ds1,66,GT,UNKN,ds1,if \
( I may have the order of UNKN and ds1 reversed )
Then I would just do the following, as I'm not entirely sure what stack
does =)
AREA:ds1#1000ff:"System " \
AREA:ds33#FD8900 \
AREA:ds66#CE0000 \
cheers,
jonathan jesse-john davis
On Sat, 25 Jan 2003, Ronny Roethof wrote:
||
||Hi folks,
||
||I have RRD running and I must say that I do like it very much.
||Though I have 1 small thing I would like to add to my current stats of my
||CPU's.
||Can anyone tell me if and how it is possible to use the following config to
||display my CPU graph in orange when above 33% and red when above 66% ?
||My current output is available at http://stats.roethof.net or
||http://213.196.13.197
||
||With regards,
||
||Ronny Roethof
||ronny at roethof.net
||
||
|| <included RRD config>
||
|| <RRD::GRAPH /usr/local/www/stats.roethof.net/img/cpu.png
|| -l 0
|| -u 100
|| --start -2d
|| --end now
|| --imginfo '<IMG SRC=/img/%s WIDTH=%lu HEIGHT%lu >'
|| -v "% CPU usage"
|| -t "CPU Usage"
|| -a PNG
|| DEF:ds0=/usr/local/www/stats.roethof.net/cpusum.rrd:ds0:AVERAGE
|| DEF:ds1=/usr/local/www/stats.roethof.net/cpusum.rrd:ds1:AVERAGE
|| CDEF:total=ds0,ds1,+
|| COMMENT:" Minimum Maximum Average Current\n"
|| AREA:ds1#1000ff:"System "
|| GPRINT:ds1:MIN:"%6.2lf%%"
|| GPRINT:ds1:MAX:"%6.2lf%%"
|| GPRINT:ds1:AVERAGE:"%6.2lf%%"
|| GPRINT:ds1:LAST:"%6.2lf%%\n"
|| STACK:ds0#7aafff:"User "
|| GPRINT:ds0:MIN:"%6.2lf%%"
|| GPRINT:ds0:MAX:"%6.2lf%%"
|| GPRINT:ds0:AVERAGE:"%6.2lf%%"
|| GPRINT:ds0:LAST:"%6.2lf%%\n"
|| COMMENT:" ---------------------------------- +\n"
|| LINE1:total#7aafff:"Total "
|| GPRINT:total:MIN:"%6.2lf%%"
|| GPRINT:total:MAX:"%6.2lf%%"
|| GPRINT:total:AVERAGE:"%6.2lf%%"
|| GPRINT:total:LAST:"%6.2lf%%\n"
|| >
||
||</included RRD config>
||>
||
||--
||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://www.ee.ethz.ch/~slist/rrd-users
||WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
||
--
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://www.ee.ethz.ch/~slist/rrd-users
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the rrd-users
mailing list