diff options
| author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-03-30 22:36:38 +0200 |
|---|---|---|
| committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-03-30 22:36:38 +0200 |
| commit | 0205694ce977af97a71c58e0ae3c431299ceb7bb (patch) | |
| tree | 2dabea5b743d0f96a7ebde585b58c12c6ce1c091 | |
| parent | 6e108cc25e75ec74013838620b26dabdd480718a (diff) | |
| download | monitoring-plugins-0205694ce977af97a71c58e0ae3c431299ceb7bb.tar.gz | |
Fix wrong return state in threshold function
| -rw-r--r-- | lib/thresholds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/thresholds.c b/lib/thresholds.c index ddefae37..171f5093 100644 --- a/lib/thresholds.c +++ b/lib/thresholds.c | |||
| @@ -51,7 +51,7 @@ mp_state_enum mp_get_pd_status(mp_perfdata perfdata) { | |||
| 51 | } | 51 | } |
| 52 | if (perfdata.warn_present) { | 52 | if (perfdata.warn_present) { |
| 53 | if (mp_check_range(perfdata.value, perfdata.warn)) { | 53 | if (mp_check_range(perfdata.value, perfdata.warn)) { |
| 54 | return STATE_CRITICAL; | 54 | return STATE_WARNING; |
| 55 | } | 55 | } |
| 56 | } | 56 | } |
| 57 | 57 | ||
