Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions NEWS.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,8 @@ https://github.com/networkupstools/nut/milestone/13
`ups.realpower`. [issue #3580, PR #3581]

- `snmp-ups` driver updates:
* `apc` subdriver: exposed `ambient.temperature` from universal I/O
sensors used with APC Network Management Card 3. [issue #3250]
* Extended the XPPC-MIB subdriver (enterprise 935) to expose
`battery.runtime`, `battery.voltage`, `input.frequency`,
`output.voltage.nominal` and `ups.firmware.aux` from Phoenixtec
Expand Down
5 changes: 4 additions & 1 deletion drivers/apc-mib.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

#include "apc-mib.h"

#define APCC_MIB_VERSION "1.61"
#define APCC_MIB_VERSION "1.62"

#define APC_UPS_DEVICE_MODEL ".1.3.6.1.4.1.318.1.1.1.1.1.1.0"
/* FIXME: Find a better oid_auto_check vs. sysOID for this one? */
Expand Down Expand Up @@ -290,6 +290,9 @@ static snmp_info_t apcc_mib[] = {
snmp_info_default("output.L3.power.minimum.percent", 0, 1, ".1.3.6.1.4.1.318.1.1.1.9.3.3.1.12.1.1.3", "", SU_FLAG_OK|SU_FLAG_NEGINVALID, NULL),
snmp_info_default("output.voltage.nominal", ST_FLAG_STRING | ST_FLAG_RW, 3, ".1.3.6.1.4.1.318.1.1.1.5.2.1.0", "", SU_TYPE_INT | SU_FLAG_OK, NULL),

/* Universal I/O ambient sensor */
snmp_info_default("ambient.temperature", 0, 1, ".1.3.6.1.4.1.318.1.1.25.1.2.1.6.1.1", "", SU_FLAG_OK|SU_FLAG_NEGINVALID, NULL),

/* Measure-UPS ambient variables */
/* Environmental sensors (AP9612TH and others) */
snmp_info_default("ambient.temperature", 0, 1, ".1.3.6.1.4.1.318.1.1.2.1.1.0", "", SU_FLAG_OK, NULL),
Expand Down
Loading