[rrd-users] Re: How to graph in different colors?

Alex van den Bogaerdt alex at slot.hollandcasino.nl
Thu Aug 9 15:40:21 MEST 2001


2nd try. This should be better:

Pawel Dworniak wrote:

> I am trying to draw a picture of switch ports in three levels:
> 
> from 0 to 50kbps in one color,

So: if over 50kbps, limit this color to 50kbps

> from 50kbps to 250kbps in second color

If 50 or above, use this color.  If above 250, limit to 250

> and over 250kbps in third color

if 250 or more, use this color.

DEF:bytes=my.rrd:ds0:AVERAGE
CDEF:rate=bytes,8,*
CDEF:color1=rate,50000,GT,50000,rate,IF
CDEF:color2=rate,50000,LT,UNKN,rate,250000,GT,250000,rate,IF,IF
CDEF:color3=rate,250000,GE,rate,UNKN,IF
AREA:color1#00CC00
STACK:color2#FFFF00
STACK:color3#FF0000
LINE1:rate#000000:"Traffic"
GPRINT:rate:MAX:"%6.2lf %sbps"
GPRINT:rate:AVERAGE:"%6.2lf %Sbps"
GPRINT:rate:MIN:"%6.2lf %Sbps"

-- 
   __________________________________________________________________
 / alex at slot.hollandcasino.nl                  alex at ergens.op.het.net \
| work                                                         private |
| My employer is capable of speaking therefore I speak only for myself |
+----------------------------------------------------------------------+
| Technical questions sent directly to me will be nuked. Use the list. | 
+----------------------------------------------------------------------+
| http://faq.mrtg.org/                                                 |
| http://rrdtool.eu.org  --> tutorial                                  |
+----------------------------------------------------------------------+

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