diff options
Diffstat (limited to 'plugins/check_ntp.c')
-rw-r--r-- | plugins/check_ntp.c | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/plugins/check_ntp.c b/plugins/check_ntp.c index 655dd4fc..9cda2776 100644 --- a/plugins/check_ntp.c +++ b/plugins/check_ntp.c | |||
@@ -768,23 +768,29 @@ int main(int argc, char *argv[]){ | |||
768 | } | 768 | } |
769 | 769 | ||
770 | 770 | ||
771 | void print_usage(void){ | ||
772 | printf("\ | ||
773 | Usage: %s -H <host> [-O] [-w <warn>] [-c <crit>] [-j <warn>] [-k <crit>] [-v verbose]\ | ||
774 | \n", progname); | ||
775 | } | ||
776 | 771 | ||
777 | void print_help(void){ | 772 | void print_help(void){ |
778 | print_revision(progname, revision); | 773 | print_revision(progname, revision); |
779 | 774 | ||
780 | printf ("Copyright (c) 1999 Ethan Galstad\n"); | 775 | printf ("Copyright (c) 1999 Ethan Galstad\n"); |
781 | printf (COPYRIGHT, copyright, email); | 776 | printf (COPYRIGHT, copyright, email); |
777 | |||
778 | printf ("%s\n", _("This plugin checks the selected ntp server")); | ||
782 | 779 | ||
780 | printf ("\n\n"); | ||
781 | |||
783 | print_usage(); | 782 | print_usage(); |
784 | printf (_(UT_HELP_VRSN)); | 783 | printf (_(UT_HELP_VRSN)); |
785 | printf (_(UT_HOST_PORT), 'p', "123"); | 784 | printf (_(UT_HOST_PORT), 'p', "123"); |
786 | printf (_(UT_WARN_CRIT)); | 785 | printf (_(UT_WARN_CRIT)); |
787 | printf (_(UT_TIMEOUT), DEFAULT_SOCKET_TIMEOUT); | 786 | printf (_(UT_TIMEOUT), DEFAULT_SOCKET_TIMEOUT); |
788 | printf (_(UT_VERBOSE)); | 787 | printf (_(UT_VERBOSE)); |
789 | printf(_(UT_SUPPORT)); | 788 | printf (_(UT_SUPPORT)); |
789 | } | ||
790 | |||
791 | void | ||
792 | print_usage(void) | ||
793 | { | ||
794 | printf (_("Usage:")); | ||
795 | printf("%s -H <host> [-O] [-w <warn>] [-c <crit>] [-j <warn>] [-k <crit>] [-v verbose]\n", progname); | ||
790 | } | 796 | } |