[rrd-users] Re: RRD Tool multi-color layered graphic.

Hugo van der Kooij hvdkooij at vanderkooij.org
Sat Apr 24 10:59:26 MEST 2004


On Sat, 24 Apr 2004, Laurent LEVIER wrote:

> Imagine I have a collection of data (whatever).
> I would like to display the graph with multiple colors, from red to green
> for example.
>
> For example:
>  From value 1 to 10, graph will be displayed in red
>  From 11 to 50, in orange
> above 51 in green.

Something like:

BUSY=204800
        CDEF:normal=octets,$BUSY,GT,0,octets,IF                         \
        CDEF:border=octets,$BUSY,GT,$BUSY,0,IF                          \
        CDEF:busy=octets,$BUSY,GT,octets,$BUSY,-,0,IF                   \
        AREA:normal#7EE600:"Normal"                                     \
        AREA:border#7EE600:""                                           \
        STACK:busy#EA8F00:"Busy"                                        \

Which show light green on normal usage but starts to top it of with orange
when the line usage is over 80%

In conventional terms:

IF (octects > $BUSY)
THEN busy = octets - $BUSY
ELSE busy = 0

If anyone knowns a tool to convert from a more tradional format to this
notation I would be greatfull as I always have trouble getting this RPN
stuff right untill my Nth try (where: 10 < N < kazillion).

More samples: http://hvdkooij.xs4all.nl/stats/

Hugo.

PS: Most of these samples have been created with assistance from this
list.

-- 
 All email sent to me is bound to the rules described on my homepage.
    hvdkooij at vanderkooij.org		http://hvdkooij.xs4all.nl/
	    Don't meddle in the affairs of sysadmins,
	    for they are subtle and quick to anger.

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