diff options
Diffstat (limited to 'plugins/check_ntp_time.c')
-rw-r--r-- | plugins/check_ntp_time.c | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/plugins/check_ntp_time.c b/plugins/check_ntp_time.c index ec41429e..ea24a0e7 100644 --- a/plugins/check_ntp_time.c +++ b/plugins/check_ntp_time.c | |||
@@ -540,6 +540,9 @@ int main(int argc, char *argv[]){ | |||
540 | 540 | ||
541 | result = offset_result = STATE_OK; | 541 | result = offset_result = STATE_OK; |
542 | 542 | ||
543 | /* Parse extra opts if any */ | ||
544 | argv=np_extra_opts (&argc, argv, progname); | ||
545 | |||
543 | if (process_arguments (argc, argv) == ERROR) | 546 | if (process_arguments (argc, argv) == ERROR) |
544 | usage4 (_("Could not parse arguments")); | 547 | usage4 (_("Could not parse arguments")); |
545 | 548 | ||
@@ -597,6 +600,7 @@ void print_help(void){ | |||
597 | 600 | ||
598 | print_usage(); | 601 | print_usage(); |
599 | printf (_(UT_HELP_VRSN)); | 602 | printf (_(UT_HELP_VRSN)); |
603 | printf (_(UT_EXTRA_OPTS)); | ||
600 | printf (_(UT_HOST_PORT), 'p', "123"); | 604 | printf (_(UT_HOST_PORT), 'p', "123"); |
601 | printf (" %s\n", "-q, --quiet"); | 605 | printf (" %s\n", "-q, --quiet"); |
602 | printf (" %s\n", _("Returns UNKNOWN instead of CRITICAL if offset cannot be found")); | 606 | printf (" %s\n", _("Returns UNKNOWN instead of CRITICAL if offset cannot be found")); |
@@ -610,13 +614,18 @@ void print_help(void){ | |||
610 | printf("\n"); | 614 | printf("\n"); |
611 | printf("%s\n", _("This plugin checks the clock offset between the local host and a")); | 615 | printf("%s\n", _("This plugin checks the clock offset between the local host and a")); |
612 | printf("%s\n", _("remote NTP server. It is independent of any commandline programs or")); | 616 | printf("%s\n", _("remote NTP server. It is independent of any commandline programs or")); |
613 | printf("%s\n\n", _("external libraries.")); | 617 | printf("%s\n", _("external libraries.")); |
614 | 618 | ||
619 | printf("\n"); | ||
615 | printf("%s\n", _("Notes:")); | 620 | printf("%s\n", _("Notes:")); |
616 | printf(" %s\n", _("If you'd rather want to monitor an NTP server, please use")); | 621 | printf(" %s\n", _("If you'd rather want to monitor an NTP server, please use")); |
617 | printf(" %s\n\n", _("check_ntp_peer.")); | 622 | printf(" %s\n", _("check_ntp_peer.")); |
618 | 623 | printf("\n"); | |
619 | printf(_(UT_THRESHOLDS_NOTES)); | 624 | printf(_(UT_THRESHOLDS_NOTES)); |
625 | #ifdef NP_EXTRA_OPTS | ||
626 | printf("\n"); | ||
627 | printf(_(UT_EXTRA_OPTS_NOTES)); | ||
628 | #endif | ||
620 | 629 | ||
621 | printf("\n"); | 630 | printf("\n"); |
622 | printf("%s\n", _("Examples:")); | 631 | printf("%s\n", _("Examples:")); |