[rrd-users] Round Robin Archive Question

secrookie at gmail.com secrookie at gmail.com
Mon Apr 7 06:33:36 CEST 2008


Anyone can help?

On 04/04/2008, secrookie at gmail.com <secrookie at gmail.com> wrote:
> I am planning to create a database to hold data from 2 interfaces on
>  PIX.  Sampling will be 300 secs with 4 data sources.
>
>  Does the calculation look correct for the number of days I would like to keep?
>
>  #rrdtool create /var/lib/rrd/pix.rrd -s 300     \
>                         DS:ifIn1:DERIVE:600:0:12500000  \
>                         DS:ifOut1:DERIVE:600:0:12500000 \
>                         DS:ifIn2:DERIVE:600:0:12500000  \
>                         DS:ifOut2:DERIVE:600:0:12500000 \
>                 #       (300secs*576rows)=172800sec 172800/3600=48 hours
>                         RRA:AVERAGE:0.5:1:576                   \
>                 #       (300secs*672rows)*6=1209600sec 1209600/3600=336hours (14 days)
>                         RRA:AVERAGE:0.5:6:672                   \
>                 #       (300secs*732rows)*24=5270400sec 5270400/3600=1464hours (61 days)
>                         RRA:AVERAGE:0.5:24:732                  \
>                 #       (300secs*1460rows)*144=63072000sec 63072000/3600=17520hours (730
>  days)
>                         RRA:AVERAGE:0.5:144:1460
>
>  I would also like to keep some MAX, MIN, LAST (same as current?)
>  values.  I presume I could just add extra lines for the duration I
>  want to keep the data?
>
>  RRA:MIN:0.5:1:576    # 48 hours
>  RRA:MAX:0.5:1:576   # 48 hours
>  RRA:LAST:0.5:1:576   # 48 hours
>
>  Regards
>



More information about the rrd-users mailing list