From 93b1b2f5bd723138eab36e33e5643ea8b99d396b Mon Sep 17 00:00:00 2001 From: user01010111 Date: Mon, 31 Aug 2026 20:58:54 +1200 Subject: [PATCH] xppc: map inverter standby to OL Line-interactive XPPC devices can report standBy(8) while utility power supplies the load and only the inverter is idle. Mapping that value to OFF makes upsmon treat a healthy UPS as not supplying power. Map standBy(8) to OL, clarify the inverter-versus-UPS distinction, bump the XPPC MIB version to 0.42, and document the correction. Fixes #3512 Signed-off-by: user01010111 --- NEWS.adoc | 3 +++ drivers/xppc-mib.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/NEWS.adoc b/NEWS.adoc index 8da073ce8e..0e55866155 100644 --- a/NEWS.adoc +++ b/NEWS.adoc @@ -281,6 +281,9 @@ https://github.com/networkupstools/nut/milestone/13 `battery.runtime`, `battery.voltage`, `input.frequency`, `output.voltage.nominal` and `ups.firmware.aux` from Phoenixtec based UPS cards that already answer the rest of the subtree. [#2608] + * Mapped `standby(8)` from XPPC output status to `OL` rather than `OFF`, + because line-interactive devices use it for inverter standby while their + UPS output remains online on utility power. [issue #3512] * Introduced `voltronic` subdriver for Voltronic enterprise 43943 UPSes, developed and tested against a PowerShield Centurion RT 1000VA (PSCERT1000) with a PSSNMPV4 card running firmware 1.1.8.C. [issue #3478, diff --git a/drivers/xppc-mib.c b/drivers/xppc-mib.c index f74cbd782f..cc1d774911 100644 --- a/drivers/xppc-mib.c +++ b/drivers/xppc-mib.c @@ -24,7 +24,7 @@ #include "xppc-mib.h" -#define XPPC_MIB_VERSION "0.41" +#define XPPC_MIB_VERSION "0.42" #define XPPC_SYSOID ".1.3.6.1.4.1.935" @@ -66,7 +66,7 @@ static info_lkp_t xpcc_power_info[] = { info_lkp_default(5, "OFF"), /* sleeping */ info_lkp_default(6, "BYPASS"), /* onBypass */ info_lkp_default(7, ""), /* rebooting */ - info_lkp_default(8, "OFF"), /* standBy */ + info_lkp_default(8, "OL"), /* line-interactive inverter standby, not UPS/output standby */ info_lkp_default(9, "OL TRIM"), /* onBuck */ info_lkp_sentinel };