Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Saving RRD graph data using nanoBSD

    Scheduled Pinned Locked Moved General pfSense Questions
    3 Posts 2 Posters 1.7k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      maddhat
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • E
        EddieA
        last edited by

        @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.

        1 Reply Last reply Reply Quote 0
        • M
          maddhat
          last edited by

          Awesome, thanks for the information!

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.