Module: monitoring-plugins
    Branch: master
    Commit: 26f7173923c0b4cb6c7e13c3adcf4dcc18c01d3b
    Author: Lorenz Kästle <[email protected]>
 Committer: GitHub <[email protected]>
      Date: Wed Jul  1 15:24:20 2026 +0200
       URL: 
https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=26f71739

check_ups: fix some unintented fallthroughs (#2294)

---

 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: {

Reply via email to