[rrd-users] Re: Graph with two colors

Stephan Harren sh at abovenet.de
Thu Oct 14 12:31:30 MEST 2004


Two possibilities:

1. Feed your rrds with two different sources, one with the part of the 
value up to 50, the other one with the part higher than 50. Then graph 
first source as AREA green and STACK second source red.
2. CDEF two values,  Value1: If load > 50 then Value1=50, 
Value2=load-50. Then graph Value1 as AREA green and STACK Value2 red.

HTH,

Stephan

Wengrzik, Andreas wrote:

>Hi List!
>
>I have a Graph which is drawn by one value (cpuload)
>I draw an hrule greater than 50
>I select the values greater than 50 and draw them red, now i want
>to draw only the part of the value red which is above the hrule ?!
>Is this possible?
>
>Here´s my actually definition:
>
>DEF:as400cpu=$f:as400cpu:AVERAGE CDEF:cpu1=as400cpu,50,GT,UNKN,as400cpu,IF CDEF:cpu2=as400cpu,50,LE,UNKN,as400cpu,IF AREA:cpu1#82BB6C:\"Prozessorauslastung OK\"  AREA:cpu2#E24545:\"Prozessorauslastung Kritisch\" HRULE:50#D0D000:\"Warning level\" HRULE:100#E00000:\"Kritisches Level\" LINE1:cpu1#000000 LINE1:cpu2#000000 GPRINT:as400cpu:MAX:\"Maximale Auslastung\\: %.4lg Prozent\" GPRINT:as400cpu:MIN:\"Minimale Auslastung\\: %.4lg Prozent\" GPRINT:as400cpu:AVERAGE:\"Durchschnittliche Auslastung\\: %.4lg Prozent\"
>  
>
-- 

Stephan Harren
Head of Engineering
AboveNet Deutschland GmbH
-------------------------
Phone +49 69 90554 153
Fax +49 69 90554 111
Cell +49 173 7011126


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