summaryrefslogtreecommitdiffstats
path: root/plugins/check_nwstat.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_nwstat.c')
-rw-r--r--plugins/check_nwstat.c33
1 files changed, 23 insertions, 10 deletions
diff --git a/plugins/check_nwstat.c b/plugins/check_nwstat.c
index de8a620..4b22726 100644
--- a/plugins/check_nwstat.c
+++ b/plugins/check_nwstat.c
@@ -75,9 +75,14 @@ enum checkvar vars_to_check = NONE;
75int sap_number=-1; 75int sap_number=-1;
76 76
77int process_arguments(int, char **); 77int process_arguments(int, char **);
78void print_usage(void);
79void print_help(void); 78void print_help(void);
79void print_usage(void);
80
81
80 82
83
84
85
81int 86int
82main(int argc, char **argv) { 87main(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
882void print_usage(void)
883{
884 printf (_("\
885Usage: %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
890void print_help(void) 892void 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
981void print_usage(void)
982{
983 printf (_("\
984Usage: %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}