since you have net-snmp you should just use their module. that way, if the command line tools work then the module will work (since it uses the same library).
i've used the net-snmp (ucd-snmp) module for many years now to query thousands of devices and have never run into such funkyness as you're seeing.