Saving RRD graph data using nanoBSD



  • Hi all,

    Just ordered a 2GB CF card and an IDE to CF adapter and am going to tryout nanoBSD embedded of 1.2.3.. but I had one question:

    I really love having my RRD graphs for historical traffic usage, but I'm guessing they will be cleared if machine reboots.  I was thinking of setting up a cron job for the RRD graph files to be copied to a local fileserver (perhaps once an hour) so when I restart the machine I can restore them.  Would this be possible/plausible?  Is there a better solution out there for accomplishing this?

    Card ordered: SanDisk SDCFH-002G-A11 2GB/15MB Ultra II CF Card



  • @maddhat:

    I really love having my RRD graphs for historical traffic usage, but I'm guessing they will be cleared if machine reboots.  I was thinking of setting up a cron job for the RRD graph files to be copied to a local fileserver (perhaps once an hour) so when I restart the machine I can restore them.  Would this be possible/plausible?  Is there a better solution out there for accomplishing this?

    The information is saved back to the disk, on a shutdown or reboot, so the only time the data is lost, is when the machine just "powers down".

    You could set up a cron job, to do the save on a regular basis:

    /etc/rc.conf_mount_rw && cd / && /usr/bin/tar -czf /cf/conf/rrd.tgz -C / var/db/rrd/*.rrd && /etc/rc.conf_mount_ro
    

    Cheers.



  • Awesome, thanks for the information!


Log in to reply