[rrd-users] Re: How to draw color graphs
Romain Bourgue
romain.bourgue at SecurityKeepers.com
Wed Jun 13 12:04:02 MEST 2001
Hi,
You have to limit your Incoming CDEF to 6000. You can do this setting the
CDEF this way :
CDEF:OK=Incoming,6000,GT,Incoming,0,IF
# "OK" will represent the transfer over 6000 and if
CDEF:Incoming=Incoming1,-8,*,6000,GT,6000,Incoming1,-8,*,IF
#if Incoming1,-8,* > 6000 then Incoming=6000
CDEF:Outgoing=Outgoing1,8,*
Don't forget to draw "OK" before Incoming
Romain Bourgue
Pawel Dworniak wrote:
> I want to draw my graphs in different colors depending on transfer rate
>
> <RRD::GRAPH exampleg.png
> --start -<RRD::CV hour>h
> --end now
> --width 900
> --height 250
> --base=1000
> --imginfo '<IMG SRC="../obrazki/exampleg.png">'
> --imgformat="PNG"
> --lower-limit=0
> DEF:Incoming1=/Inetpub/wwwroot/mrtg/example.rrd:ds0:MAX
> DEF:Outgoing1=/Inetpub/wwwroot/mrtg/example.rrd:ds1:MAX
> CDEF:Incoming=Incoming1,-8,*
> CDEF:Outgoing=Outgoing1,8,*
> CDEF:OK=Incoming,6000,GT,0,Incoming,IF
> AREA:OK#000000:"OK"
> AREA:Incoming#00ff00
> AREA:Outgoing#0000ff>
>
> On this example rrd file I want to draw in different color transfer over
> 6Kb (ie 6000)
> but it is not working
>
> Thanks for help
>
> Paul Dworniak
> Poland
>
> ===============================================
> Czy Gulczas z Big Brother ma seksualnego garba?
> http://relacje.interia.pl/id/relacja?cid=9277
>
> --
> 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