[rrd-users] Using CDEF To Create an average percentage

Glenn MacGregor gtm at highstreetnetworks.com
Tue Jan 21 23:42:20 MET 2003


Hi All,

Using SNMP I poll a device which gives me a value (1 or 0).  I put this value in a rrd file.  Is there a way to create an average percentage of that value?  Here is an example that may clear this up some.

RRD File contains the following data:
1
1
1
1
0
0
1
0
1
0

So now don't want to graph that I want to graph each corresponding point using an average function so the corresponding values would be:
100
100
100
100
80
66.7
71.4
62.5
66.7
60

I get these values by regular average (calc 5th value: (1 + 1 + 1 + 1 + 0) / 5)  Is there a way to do this by using one DS saving the 1's and 0's and a CDEF to get the percentage.

Thanks

    Glenn MacGregor

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