[rrd-users] update RRD files seldom if ever
Alain Spineux
aspineux at gmail.com
Wed Mar 19 13:04:28 CET 2008
Hi
I'm monitoring email traffics, and store statistics in one RRD file
per email address.
Lot of addresses are alias that are rarely or never used.
Every minutes I read the log and update addresses accordingly, only
some RRD files
are updated, this is cheaper than updating ALL RRD files every time!
The problem for the rarely used addresses is that rare updates are lost
in an ocean of NaN and are lost at first consolidation.
If only one update is done per year, I can see it during the first hours,
bud it disappear in the daily graph and the TOTAL for the year is
always a NaN instead of 1
Any hint is welcome.
Here is how I create my RRD file
--step=60
DS:in:ABSOLUTE:300:U:U
# 10h:1m 6j6h:15m 100j:4h 600j:1j
RRA:AVERAGE:0.5:1:600
RRA:AVERAGE:0.5:15:600
RRA:AVERAGE:0.5:240:600
RRA:AVERAGE:0.5:1440:600
And how I calculate the TOTAL for one periode (hour, day, week, ...)
--start=-$PERIODE
--end=now
DEF:i=$ADDRESS_RRD:in:AVERAGE
CDEF:I=i
VDEF:I_TOTAL=I,TOTAL
PRINT:I_TOTAL:%%lf
Regards.
--
Alain Spineux
aspineux gmail com
May the sources be with you
More information about the rrd-users
mailing list