[rrd-users] Get the avg/min/max value from rrd file for other use
matt at iazone.net
Mon Mar 4 07:49:50 MET 2002
Is it possible get the average/min/max value between start time to end time
in rrd file for other use?
The rrdtool graph function can dispaly the average/min/max value about DS.
Is any API can get those value, not just display it in the image?
I was use rrdtool to store every ip adress traffic accounting in my network.
It is fine to use rrdgraph. Then I want to draw TOP Ten pie chart about ip
usage using PHP script with gd. But I can't find any useable method to get
the average/min/max value between start time to end time.
In this maillist, http://www.ee.ethz.ch/~slist/rrd-developers/msg00294.html
There is a addon code name "rrdstats" for rrdtool v1.0.21. It seem to fit my
need, but doesn't work in my test with rrdtool v1.0.33. I alaway get the
message 'ERROR: the RRD does not contain an RRA matching the chosen CF'.
#rrdtool create in_matt.rrd --start 921000000 --step 30 DS:in:COUNTER:30:0:U \
RRA:AVERAGE:0.5:1:5760 RRA:MAX:0.5:1:5760 RRA:MIN:0.5:1:5760 \
RRA:AVERAGE:0.5:10:4032 RRA:AVERAGE:0.5:60:5376 \
RRA:AVERAGE:0.5:120:8064 RRA:MAX:0.5:120:8064 RRA:MIN:0.5:120:8064
#rrdstats stats in_matt.rrd mean:30:AVERAGE
ERROR: the RRD does not contain an RRA matching the chosen CF
Thank for your suggestion.
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:rrd-users-request at list.ee.ethz.ch?subject=help
More information about the rrd-users