diff options
| author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-11-05 10:42:12 +0100 |
|---|---|---|
| committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-11-05 10:42:12 +0100 |
| commit | cadcfaecbec56d2ecf44bb33bb394ca815240127 (patch) | |
| tree | 78920661828571d495efc6255d25011bffc8eadf /plugins | |
| parent | 16daa06e439da1541cbcb4e0622131838b21ba0f (diff) | |
| download | monitoring-plugins-cadcfaecbec56d2ecf44bb33bb394ca815240127.tar.gz | |
check_ntp_time: fix time-offset argument and description
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/check_ntp_time.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_ntp_time.c b/plugins/check_ntp_time.c index d554089d..8d97f2b9 100644 --- a/plugins/check_ntp_time.c +++ b/plugins/check_ntp_time.c | |||
| @@ -511,7 +511,7 @@ static check_ntp_time_config_wrapper process_arguments(int argc, char **argv) { | |||
| 511 | {"use-ipv4", no_argument, 0, '4'}, | 511 | {"use-ipv4", no_argument, 0, '4'}, |
| 512 | {"use-ipv6", no_argument, 0, '6'}, | 512 | {"use-ipv6", no_argument, 0, '6'}, |
| 513 | {"quiet", no_argument, 0, 'q'}, | 513 | {"quiet", no_argument, 0, 'q'}, |
| 514 | {"time-offset", optional_argument, 0, 'o'}, | 514 | {"time-offset", required_argument, 0, 'o'}, |
| 515 | {"warning", required_argument, 0, 'w'}, | 515 | {"warning", required_argument, 0, 'w'}, |
| 516 | {"critical", required_argument, 0, 'c'}, | 516 | {"critical", required_argument, 0, 'c'}, |
| 517 | {"timeout", required_argument, 0, 't'}, | 517 | {"timeout", required_argument, 0, 't'}, |
| @@ -682,7 +682,7 @@ void print_help(void) { | |||
| 682 | printf(" %s\n", _("Offset to result in warning status (seconds)")); | 682 | printf(" %s\n", _("Offset to result in warning status (seconds)")); |
| 683 | printf(" %s\n", "-c, --critical=THRESHOLD"); | 683 | printf(" %s\n", "-c, --critical=THRESHOLD"); |
| 684 | printf(" %s\n", _("Offset to result in critical status (seconds)")); | 684 | printf(" %s\n", _("Offset to result in critical status (seconds)")); |
| 685 | printf(" %s\n", "-o, --time_offset=INTEGER"); | 685 | printf(" %s\n", "-o, --time-offset=INTEGER"); |
| 686 | printf(" %s\n", _("Expected offset of the ntp server relative to local server (seconds)")); | 686 | printf(" %s\n", _("Expected offset of the ntp server relative to local server (seconds)")); |
| 687 | printf(UT_CONN_TIMEOUT, DEFAULT_SOCKET_TIMEOUT); | 687 | printf(UT_CONN_TIMEOUT, DEFAULT_SOCKET_TIMEOUT); |
| 688 | printf(UT_VERBOSE); | 688 | printf(UT_VERBOSE); |
