snmp-ups: map more xppc readings for Phoenixtec UPS cards#3492
Conversation
- add battery.runtime, battery.voltage and input.frequency readings - add output.voltage.nominal and ups.firmware.aux readings - bump XPPC_MIB_VERSION to 0.41 Signed-off-by: Huang Rui <vowstar@gmail.com>
|
A ZIP file with standard source tarball and another tarball with pre-built docs for commit 20c732d is temporarily available: NUT-tarballs-PR-3492.zip. |
|
Full snmpwalk of the enterprise 935 tree from the same card, in case it is useful for the DDL. No system group is included, so there is no host name, location or contact. The community is shown as a placeholder. sysObjectID |
9d1b9a9 to
20c732d
Compare
|
❌ Build nut 2.8.5.4847-master failed (commit 36ab3eb74c by @vowstar) |
|
Thanks! The DDL-ready PR looks good, waiting for CI to not complain about anything :) |
|
✅ Build nut 2.8.5.4848-master completed (commit c6b0c6847f by @vowstar)
|
|
✅ Build nut 2.8.5.4848-master completed (commit c6b0c6847f by @vowstar) |
|
Thanks for the pointer. Posted it as networkupstools/nut-ddl#62, with IP, community, host name and location stripped. Can add the full enterprise-935 snmpwalk there too if it is useful. |
|
Maybe that would make sense. I don't think there's precedent about publishing SNMP walks though, so they probably can go as a structured DDL file comment block for now. |
|
Makes sense. Folded the enterprise-935 walk into the .dev as a DEVICE:COMMENT-BLOCK rather than a separate file, so nut-ddl#62 now carries both the upsc data and the raw OIDs in one place for cross-checking the mappings. |
What this does
The
xppcsubdriver (XPPC-MIB, enterprise 935) currently maps only a handful of data points. This adds five readings that the cards already answer in the same subtree but that NUT was throwing away:battery.runtimefrom.1.3.6.1.4.1.935.1.1.1.2.2.4.0battery.voltagefrom.1.3.6.1.4.1.935.1.1.1.2.2.2.0input.frequencyfrom.1.3.6.1.4.1.935.1.1.1.3.2.4.0output.voltage.nominalfrom.1.3.6.1.4.1.935.1.1.1.5.2.1.0ups.firmware.auxfrom.1.3.6.1.4.1.935.1.1.1.1.2.4.0XPPC_MIB_VERSIONis bumped to 0.41 and aNEWS.adocentry is added.Why
battery.runtimeis the big one. Before this changeupscreported no remaining runtime for these cards even though the value is right there in the MIB. The other four round out battery voltage, line frequency, rated output voltage and the agent firmware string.Device and evidence
The card identifies as device.description "UPS Agent", device.mfr "Tripp Lite / Phoenixtec", sysObjectID
.1.3.6.1.4.1.935.1.1.1. This is the Phoenixtec XPPC-MIB that thexppcsubdriver already targets. The runtime OID maps to the same structural slot (.2.2.4.0) thatcyberpower-mib.creads asbattery.runtimewith scale 1.0 in seconds, which matched the observed value of about 83 minutes at light load.This is the same family of card discussed in issue #2608, where the reporter had to give up because the hardware was no longer available to test against.
Verified on real hardware
The five readings this change adds are
battery.runtime,battery.voltage,input.frequency,output.voltage.nominalandups.firmware.aux. All five show up above on a live card.How to reproduce the dump
I can attach the full walk if you want it for the DDL.
Closes part of #2608.