diff options
Diffstat (limited to 'plugins/check_nwstat.c')
-rw-r--r-- | plugins/check_nwstat.c | 33 |
1 files changed, 23 insertions, 10 deletions
diff --git a/plugins/check_nwstat.c b/plugins/check_nwstat.c index de8a6200..4b227269 100644 --- a/plugins/check_nwstat.c +++ b/plugins/check_nwstat.c | |||
@@ -75,9 +75,14 @@ enum checkvar vars_to_check = NONE; | |||
75 | int sap_number=-1; | 75 | int sap_number=-1; |
76 | 76 | ||
77 | int process_arguments(int, char **); | 77 | int process_arguments(int, char **); |
78 | void print_usage(void); | ||
79 | void print_help(void); | 78 | void print_help(void); |
79 | void print_usage(void); | ||
80 | |||
81 | |||
80 | 82 | ||
83 | |||
84 | |||
85 | |||
81 | int | 86 | int |
82 | main(int argc, char **argv) { | 87 | main(int argc, char **argv) { |
83 | int result; | 88 | int result; |
@@ -878,15 +883,12 @@ int process_arguments(int argc, char **argv) { | |||
878 | 883 | ||
879 | return OK; | 884 | return OK; |
880 | } | 885 | } |
881 | |||
882 | void print_usage(void) | ||
883 | { | ||
884 | printf (_("\ | ||
885 | Usage: %s -H host [-p port] [-v variable] [-w warning] [-c critical]\n\ | ||
886 | [-t timeout].\n"), progname); | ||
887 | printf (_(UT_HLP_VRS), progname, progname); | ||
888 | } | ||
889 | 886 | ||
887 | |||
888 | |||
889 | |||
890 | |||
891 | |||
890 | void print_help(void) | 892 | void print_help(void) |
891 | { | 893 | { |
892 | char *myport; | 894 | char *myport; |
@@ -894,7 +896,7 @@ void print_help(void) | |||
894 | 896 | ||
895 | print_revision (progname, revision); | 897 | print_revision (progname, revision); |
896 | 898 | ||
897 | printf (_("Copyright (c) 1999-2001 Ethan Galstad <nagios@nagios.org>\n")); | 899 | printf (_("Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>\n")); |
898 | printf (_(COPYRIGHT), copyright, email); | 900 | printf (_(COPYRIGHT), copyright, email); |
899 | 901 | ||
900 | printf (_("\ | 902 | printf (_("\ |
@@ -972,3 +974,14 @@ Notes:\n\ | |||
972 | 974 | ||
973 | printf (_(UT_SUPPORT)); | 975 | printf (_(UT_SUPPORT)); |
974 | } | 976 | } |
977 | |||
978 | |||
979 | |||
980 | |||
981 | void print_usage(void) | ||
982 | { | ||
983 | printf (_("\ | ||
984 | Usage: %s -H host [-p port] [-v variable] [-w warning] [-c critical]\n\ | ||
985 | [-t timeout].\n"), progname); | ||
986 | printf (_(UT_HLP_VRS), progname, progname); | ||
987 | } | ||