diff options
Diffstat (limited to 'plugins/check_ldap.c')
| -rw-r--r-- | plugins/check_ldap.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/plugins/check_ldap.c b/plugins/check_ldap.c index 1b2e2826..7f8282b4 100644 --- a/plugins/check_ldap.c +++ b/plugins/check_ldap.c | |||
| @@ -400,7 +400,7 @@ check_ldap_config_wrapper process_arguments(int argc, char **argv) { | |||
| 400 | break; | 400 | break; |
| 401 | case 'w': { | 401 | case 'w': { |
| 402 | mp_range_parsed tmp = mp_parse_range_string(optarg); | 402 | mp_range_parsed tmp = mp_parse_range_string(optarg); |
| 403 | if (tmp.error != MP_PARSING_SUCCES) { | 403 | if (tmp.error != MP_PARSING_SUCCESS) { |
| 404 | die(STATE_UNKNOWN, "failed to parse warning connection time threshold"); | 404 | die(STATE_UNKNOWN, "failed to parse warning connection time threshold"); |
| 405 | } | 405 | } |
| 406 | result.config.connection_time_threshold = | 406 | result.config.connection_time_threshold = |
| @@ -408,7 +408,7 @@ check_ldap_config_wrapper process_arguments(int argc, char **argv) { | |||
| 408 | } break; | 408 | } break; |
| 409 | case 'c': { | 409 | case 'c': { |
| 410 | mp_range_parsed tmp = mp_parse_range_string(optarg); | 410 | mp_range_parsed tmp = mp_parse_range_string(optarg); |
| 411 | if (tmp.error != MP_PARSING_SUCCES) { | 411 | if (tmp.error != MP_PARSING_SUCCESS) { |
| 412 | die(STATE_UNKNOWN, "failed to parse critical connection time threshold"); | 412 | die(STATE_UNKNOWN, "failed to parse critical connection time threshold"); |
| 413 | } | 413 | } |
| 414 | result.config.connection_time_threshold = | 414 | result.config.connection_time_threshold = |
| @@ -416,7 +416,7 @@ check_ldap_config_wrapper process_arguments(int argc, char **argv) { | |||
| 416 | } break; | 416 | } break; |
| 417 | case 'W': { | 417 | case 'W': { |
| 418 | mp_range_parsed tmp = mp_parse_range_string(optarg); | 418 | mp_range_parsed tmp = mp_parse_range_string(optarg); |
| 419 | if (tmp.error != MP_PARSING_SUCCES) { | 419 | if (tmp.error != MP_PARSING_SUCCESS) { |
| 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.entries_thresholds = | 422 | result.config.entries_thresholds = |
| @@ -424,7 +424,7 @@ check_ldap_config_wrapper process_arguments(int argc, char **argv) { | |||
| 424 | } break; | 424 | } break; |
| 425 | case 'C': { | 425 | case 'C': { |
| 426 | mp_range_parsed tmp = mp_parse_range_string(optarg); | 426 | mp_range_parsed tmp = mp_parse_range_string(optarg); |
| 427 | if (tmp.error != MP_PARSING_SUCCES) { | 427 | if (tmp.error != MP_PARSING_SUCCESS) { |
| 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.entries_thresholds = | 430 | result.config.entries_thresholds = |
| @@ -462,11 +462,7 @@ check_ldap_config_wrapper process_arguments(int argc, char **argv) { | |||
| 462 | } | 462 | } |
| 463 | break; | 463 | break; |
| 464 | case '6': | 464 | case '6': |
| 465 | #ifdef USE_IPV6 | ||
| 466 | address_family = AF_INET6; | 465 | address_family = AF_INET6; |
| 467 | #else | ||
| 468 | usage(_("IPv6 support not available\n")); | ||
| 469 | #endif | ||
| 470 | break; | 466 | break; |
| 471 | case output_format_index: { | 467 | case output_format_index: { |
| 472 | parsed_output_format parser = mp_parse_output_format(optarg); | 468 | parsed_output_format parser = mp_parse_output_format(optarg); |
