[rrd-users] colors on % ?
Ronny Roethof
ronny at roethof.net
Sat Jan 25 20:25:39 MET 2003
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
More information about the rrd-users
mailing list