net-snmp inoctet network interface counters on Debian Sparc64 stop counting at ~4 gig (unsigned 32 bit max). I had found a patch on the net that changed the variables and scanf format strings from "unsigned long" to "unsigned long long" to accept the 64 bit interface counters from the kernel (cat /proc/net/dev). Problem is, on a 64 bit machine an "unsigned long" is 64 bit and an "unsigned int" is 32. The snmp variables are supposed to be "counter32" so I cast the output to "unsigned int" so the vars wrap back to 0 properly after reaching 0xFFFFFFFF. I was monitoring (graphing in Cacti) the interfaces on an UltraSparc running Debian Linux with an interface that receives a steady 40Mbps. The counter maxes out in like 10-15 minutes at that rate and my graphs weren't working, now they do. This patch is for net-snmp v5.1.1-2 which is the current release for Debian SID for Sparc. It should work for other versions around that version:
http://voidmain.is-a-geek.net/files/pat ... t-vm.patch

