Module: monitoring-plugins
Branch: master
Commit: ddb11dcaee20f0ca02076269ce790c80bf9f17ac
Author: Lorenz Kästle <[email protected]>
Committer: GitHub <[email protected]>
Date: Wed Jul 1 01:46:30 2026 +0200
URL:
https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=ddb11dca
check_ups: fix some unintented fallthroughs (#2290)
---
plugins/check_ups.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/plugins/check_ups.c b/plugins/check_ups.c
index 7bced308..525ecf24 100644
--- a/plugins/check_ups.c
+++ b/plugins/check_ups.c
@@ -630,14 +630,19 @@ check_ups_config_wrapper process_arguments(int argc, char
**argv) {
switch (test_selection) {
case UPS_UTILITY:
result.config.utility_thresholds = tmp_thr;
+ break;
case UPS_BATTPCT:
result.config.battery_thresholds = tmp_thr;
+ break;
case UPS_LOADPCT:
result.config.load_thresholds = tmp_thr;
+ break;
case UPS_REALPOWER:
result.config.real_power_thresholds = tmp_thr;
+ break;
case UPS_TEMP:
result.config.temperature_thresholds = tmp_thr;
+ break;
case UPS_NONE:
case UPS_STATUS:
default: {