diff --git a/source/nut/usr/local/emhttp/plugins/nut/include/nut_config.php b/source/nut/usr/local/emhttp/plugins/nut/include/nut_config.php index f0667896..93aa0291 100644 --- a/source/nut/usr/local/emhttp/plugins/nut/include/nut_config.php +++ b/source/nut/usr/local/emhttp/plugins/nut/include/nut_config.php @@ -47,7 +47,7 @@ 'CAL' => ['severity' => 0, 'msg' => 'UPS is currently performing runtime calibration (on battery)'], 'OFF' => ['severity' => 1, 'msg' => 'UPS is offline and is not supplying power to the load'], 'OVER' => ['severity' => 2, 'msg' => 'UPS is overloaded'], - 'TRIM' => ['severity' => 1, 'msg' => 'UPS is trimming incoming voltage'], + 'TRIM' => ['severity' => 1, 'msg' => 'UPS is trimming incoming voltage (called "buck" in some hardware)'], 'BOOST' => ['severity' => 1, 'msg' => 'UPS is boosting incoming voltage'], 'FSD' => ['severity' => 1, 'msg' => 'Forced Shutdown'], ]; diff --git a/source/nut/usr/local/emhttp/plugins/nut/include/nut_helpers.php b/source/nut/usr/local/emhttp/plugins/nut/include/nut_helpers.php index 7244fda9..523166d0 100644 --- a/source/nut/usr/local/emhttp/plugins/nut/include/nut_helpers.php +++ b/source/nut/usr/local/emhttp/plugins/nut/include/nut_helpers.php @@ -92,6 +92,9 @@ function nut_ups_status($rows, $valueOnly = false) # keep the highest severity message level $severity = max($severity, $nut_states[$var]['severity']); return $nut_states[$var]['msg']; + # if unknown status flag, return it + } else { + return $var; } }, $status_values); });