[rrd-users] Re: Area above area and RPN Exp.
Anuj Jain
anujjain at sbcglobal.net
Thu Jun 24 00:05:19 MEST 2004
HI
i am able to solve my problem like this but in the process i lost my original DS name. Can anyone of you help me.
Briefly what i am doing: I am trying to make graph using area. So i have to plot the lasrgest area first the next and the last will be the lowest value.
So i find max first then compare with each value which it matches and then make it zero. and so on.
Since same ds name cannot be used so i have to use diff each time. in the process i lost the original ds name.
rrdtool graph \
test.jpg \
--start -1w \
--height 220 --width 600 \
--vertical-label="(+ Inbound / - Outbound)" \
--alt-autoscale \
--title="Traffic" \
DEF:IN1=test.rrd:p1:MAX \
DEF:IN6=test.rrd:p6:MAX \
DEF:IN17=test.rrd:p17:MAX \
CDEF:P1=IN1,IN6,MAX,17,MAX \
CDEF:IN1=P1,IN1,EQ,0,IN1,IF \
CDEF:IN6=P1,IN6,EQ,0,IN6,IF \
CDEF:IN17=P1,IN17,EQ,0,IN17,IF \
CDEF:P2=IN1,IN6,MAX,IN17,MAX \
CDEF:I1=P2,IN1,EQ,0,IN1,IF \
CDEF:I6=P2,IN6,EQ,0,IN6,IF \
CDEF:I17=P2,IN17,EQ,0,IN17,IF \
CDEF:P3=I1,I6,MAX,I17,MAX \
AREA:P1#FC2B1C:P1 \
AREA:P2#070CF7:P2 \
AREA:P3#03FB03:P3 \
Anuj Jain <anujjain at sbcglobal.net> wrote:
Hi
I am trying to plot the grapg using area, In my
example i have 3 DS but i want to have n DS and shud
be able to plot the graph using area. I want the
highest value of the DS shud be plotted first, then
the next , then next and the last would be the lowest
value. I SEARCHED the archive but couldnt find
anything.
Could any one please please help me out.
Heres an example with 3 DS i was trying but it says
"Attempting to reuse the DS"
rrdtool graph \
test.jpg \
--start -1w \
--height 220 --width 600 \
--vertical-label="(+ Inbound / - Outbound)" \
--alt-autoscale \
--title="Traffic" \
DEF:IN1=test.rrd:p1:MAX \
DEF:IN6=test.rrd:p6:MAX \
DEF:IN17=test.rrd:p17:MAX \
CDEF:MAX1=IN1,IN6,MAX,17,MAX \
CDEF:IN1=MAX1,IN1,EQ,UNKN,IN1,IF \
CDEF:IN6=MAX1,IN6,EQ,UNKN,IN6,IF \
CDEF:IN17=MAX1,IN17,EQ,UNKN,IN17,IF \
CDEF:MAX2=IN1,IN6,MAX,IN17,MAX \
CDEF:IN1=MAX1,IN1,EQ,UNKN,IN1,IF \
CDEF:IN6=MAX1,IN6,EQ,UNKN,IN6,IF \
CDEF:IN17=MAX1,IN17,EQ,UNKN,IN17,IF \
CDEF:MAX3=IN1,IN6,MAX,IN17,MAX \
AREA:MAX1#FC2B1C:MAX1 \
AREA:MAX2#070CF7:MAX2 \
AREA:MAX3#03FB03:MAX3 \
Thanks & Regards
Anuj
--
Unsubscribe mailto:rrd-developers-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:rrd-developers-request at list.ee.ethz.ch?subject=help
Archive http://www.ee.ethz.ch/~slist/rrd-developers
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