diff options
| author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-11-25 13:48:01 +0100 |
|---|---|---|
| committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-11-25 13:48:01 +0100 |
| commit | dccc974e45b2ee533f83b3485caf5130f5736196 (patch) | |
| tree | 1f682d6e9ad9d50dab1103e7ae1c75508ed8cf6d | |
| parent | 94642b3171d3dd0045004fdce834d54989e67523 (diff) | |
| download | monitoring-plugins-dccc974e45b2ee533f83b3485caf5130f5736196.tar.gz | |
check_ldap: fix thresholds for number of entries
| -rw-r--r-- | plugins/check_ldap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/check_ldap.c b/plugins/check_ldap.c index 1070650e..1b2e2826 100644 --- a/plugins/check_ldap.c +++ b/plugins/check_ldap.c | |||
| @@ -419,7 +419,7 @@ check_ldap_config_wrapper process_arguments(int argc, char **argv) { | |||
| 419 | if (tmp.error != MP_PARSING_SUCCES) { | 419 | if (tmp.error != MP_PARSING_SUCCES) { |
| 420 | die(STATE_UNKNOWN, "failed to parse number of entries warning threshold"); | 420 | die(STATE_UNKNOWN, "failed to parse number of entries warning threshold"); |
| 421 | } | 421 | } |
| 422 | result.config.connection_time_threshold = | 422 | result.config.entries_thresholds = |
| 423 | mp_thresholds_set_warn(result.config.entries_thresholds, tmp.range); | 423 | mp_thresholds_set_warn(result.config.entries_thresholds, tmp.range); |
| 424 | } break; | 424 | } break; |
| 425 | case 'C': { | 425 | case 'C': { |
| @@ -427,8 +427,8 @@ check_ldap_config_wrapper process_arguments(int argc, char **argv) { | |||
| 427 | if (tmp.error != MP_PARSING_SUCCES) { | 427 | if (tmp.error != MP_PARSING_SUCCES) { |
| 428 | die(STATE_UNKNOWN, "failed to parse number of entries critical threshold"); | 428 | die(STATE_UNKNOWN, "failed to parse number of entries critical threshold"); |
| 429 | } | 429 | } |
| 430 | result.config.connection_time_threshold = | 430 | result.config.entries_thresholds = |
| 431 | mp_thresholds_set_crit(result.config.entries_thresholds, tmp.range); | 431 | mp_thresholds_set_crit(result.config.entries_thresholds, tmp.range); |
| 432 | } break; | 432 | } break; |
| 433 | #ifdef HAVE_LDAP_SET_OPTION | 433 | #ifdef HAVE_LDAP_SET_OPTION |
| 434 | case '2': | 434 | case '2': |
