Changes in Kernel 2.6 break net-snmp

Ran across some nasty breakage today whereby the version of net-snmp in Woody, (4.2.3), would segfault when walking a certain table. As it turns out, changes in the kernel were to blame, page in/out, and swap in/out having been moved from /proc/stat to /proc/vmstat in recent kernel versions.

I came up with a quick fix, (fixes net-snmp for kernel 2.6, but breaks it on kernel 2.4 :), which should be enough to hold me over until my production machines are upgraded to Sarge and net-snmp 5.


comments powered by Disqus