[rrd-users] Is there a way to filter out bad data in a derive counter?

Marc MERLIN marc_rrd at merlins.org
Mon Oct 19 01:09:57 CEST 2009


I have this RRD where I feed Wh values, and I just found out that the
counter value I get is sometimes erroneous (i.e. huge jump forwards or
backwards).
I could pre-treat the data with a script to somehow find and remove the 
bad data points, but I think RRD already had some kind of built in way
of doing that, although I can't quite put my finger on it right now.

Does someone have a pointer they can share?

Otherwise or in addition, I suppose I can hand edit the bad data in the
RRD, but that can't be simple, especially if it's recorded potentially
in multiple resolution buckets, correct?

/usr/bin/rrdtool create /var/lib/cacti/rra/housepower_21.rrd --step 120  \
DS:HouseNoAC:DERIVE:600:-1000000000:1000000000 \
DS:House:DERIVE:600:-1000000000:1000000000 \
DS:PGE:DERIVE:600:-1000000000:1000000000 \
DS:AC:DERIVE:600:-1000000000:1000000000 \
DS:PV:DERIVE:600:-1000000000:1000000000 \
RRA:AVERAGE:0.5:1:2628000 \
RRA:AVERAGE:0.5:5:3153600 \
RRA:AVERAGE:0.5:30:525600 \
RRA:AVERAGE:0.5:120:131400 \
RRA:AVERAGE:0.5:1440:10950 \
RRA:MAX:0.5:1440:10950 \
RRA:MAX:0.5:30:525600 \
RRA:MAX:0.5:120:131400 \

Thanks,
Marc
-- 
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems & security ....
                                      .... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/



More information about the rrd-users mailing list