I'm putting together a vacation home monitoring system for my in-laws based on an uNSLUng 6.8 slug. I have it now up and running producing graphs from the 1-wire sensors via temploggerd/RRDtool and displaying them via a separate instance of thttpd, so I can open just this one port to internet access. It is currently writing data to the USB memory stick for this purpose and I know this is going to wear it out quickly.
What I'd like to do is have it write to internal memory for web display and then periodically back the files up to the USB stick for persistence and also recovery of the data upon reboot.
I've scoured the nslu2-linux.org site but can't seem to find a definitive answer on what amount of internal space is available and what file system path to use to access it for this purpose *on uNSLUng 6.8*. Is this info available?
Any/all tips appreciated. I'm coming up against deadline on this project (they leave shortly for several months, this is intended to cover them during that period).
Believed applicable specifics on my system below. If these listings are both in the same units, I'm concerned there won't be enough space available...
Thanks.
# df -k
Filesystem 1k-blocks Used Available Use% Mounted on
rootfs 285603 179417 103240 63% /
/dev/sda1 6528 6344 184 97% /initrd
/dev/sda1 285603 179417 103240 63% /
/dev/sda1 285603 179417 103240 63% /share/flash/data
/dev/sda2 74843 4157 69913 6% /share/flash/conf
Files and sizes that would need to be stored on internal memory for website display:
# ls -l
-rw-r--r-- 1 website everyone 17327 Jan 4 21:52 280097A7020000tempe.png
-rw-r--r-- 1 website everyone 19061 Jan 5 00:25 2875BAA7020000tempe.png
-rw-r--r-- 1 website everyone 19206 Jan 5 00:25 28848BD5020000tempe.png
-rw-r--r-- 1 website everyone 19712 Jan 5 00:24 all_temperature.png
-rw-rw-rw- 1 root root 366912 Jan 5 00:25 temperature.rrd
Tuesday, January 4, 2011
[nslu2-linux] Moving RRDtool files to internal memory - where?
__._,_.___
.
__,_._,___
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment