networkupstools / nut

The Network UPS Tools repository. UPS management protocol Informational RFC 9271 published by IETF at https://www.rfc-editor.org/info/rfc9271 Please star NUT on GitHub, this helps with sponsorships!
https://networkupstools.org/
Other
1.92k stars 345 forks source link

SNMPv3 fails with more than one snmp-ups driver on a machine #508

Open clepple opened 6 years ago

clepple commented 6 years ago

From http://lists.alioth.debian.org/pipermail/nut-upsuser/2017-November/010985.html :

The SNMPv3 configurations on all three are exactly the same. This is confirmed by snmpget calls that work just fine: snmpget -Cf -v3 -u [...] -l authPriv -A '[...]' -X '[...]' -a MD5 -x DES [upsname] .1.3.6.1.4.1.318.1.1.1.1.1.1.0

snmp-ups can query all three UPSs with SNMPv1 with no problems. However, querying with SNMPv3 doesn't work if I try to query more than one of them.

SNMPv3 works fine when I have any one of the three configured in ups.conf while the other two are configured with SNMPv1. It doesn't matter which one UPS is configured for SNMPv3 in ups.conf, they all work individually (see below example).

However, if I configure any two or all three of them to use SNMPv3 then on startup upsdrvctl complains about "unhandled ASN 0x81 received from .1.3.6.1.4.1.318.1.1.1.9.3.3.1.7.1.1.3" and fails to start.

clepple commented 6 years ago

NUT 2.7.2 on CentOS 7

thread continues here: http://lists.alioth.debian.org/pipermail/nut-upsuser/2017-December/010988.html

clepple commented 6 years ago

The drivers all start eventually, but the necessary timeouts seem large to me. Anyone with SNMPv3 experience know if there are known issues trying to authenticate to multiple UPSes at once?