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
-
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_roCheers.
-
Awesome, thanks for the information!
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register LoginPrivacy Policy · Cookie Policy