[rrd-users] Advice sought on graphing varying number of interfaces.

Allen Wooden allen.wooden at harboreast.net
Thu Sep 15 20:49:23 MEST 2005


I'm using RRDTool 1.2.11

I have several groups of interfaces that I'm polling and need a way to
present the largest 95th percentile value from all interfaces passed by the program. 
The problem is that I won't know until execution time how many interfaces I'm dealing with and
whether I'm just graphing inbound, outbound or both directions. 


At this point I can create a VDEF statement that gets the 95th from each interface's in/out, but I'm stuck
on how to get craft an ?DEF statement that will return the MAX of all 95th percentiles seen.

DEF:ds0avg=test.rrd:ds0:AVERAGE
DEF:ds1avg=test.rrd:ds1:AVERAGE
DEF:ds2avg=test1.rrd:ds0:AVERAGE
DEF:ds3avg=test1.rrd:ds1:AVERAGE
CDEF:ds0avgbits=ds0avg,8,*
CDEF:ds1avgbits=ds1avg,8,*
CDEF:ds2avgbits=ds2avg,8,*
CDEF:ds3avgbits=ds3avg,8,*
VDEF:ds0perc=ds0avgbits,95,PERCENT
VDEF:ds1perc=ds1avgbits,95,PERCENT
VDEF:ds2perc=ds2avgbits,95,PERCENT
VDEF:ds3perc=ds3avgbits,95,PERCENT
So at this point I'd have 95th percentiles from each interface's in/out. So now I'd need to get the Highest
percentile seen from all of them.

VDEF:perc=ds0perc,ds1perc,perc,ds2perc,perc,ds3perc,MAX,MAX,MAX  ## I'm sure this is wrong but just an idea anyway.
PRINT:perc:6.2lf %s



EDIT #1: tried something like this on commandline and it errors out. Can't use a VDEF vname in another VDEF statement.
A co-worker suggest using something like a bubble sort but I don't know if that can be done with RPN or whether it
can be done using the VDEF names.




-- 
Allen Wooden
Harboreast Hosting Solutions
http://www.harboreast.net
allen.wooden at harboreast.net

--
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://lists.ee.ethz.ch/rrd-users
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi



More information about the rrd-users mailing list