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
sudo wget
cd /usr/local/mrtg-2
sudo wget
sudo chmod +x temperature
sudo wget

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.
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License