Gather Information with MRTG
Note: This is for one disk edition of MyBook. I don't have two disk edition, so I don't know how disk statistics will work there.
To get statistics from MyBook in your browser, you have to:
1. Install Optware
2. Install SNMP:
sudo ipkg install net-snmp
3. Install MRTG
At this time, you should have working MRTG with just traffic analysis. Let's add more information to gather.
4. Edit SNMP config /opt/etc/snmpd.conf (as root). Find
disk / 5%
disk /share/hdd/data 5%
disk /share/hdd/conf 5%
and replace it with
disk /
disk /var
disk /shares/internal
5. Restart SNMP:
sudo /opt/etc/init.d/S70net-snmp
6. Get temperature monitor script, full config and some files to look pretty:
cd /usr/www/lib/mrtg
sudo wget http://trouchelle.com/wdmbwe/wdfMyBook_World_1N.jpg
sudo wget http://trouchelle.com/wdmbwe/wdmbwe.css
cd /usr/local/mrtg-2
sudo wget http://trouchelle.com/wdmbwe/temperature
sudo chmod +x temperature
sudo wget http://trouchelle.com/wdmbwe/mrtg.conf
7. Generate new index file:
sudo /usr/local/mrtg-2/bin/indexmaker /usr/local/mrtg-2/mrtg.conf \
--columns=1 --output=/usr/www/lib/mrtg/index.html \
--addhead='<link rel="stylesheet" type="text/css" href="/mrtg/wdmbwe.css" />' \
--title='MyBook MRTG Statistics'
8. Have fun!
Once you have it working during more then a few weeks, you can edit config and remove 'm' from
Suppress[_]: ym
to add monthly stats.