summaryrefslogtreecommitdiffstats
path: root/plugins/check_ntp.c
diff options
context:
space:
mode:
authorBenoit Mortier <opensides@users.sourceforge.net>2006-06-17 12:28:43 (GMT)
committerBenoit Mortier <opensides@users.sourceforge.net>2006-06-17 12:28:43 (GMT)
commitcbbfed30eb01a702b2e61c0abcb64c834e73d654 (patch)
treeb9d050fa415733f80306530e1ed028ef3ce9759a /plugins/check_ntp.c
parente5324624caefb201439012d795bebdf46966ec9c (diff)
downloadmonitoring-plugins-cbbfed30eb01a702b2e61c0abcb64c834e73d654.tar.gz
cleaning up help and usage
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1433 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_ntp.c')
-rw-r--r--plugins/check_ntp.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/plugins/check_ntp.c b/plugins/check_ntp.c
index 655dd4f..9cda277 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
771void print_usage(void){
772 printf("\
773Usage: %s -H <host> [-O] [-w <warn>] [-c <crit>] [-j <warn>] [-k <crit>] [-v verbose]\
774\n", progname);
775}
776 771
777void print_help(void){ 772void 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
791void
792print_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}