@@ -410,9 +410,6 @@ void
print_usage (void)
{
printf ("\n\
-Usage: %s [-f46] [-t timeout] [-i identity] [-l user] -H <host> \n\
- -C <command> [-n name] [-s servicelist] [-O outputfile] [-p port]\n",
- progname);
-
- printf (_(UT_HLP_VRS), progname, progname);
+Usage: %s [-f46] [-t timeout] [-i identity] [-l user] -H <host> -C <command>\n\
+ [-n name] [-s servicelist] [-O outputfile] [-p port]\n", progname);
}
@@ -357,6 +357,4 @@ print_usage (void)
Usage: %s -H host -l lookup [-p <server port>] [-T <query type>]\n\
[-w <warning interval>] [-c <critical interval>] [-t <timeout>]\n\
[-a <expected answer address>] [-v]\n", progname);
- printf (UT_HLP_VRS, progname, progname);
@@ -638,7 +638,5 @@ print_usage (void)
printf ("\
Usage: %s -w limit -c limit [-p path | -x device] [-t timeout] [-m] [-e]\n\
- [-v] [-q]\n", progname);
+ [-v] [-q]\n", progname);
@@ -427,6 +427,4 @@ print_usage (void)
Usage: %s -H host [-s server] [-a expected-address] [-A] [-t timeout]\n", progname);
@@ -41,7 +41,7 @@ main (int argc, char **argv)
textdomain (PACKAGE);
if (argc < 2)
- usage4 (_("Incorrect number of arguments supplied"));
+ usage4 (_("Could not parse arguments"));
else if (strcmp (argv[1], "-V") == 0 || strcmp (argv[1], "--version") == 0) {
print_revision (progname, revision);
exit (STATE_OK);
@@ -400,5 +400,4 @@ void
printf ("Usage: %s <host_address>\n", progname);
@@ -329,15 +329,12 @@ Notes:\n\
void
Usage: %s <game> <ip_address> [-p port] [-gf game_field] [-mf map_field]\n\
- [-pf ping_field]\n", progname);
+ [-pf ping_field]\n", progname);
/******************************************************************************
@@ -400,6 +400,4 @@ print_usage (void)
printf (_("\
Usage: %s -H host [-C community]\n"), progname);
@@ -1491,12 +1491,10 @@ void
-Usage: %s (-H <vhost> | -I <IP-address>) [-u <uri>] [-p <port>]\n\
- [-w <warn time>] [-c <critical time>] [-t <timeout>] [-L]\n\
- [-a auth] [-f <ok | warn | critcal | follow>] [-e <expect>]\n\
- [-s string] [-l] [-r <regex> | -R <case-insensitive regex>]\n\
- [-P string] [-m min_pg_size] [-4|-6] [-N] [-M <age>] [-A string]\n\
- [-k string]\n"), progname);
+Usage: %s -H <vhost> | -I <IP-address>) [-u <uri>] [-p <port>]\n\
+ [-w <warn time>] [-c <critical time>] [-t <timeout>] [-L]\n\
+ [-a auth] [-f <ok | warn | critcal | follow>] [-e <expect>]\n\
+ [-s string] [-l] [-r <regex> | -R <case-insensitive regex>]\n\
+ [-P string] [-m min_pg_size] [-4|-6] [-N] [-M <age>] [-A string]\n\
+ [-k string]\n"), progname);
@@ -398,8 +398,6 @@ Usage: %s [DEVICE] [OPTION]\n\
Turn off automatic offline tests\n\
-n, --net-saint\n\
Output suitable for Net Saint\n", progname);
@@ -329,14 +329,13 @@ print_help (void)
Usage: %s -H <host> -b <base_dn> [-p <port>] [-a <attr>] [-D <binddn>]\n\
- [-P <password>] [-w <warn_time>] [-c <crit_time>] [-t timeout]%s\n\
-(Note: all times are in seconds.)\n",
+ [-P <password>] [-w <warn_time>] [-c <crit_time>] [-t timeout]%s\n",
+//(Note: all times are in seconds.)\n",
progname,
#ifdef HAVE_LDAP_SET_OPTION
" [-2|-3] [-4|-6]"
@@ -344,6 +343,4 @@ Usage: %s -H <host> -b <base_dn> [-p <port>] [-a <attr>] [-D <binddn>]\n\
""
#endif
);
@@ -320,6 +320,4 @@ void
printf ("Usage: %s -w WLOAD1,WLOAD5,WLOAD15 -c CLOAD1,CLOAD5,CLOAD15\n", progname);
@@ -306,9 +306,6 @@ validate_arguments (void)
print_help (void)
@@ -372,7 +369,6 @@ this plugin works well for monitoring that kind of data as well.\n\n"));
/* original command line:
<log_file> <expire_minutes> <AVG|MAX> <variable> <vwl> <vcl> <label> [units] */
@@ -381,7 +377,5 @@ print_usage (void)
Usage: %s -F log_file -a <AVG | MAX> -v variable -w warning -c critical\n\
- [-l label] [-u units] [-e expire_minutes] [-t timeout] [-v]\n", progname);
+ [-l label] [-u units] [-e expire_minutes] [-t timeout] [-v]\n", progname);
@@ -359,13 +359,10 @@ the <iwl> or <owl> thresholds (in Bytes/sec), a WARNING status results.\n\n"));
Usage: %s -F <log_file> -a <AVG | MAX> -v <variable> -w <warning_pair> -c <critical_pair>\n\
- [-e expire_minutes] [-t timeout] [-v]\n", progname);
+ [-e expire_minutes] [-t timeout] [-v]\n", progname);
@@ -311,5 +311,4 @@ print_usage (void)
Usage: %s [-d database] [-H host] [-P port] [-u user] [-p password] [-S]\n",
progname);
@@ -303,8 +303,5 @@ void
-Usage: %s -F <status log file> -e <expire_minutes> -C <process_string>\n",
+Usage: %s -F <status log file> -e <expire_minutes> -C <process_string>\n", progname);
@@ -684,7 +684,5 @@ void print_usage(void)
printf("\
Usage: %s -H host -v variable [-p port] [-w warning] [-c critical]\n\
- [-l params] [-d SHOWALL] [-t timeout]\n", progname);
+ [-l params] [-d SHOWALL] [-t timeout]\n", progname);
@@ -989,7 +989,5 @@ void print_usage(void)
Usage: %s -H host [-p port] [-v variable] [-w warning] [-c critical]\n\
- [-t timeout].\n", progname);
+ [-t timeout].\n", progname);
@@ -404,18 +404,6 @@ process_arguments (int argc, char **argv)
-void
-print_usage (void)
-{
- printf (_("\
-Usage: %s -H host [-p port] [-v variable] [-w warning] [-c critical]\n\
- [-t timeout]\n"),
-}
@@ -469,3 +457,13 @@ Notes:\n\
printf (_(UT_SUPPORT));
+
+void
+print_usage (void)
+{
+ printf ("\
+Usage: %s -H host [-p port] [-v variable] [-w warning] [-c critical]\n\
+ [-t timeout]\n", progname);
+}
@@ -443,7 +443,5 @@ print_usage (void)
Usage: %s [-H <host>] [-P <port>] [-c <critical time>] [-w <warning time>]\n\
- [-t <timeout>] [-d <database>] [-l <logname>] [-p <password>]\n", progname);
+ [-t <timeout>] [-d <database>] [-l <logname>] [-p <password>]\n", progname);
@@ -533,7 +533,5 @@ void
printf ("Usage: %s -H <host_address> -w <wrta>,<wpl>%% -c <crta>,<cpl>%%\n\
- [-p packets] [-t timeout] [-L] [-4|-6]\n", progname);
+ [-p packets] [-t timeout] [-L] [-4|-6]\n", progname);
@@ -751,8 +751,6 @@ print_usage (void)
Usage: %s -w <range> -c <range> [-m metric] [-s state] [-p ppid]\n\
- [-u user] [-r rss] [-z vsz] [-P %%cpu] [-a argument-array]\n\
- [-C command] [-t timeout] [-v]\n", progname);
+ [-u user] [-r rss] [-z vsz] [-P %%cpu] [-a argument-array]\n\
+ [-C command] [-t timeout] [-v]\n", progname);
@@ -335,6 +335,5 @@ print_usage (void)
Usage: %s -H host -F config_file -u username -p password [-n nas-id] [-P port]\n\
- [-t timeout] [-r retries] [-e expect]\n", progname);
+ [-t timeout] [-r retries] [-e expect]\n", progname);
@@ -438,7 +438,5 @@ print_usage (void)
Usage: %s -H host [-e expect] [-p port] [-w warn] [-c crit]\n\
- [-t timeout] [-v]\n", progname);
+ [-t timeout] [-v]\n", progname);
@@ -468,6 +468,5 @@ print_usage (void)
Usage: %s -H host [-p port] [-e expect] [-C command] [-f from addr]\n\
- [-w warn] [-c crit] [-t timeout] [-n] [-v] [-4|-6]\n", progname);
+ [-w warn] [-c crit] [-t timeout] [-n] [-v] [-4|-6]\n", progname);
@@ -950,11 +950,9 @@ print_usage (void)
Usage: %s -H <ip_address> -o <OID> [-w warn_range] [-c crit_range] \n\
- [-C community] [-s string] [-r regex] [-R regexi] [-t timeout]\n\
- [-l label] [-u units] [-p port-number] [-d delimiter]\n\
- [-D output-delimiter] [-m miblist] [-P snmp version]\n\
- [-L seclevel] [-U secname] [-a authproto] [-A authpasswd]\n\
- [-X privpasswd]\n", progname);
+ [-C community] [-s string] [-r regex] [-R regexi] [-t timeout]\n\
+ [-l label] [-u units] [-p port-number] [-d delimiter]\n\
+ [-D output-delimiter] [-m miblist] [-P snmp version]\n\
+ [-L seclevel] [-U secname] [-a authproto] [-A authpasswd]\n\
+ [-X privpasswd]\n", progname);
@@ -289,7 +289,5 @@ print_usage (void)
Usage: %s [-46] [-t <timeout>] [-r <remote version>] [-p <port>] <host>\n", progname);
@@ -517,6 +517,4 @@ print_usage (void)
printf ("Usage:\n\
%s [-av] -w <percent_free>%% -c <percent_free>%%\n\
%s [-av] -w <bytes_free> -c <bytes_free>\n", progname, progname);
@@ -795,10 +795,8 @@ print_usage (void)
Usage: %s -H host -p port [-w <warning time>] [-c <critical time>]\n\
- [-s <send string>] [-e <expect string>] [-q <quit string>]\n\
- [-m <maximum bytes>] [-d <delay>] [-t <timeout seconds>]\n\
- [-r <refuse state>] [-v] [-4|-6] [-j] [-D <days to cert expiry>]\n\
- [-S <use SSL>]\n", progname);
+ [-s <send string>] [-e <expect string>] [-q <quit string>]\n\
+ [-m <maximum bytes>] [-d <delay>] [-t <timeout seconds>]\n\
+ [-r <refuse state>] [-v] [-4|-6] [-j] [-D <days to cert expiry>]\n\
+ [-S <use SSL>]\n", progname);
@@ -359,7 +359,5 @@ print_usage (void)
Usage: %s -H <host_address> [-p port] [-u] [-w variance] [-c variance]\n\
- [-W connect_time] [-C connect_time] [-t timeout]\n", progname);
+ [-W connect_time] [-C connect_time] [-t timeout]\n", progname);
@@ -264,7 +264,5 @@ print_usage (void)
Usage: %s -H <host_address> [-p port] [-w warn_time] [-c crit_time]\n\
- [-e expect] [-s send] [-t to_sec] [-v]\n", progname);
+ [-e expect] [-s send] [-t to_sec] [-v]\n", progname);
@@ -32,7 +32,6 @@ const char *revision = "$Revision$";
const char *copyright = "2000-2004";
const char *email = "nagiosplug-devel@lists.sourceforge.net";
-#include <locale.h>
#include "common.h"
#include "netutils.h"
#include "utils.h"
@@ -649,6 +648,5 @@ print_usage (void)
Usage: %s -H host -u ups [-p port] [-v variable]\n\
- [-wv warn_value] [-cv crit_value] [-to to_sec] [-T]\n", progname);
+ [-wv warn_value] [-cv crit_value] [-to to_sec] [-T]\n", progname);
@@ -215,6 +215,4 @@ void
printf ("Usage: %s -w <users> -c <users>\n", progname);
@@ -239,11 +239,10 @@ print_help (void)
- printf (_(COPYRIGHT), copyright, email);
+ printf (COPYRIGHT, copyright, email);
-Negates the status of a plugin (returns OK for CRITICAL, and vice-versa).\n\
-\n"));
+Negates the status of a plugin (returns OK for CRITICAL, and vice-versa).\n\n"));
print_usage ();
@@ -274,8 +273,5 @@ Otherwise, the output state of the wrapped plugin is unchanged.\n"));
- printf ("Usage: %s [-t timeout] <definition of wrapped plugin>\n",
+ printf ("Usage: %s [-t timeout] <definition of wrapped plugin>\n",progname);
@@ -163,6 +163,4 @@ void
printf ("Usage:\n %s <url> <plugin> <arg1> ... <argN>\n", progname);