in reply to SNMP

here's a link http://www.switch.ch/misc/leinen/snmp/perl/ and here's another http://www.onlamp.com/pub/a/bsd/2000/08/10/Big_Scary_Daemons.html
...finally, MRTG source code should provide heaps of info.