[Nut-upsuser] APC AP9617 SNMP returns strange errors
clepple at gmail.com
Wed May 15 13:14:35 UTC 2013
On May 15, 2013, at 8:50 AM, lutz.niederer at gmx.net wrote:
> I tried to set "Minimum battery level for restart after power off (percent)" to 90. And this gave "90" as mentioned below. I saw in apc-mib.c that the type for this is declared as ST_FLAG_STRING. This is abolutely no string (so no 's' but 'i' would be correct).
I agree with that assessment, but what about the error for the following call?
0.055771 entering nut_snmp_set (.22.214.171.124.4.1.3126.96.36.199.188.8.131.52, i, 2)
0.098838 [apc10001] nut_snmp_set: can't set .184.108.40.206.4.1.3220.127.116.11.18.104.22.168: Error in packet: (genError) A general failure occured
That seems to be specifying an integer, which agrees with this:
Does this call to nut_snmp_set() not result in a proper packet as seen in tcpdump?
Since you're using Debian, and this bug would be present in the latest package version as well, I would recommend filing a bug there (and post a link to the bug here). That will make sure it doesn't fall through the cracks. We can continue to debug here as well.
It is also possible to compile NUT from source with the same options that Debian uses, and just swap in the snmp-ups driver for testing.
clepple at gmail
More information about the Nut-upsuser