Here we go !
So you want to monitor your BOok's CPU, load, and disk space with a professional solution ?
As a root user,
Get the latest net-snmp source from
extract it somewhere, eg in /root
you now have a compiled SNMPD.
BEWARE :it took FOREVER to compile "net snmp" on my Book, at least two hours (it would have been faster to compile on my mobile phone !!!) but it works. You'll have to be patient. This also makes the CPU skyrocket at 100% for hours. Not the right time to start a backup.
Now create an snmpd.conf file to your likings
( the config file should be in /usr/local/share/snmp/snmpd.conf )
I'm sorry but creating a nice snmpd.conf is a tough job. If you use SNMPD daily you probably have configs of your own (your other servers, etc) so I will not enter into too much details here.
- You should allow READ access to your MyBook box from your monitoring station's IP.
- You should have a community name ( or leave it to public but securing it with IP filter )
- You should had "disk" lines in the config fil to ease autodetection of your drives
Here is a working example, a very minimal snmpd.conf file.
This uses the "public" community name, only allowed from a specific IP and from localhost.
This config could be improved by adding disk IOs, temperature monitoring, etc…
com2sec local localhost public
com2sec localnet your-monitoring-ip public
group MyROSystem v1 local
group MyROSystem v2c local
group MyROSystem usm local
group MyROGroup v1 localnet
group MyROGroup v2c localnet
group MyROGroup usm localnet
group MyRWGroup v1 local
group MyRWGroup v2c local
group MyRWGroup usm local
view all included .1 80
view system included .iso.org.dod.internet.mgmt.mib-2.system
access MyROSystem "" any noauth exact system none none
access MyROGroup "" any noauth exact all none none
access MyRWGroup "" any noauth exact all all none
disk /var 10000
disk /shares/internal 10000
disk / 10000
The MyBook does not look into /usr/local/lib for libraries, so SNMPD does not start if you do not edit the default library paths.
Launch it manually.
check that port 161 UDP is listening by doing
you should see
udp 0 0 0.0.0.0:161 0.0.0.0:*
You'll have to create a start/stop script to launch it at boot time once you're happy with your config.
WHAT YOU WILL GET
Add the MyBook's IP in your favorite network monitoring software, using the correct SNMP community name (from snmpd.conf )
Interestingly, this also confirms that
- CPU usage is "thru the roof" when doing transfers
- 35-36Mbps is the maximum upload rate this box can handle. (this is no news but it is now documented :) )