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
2.09k stars 351 forks source link

No matching MIB found for sysOID '.1.3.6.1.4.1.318.1.3.27' #2655

Open rsiverd opened 1 month ago

rsiverd commented 1 month ago

Sorry if this is a duplicate. I didn't not see this particular case among the open issues although similar ones exist.

I have a ups.conf configuration with 5 APC UPSes checked via snmp-ups. Four of those UPSes are SMT-1000c and the fifth is SMT-2200c. All of them have NMC cards installed with fairly modern firmware. I can provide more details if needed.

The system runs Ubuntu 22.04.2 LTS with package versions as follows:

$ dpkg -l | grep nut | grep UPS
ii  libnutscan1:amd64                     2.7.4-14ubuntu2                            amd64        network UPS tools - scanner library
ii  nut                                   2.7.4-14ubuntu2                            all          network UPS tools - metapackage
ii  nut-client                            2.7.4-14ubuntu2                            amd64        network UPS tools - clients
ii  nut-server                            2.7.4-14ubuntu2                            amd64        network UPS tools - core system
ii  nut-snmp                              2.7.4-14ubuntu2                            amd64        network UPS tools - SNMP driver

The output of systemctl status suggested an issue that should be reported to NUT developers:

$ systemctl status nut-driver.service
● nut-driver.service - Network UPS Tools - power device driver controller
     Loaded: loaded (/lib/systemd/system/nut-driver.service; static)
     Active: active (running) since Thu 2024-10-10 13:19:36 HST; 17s ago
    Process: 27216 ExecStart=/sbin/upsdrvctl start (code=exited, status=0/SUCCESS)
      Tasks: 5 (limit: 154514)
     Memory: 7.6M
        CPU: 87ms
     CGroup: /system.slice/nut-driver.service
             ├─27218 /lib/nut/snmp-ups -a adminups-snmp
             ├─27220 /lib/nut/snmp-ups -a ashups-snmp
             ├─27222 /lib/nut/snmp-ups -a chillups-snmp
             ├─27224 /lib/nut/snmp-ups -a domeups-snmp
             └─27226 /lib/nut/snmp-ups -a telups-snmp

Oct 10 13:19:34 proc4 snmp-ups[27224]: Startup successful
Oct 10 13:19:34 proc4 upsdrvctl[27225]: No matching MIB found for sysOID '.1.3.6.1.4.1.318.1.3.27'!
Oct 10 13:19:34 proc4 upsdrvctl[27225]: Please report it to NUT developers, with an 'upsc' output for your device.
Oct 10 13:19:34 proc4 upsdrvctl[27225]: Going back to the classic MIB detection method.
Oct 10 13:19:34 proc4 upsdrvctl[27225]: Detected Smart-UPS 1000 on host 10.10.10.37 (mib: apcc 1.2)
Oct 10 13:19:35 proc4 upsdrvctl[27225]: [telups-snmp] Warning: excessive poll failures, limiting error reporting (OID = .1.3.6.1.4.1.318.1.1.1.9.2.3.1.5.1.1.3)
Oct 10 13:19:35 proc4 upsdrvctl[27225]: [telups-snmp] Warning: excessive poll failures, limiting error reporting (OID = .1.3.6.1.4.1.318.1.1.1.9.3.3.1.6.1.1.1)
Oct 10 13:19:36 proc4 snmp-ups[27226]: Startup successful
Oct 10 13:19:36 proc4 upsdrvctl[27216]: Network UPS Tools - UPS driver controller 2.7.4
Oct 10 13:19:36 proc4 systemd[1]: Started Network UPS Tools - power device driver controller.

I checked individually and see this error during startup for both models of UPS. The nut-snmp driver seems to have no trouble sorting out content though.

$ upsc telups-snmp
Init SSL without certificate database
battery.charge: 100.00
battery.date: 2023-02-22
battery.runtime: 1616.00
battery.runtime.low: 120
battery.voltage: 26.20
device.mfr: APC
device.model: Smart-UPS 1000
device.serial: 3S2211X28903
device.type: ups
driver.name: snmp-ups
driver.parameter.pollinterval: 15
driver.parameter.port: 10.10.10.37
driver.parameter.synchronous: no
driver.version: 2.7.4
driver.version.data: apcc MIB 1.2
driver.version.internal: 0.97
input.frequency: 59.80
input.sensitivity: low
input.transfer.high: 136
input.transfer.low: 97
input.transfer.reason: selfTest
input.voltage: 119.80
input.voltage.maximum: 120.20
input.voltage.minimum: 118.50
output.current: 2.30
output.frequency: 59.80
output.voltage: 119.80
output.voltage.nominal: 120
ups.firmware: UPS 06.0 (ID1027) 
ups.id: telups
ups.load: 38.20
ups.mfr: APC
ups.mfr.date: 2022-11-03
ups.model: Smart-UPS 1000
ups.serial: 3S2211X28903
ups.status: OL
ups.temperature: 26.20
ups.test.date: 09/28/2024
ups.test.result: Ok
desertwitch commented 1 month ago

NUT 2.7.4. is 8 years old at this point, please check if you can't get a newer version installed on your OS. e.g. https://launchpad.net/ubuntu/+source/nut or manually compiling it, there's tons of useful changes in later versions.