Code

remove UT_HLP_VRS from print_usage
authorBenoit Mortier <opensides@users.sourceforge.net>
Fri, 3 Dec 2004 20:28:53 +0000 (20:28 +0000)
committerBenoit Mortier <opensides@users.sourceforge.net>
Fri, 3 Dec 2004 20:28:53 +0000 (20:28 +0000)
this was not a good idea ;-)

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@994 f882894a-f735-0410-b71e-b25c423dba1c

35 files changed:
plugins/check_by_ssh.c
plugins/check_dig.c
plugins/check_disk.c
plugins/check_dns.c
plugins/check_dummy.c
plugins/check_fping.c
plugins/check_game.c
plugins/check_hpjd.c
plugins/check_http.c
plugins/check_ide-smart.c
plugins/check_ldap.c
plugins/check_load.c
plugins/check_mrtg.c
plugins/check_mrtgtraf.c
plugins/check_mysql.c
plugins/check_nagios.c
plugins/check_nt.c
plugins/check_nwstat.c
plugins/check_overcr.c
plugins/check_pgsql.c
plugins/check_ping.c
plugins/check_procs.c
plugins/check_radius.c
plugins/check_real.c
plugins/check_smtp.c
plugins/check_snmp.c
plugins/check_ssh.c
plugins/check_swap.c
plugins/check_tcp.c
plugins/check_time.c
plugins/check_udp.c
plugins/check_ups.c
plugins/check_users.c
plugins/negate.c
plugins/urlize.c

index 7080c695b289fd9bca2c20a6f47c643d8f7cacab..cc2ec75b49039836cebc02497bd9f14f6b3c34be 100644 (file)
@@ -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);
 }
index 823ea01cfe6625853cbf192c75efd41ddbd453be..5bed80d4a3bbd73cfe8218505a0f6c8476f2be36 100644 (file)
@@ -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);
 }
index 70cd5480d1ff1b159858d8ddce881702fcf6c1bd..109420a110f632300aea146bfec0b768000a9f5e 100644 (file)
@@ -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);
-
-       printf (UT_HLP_VRS, progname, progname);
+          [-v] [-q]\n", progname);
 }
index 579c51a871d0a73ddd092dd67b168590095a4ad8..492fa17629b8b5dffb3697313ef0640e209d4b58 100644 (file)
@@ -427,6 +427,4 @@ print_usage (void)
 {
        printf ("\
 Usage: %s -H host [-s server] [-a expected-address] [-A] [-t timeout]\n", progname);
-
-       printf (UT_HLP_VRS, progname, progname);
 }
index c621b9f1da248f7dcb047f08b557ed9e3e9e6a60..e0c38d322f962026cc56e119823a58608874d381 100644 (file)
@@ -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);
index 3baf52f21f6c486b216ecc2241f1be32c301f61d..0b23f79e993cf1be22b41a6baddfbbccbe191123 100644 (file)
@@ -400,5 +400,4 @@ void
 print_usage (void)
 {
        printf ("Usage: %s <host_address>\n", progname);
-       printf (UT_HLP_VRS, progname, progname);
 }
index a194ab258bd90ed598ee8c663ee1dd207ccff03f..9b13d94b5843db49dd14a50a352efb900fb4b813 100644 (file)
@@ -329,15 +329,12 @@ Notes:\n\
 
 
 
-
 void
 print_usage (void)
 {
        printf ("\
 Usage: %s <game> <ip_address> [-p port] [-gf game_field] [-mf map_field]\n\
-  [-pf ping_field]\n", progname);
-       
-       printf (UT_HLP_VRS, progname, progname);
+          [-pf ping_field]\n", progname);
 }
 
 /******************************************************************************
index b9b3f7f378df0ed375852245db2ad23f42518f72..816ce19bc8e4c9682831fe879ff1a322c0b431a1 100644 (file)
@@ -400,6 +400,4 @@ print_usage (void)
 {
        printf (_("\
 Usage: %s -H host [-C community]\n"), progname);
-
-       printf (UT_HLP_VRS, progname, progname);
 }
index 125052fe325a05b178b19f9678bee5d49c5ef177..f33402684daf566935551556a7d93b108647fff7 100644 (file)
@@ -1491,12 +1491,10 @@ void
 print_usage (void)
 {
        printf (_("\
-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);
-       
-       printf (UT_HLP_VRS, progname, 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);
 }
index aa74f98027bd54e3477872119877f05a742f990e..9ebef6cd6fdc856132b0f43216da9d2c85239349 100644 (file)
@@ -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);
-       
-       printf (UT_HLP_VRS, progname, progname);
 }
 
 
index 80c0907afa0af6ef2656670aae8fd8ccebe0fde3..9664c0fb5c211cc10c22f9e23a547282b6647cd8 100644 (file)
@@ -329,14 +329,13 @@ print_help (void)
 
 
 
-
 void
 print_usage (void)
 {
        printf ("\
 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
                        );
-
-       printf (UT_HLP_VRS, progname, progname);
 }
index 2112d1cfd1eed12bc94e4283a7644ff00a9d64c9..d9833b6404ffc25f55202b65d9746fed2c60ce36 100644 (file)
@@ -320,6 +320,4 @@ void
 print_usage (void)
 {
        printf ("Usage: %s -w WLOAD1,WLOAD5,WLOAD15 -c CLOAD1,CLOAD5,CLOAD15\n", progname);
-                                       
-       printf (UT_HLP_VRS, progname, progname);
 }
index cc4714cf9533c7b0394311496807332a4195ad8f..5dfee7201ad968a1693296d453d031f049b7dad7 100644 (file)
@@ -306,9 +306,6 @@ validate_arguments (void)
 
 
 
-
-
-\f
 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)
 {
        printf ("\
 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);
-       
-       printf (UT_HLP_VRS, progname, progname);
+         [-l label] [-u units] [-e expire_minutes] [-t timeout] [-v]\n", progname);
 }
index 69778e352ae9bc565e6eb7cca9b7773d74a29916..9b408a4244ebf5e018aab55a3bfa261610ad091b 100644 (file)
@@ -359,13 +359,10 @@ the <iwl> or <owl> thresholds (in Bytes/sec), a WARNING status results.\n\n"));
 
 
 
-
 void
 print_usage (void)
 {
        printf ("\
 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);
-       
-       printf (UT_HLP_VRS, progname, progname);
+          [-e expire_minutes] [-t timeout] [-v]\n", progname);
 }
index 5863e1a764a5195a362ea55485e457f4bcfd53af..1061fabd6b1761fdb06d2d73259ef001835693cf 100644 (file)
@@ -311,5 +311,4 @@ print_usage (void)
        printf ("\
 Usage: %s [-d database] [-H host] [-P port] [-u user] [-p password] [-S]\n",
                progname);
-       printf (UT_HLP_VRS, progname, progname);
 }
index 694c069c5cfdd895835a74ac9d435f1665c14c00..8a10c4a7844a3a4c71bbc6f6ac9ae7d640063738 100644 (file)
@@ -303,8 +303,5 @@ void
 print_usage (void)
 {
        printf ("\
-Usage: %s -F <status log file> -e <expire_minutes> -C <process_string>\n",
-               progname);
-                                       
-       printf (UT_HLP_VRS, progname, progname);
+Usage: %s -F <status log file> -e <expire_minutes> -C <process_string>\n", progname);
 }
index 2cc45cda5535e9317dde51a90f5615a6d8abbe7c..67c3017e1ec4492a4256b9653f9f2a7ed631fd92 100644 (file)
@@ -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);
-       
-       printf (UT_HLP_VRS, progname, progname);
+          [-l params] [-d SHOWALL] [-t timeout]\n", progname);
 }
index 98b06d90ecc71163a96f9f130874fd4b9a567d8d..b791640f5e1d849efb5a7949586fd69699ed0140 100644 (file)
@@ -989,7 +989,5 @@ void print_usage(void)
 {
        printf ("\
 Usage: %s -H host [-p port] [-v variable] [-w warning] [-c critical]\n\
-  [-t timeout].\n", progname);
-       
-       printf (UT_HLP_VRS, progname, progname);
+          [-t timeout].\n", progname);
 }
index ddaebdbd1ea1d61240cb7c8348b00a0f72636a1e..2ebf62e1e4f9c3b8d8a3e115792ce1e4c0e7a03f 100644 (file)
@@ -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"),
-               progname);
-       printf (_(UT_HLP_VRS), progname, progname);
-}
-
-
-
 void
 print_help (void)
 {
@@ -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);
+}
index f97ef66ce17db2ceb95b4c52e38d377869d10039..53f9e96caca7d26ce4dd5ac71ffeab03c8c942b0 100644 (file)
@@ -443,7 +443,5 @@ print_usage (void)
 {
        printf ("\
 Usage: %s [-H <host>] [-P <port>] [-c <critical time>] [-w <warning time>]\n\
-            [-t <timeout>] [-d <database>] [-l <logname>] [-p <password>]\n", progname);
-                                               
-       printf (UT_HLP_VRS, progname, progname);
+          [-t <timeout>] [-d <database>] [-l <logname>] [-p <password>]\n", progname);
 }
index c04fb027287adfae2f04a0b281c186df99318f30..9fe71831684923d1fffa1816ce0c56c60a61eee3 100644 (file)
@@ -533,7 +533,5 @@ void
 print_usage (void)
 {
        printf ("Usage: %s -H <host_address> -w <wrta>,<wpl>%% -c <crta>,<cpl>%%\n\
-  [-p packets] [-t timeout] [-L] [-4|-6]\n", progname);
-       
-       printf (UT_HLP_VRS, progname, progname);
+                     [-p packets] [-t timeout] [-L] [-4|-6]\n", progname);
 }
index ee168db2578fca66de697d677834d0660c419fb3..7770ddada766922b5e3e7f5d1895da16c58eba15 100644 (file)
@@ -751,8 +751,6 @@ print_usage (void)
 {
        printf ("\
 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);
-       
-       printf (UT_HLP_VRS, progname, progname);
+          [-u user] [-r rss] [-z vsz] [-P %%cpu] [-a argument-array]\n\
+          [-C command] [-t timeout] [-v]\n", progname);
 }
index 54746144ee69fb8b6a0566bb6f26a53548baacb0..90653a27e9b5ed2d9728f1b1c33acbd9987d8b5b 100644 (file)
@@ -335,6 +335,5 @@ print_usage (void)
 {
        printf ("\
 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);
-       printf (UT_HLP_VRS, progname, progname);
+          [-t timeout] [-r retries] [-e expect]\n", progname);
 }
index 8df68d90c54ccc9cb73452082027ebd816347f7d..9fad2a8342505a156adcee8201bf659c351e7d6b 100644 (file)
@@ -438,7 +438,5 @@ print_usage (void)
 {
        printf ("\
 Usage: %s -H host [-e expect] [-p port] [-w warn] [-c crit]\n\
-  [-t timeout] [-v]\n", progname);
-       
-       printf (UT_HLP_VRS, progname, progname);
+          [-t timeout] [-v]\n", progname);
 }
index 748edfcaf9f2e3db12ada36d4b1671260dfb2a78..ac20853574067c2a48e7dd4d8f908422b8b92b01 100644 (file)
@@ -468,6 +468,5 @@ print_usage (void)
 {
        printf ("\
 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);
-       printf (UT_HLP_VRS, progname, progname);
+          [-w warn] [-c crit] [-t timeout] [-n] [-v] [-4|-6]\n", progname);
 }
index ca6d7a37b592327bd214cf393953dd404bb5e7dd..fa4f56c542547f942c0edaad56222bfb5d0c7b68 100644 (file)
@@ -950,11 +950,9 @@ print_usage (void)
 {
        printf ("\
 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);
-       
-       printf (UT_HLP_VRS, progname, 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);
 }
index d1ae46bb5897e3f5ee9d3098e8e6a28a7fedc56b..04916a5513cf1fae16deb3baa8863ff33f33a745 100644 (file)
@@ -289,7 +289,5 @@ print_usage (void)
 {
        printf ("\
 Usage: %s [-46] [-t <timeout>] [-r <remote version>] [-p <port>] <host>\n", progname);
-
-       printf (UT_HLP_VRS, progname, progname);
 }
 
index 6a448e106b07a93a48b65b61d5b78a4dde87fb2d..3a3ec35c7bd695e452c4a1df5e20e0db58ecc383 100644 (file)
@@ -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);
- printf (UT_HLP_VRS, progname, progname);
 }
index 405a76296f60849beac990f8c849536fe66f90dc..41feb97f5b44ed6ae651a71f25ea8945c3638441 100644 (file)
@@ -795,10 +795,8 @@ print_usage (void)
 {
        printf ("\
 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);
-       
-       printf (UT_HLP_VRS, progname, 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);
 }
index 94c33b6c9c24c6110312ba7bfd78159f7c998986..5d07f545a99268aa11845767a147dc93a2a7e4c0 100644 (file)
@@ -359,7 +359,5 @@ print_usage (void)
 {
        printf ("\
 Usage: %s -H <host_address> [-p port] [-u] [-w variance] [-c variance]\n\
-    [-W connect_time] [-C connect_time] [-t timeout]\n", progname);
-               
-       printf (_(UT_HLP_VRS), progname, progname);
+          [-W connect_time] [-C connect_time] [-t timeout]\n", progname);
 }
index 6551ed409ce2c6e0fce13d57a351ab2e5626b09b..ea91f417a25223dde3738763211fa8e78e9bdda6 100644 (file)
@@ -264,7 +264,5 @@ print_usage (void)
 {
        printf ("\
 Usage: %s -H <host_address> [-p port] [-w warn_time] [-c crit_time]\n\
-    [-e expect] [-s send] [-t to_sec] [-v]\n", progname);
-               
-       printf (UT_HLP_VRS, progname, progname);
+          [-e expect] [-s send] [-t to_sec] [-v]\n", progname);
 }
index ee373cbdbac33216d6db504e6ce057dd0941d654..23fb8d2ba0798ca186d6c60093a83cdf353178b4 100644 (file)
@@ -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)
 {
        printf ("\
 Usage: %s -H host -u ups [-p port] [-v variable]\n\
-  [-wv warn_value] [-cv crit_value] [-to to_sec] [-T]\n", progname);
-       printf (UT_HLP_VRS, progname, progname);
+          [-wv warn_value] [-cv crit_value] [-to to_sec] [-T]\n", progname);
 }
index 05ef86fdd8d6b8440f2faddc78dee593979d11b0..2c24623dc86143fa277d3c625bc361c8ebf8fe1e 100644 (file)
@@ -215,6 +215,4 @@ void
 print_usage (void)
 {
        printf ("Usage: %s -w <users> -c <users>\n", progname);
-       
-       printf (UT_HLP_VRS, progname, progname);
 }
index e03f7e682350bf856a45de86cef0fe72f1a35a70..74a9a9ddb88b806261e7248873526617c48a02ff 100644 (file)
@@ -239,11 +239,10 @@ print_help (void)
 {
        print_revision (progname, revision);
 
-       printf (_(COPYRIGHT), copyright, email);
+       printf (COPYRIGHT, copyright, email);
 
        printf (_("\
-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"));
 void
 print_usage (void)
 {
-       printf ("Usage: %s [-t timeout] <definition of wrapped plugin>\n",
-               progname);
-                                       
-       printf (UT_HLP_VRS, progname, progname);
+       printf ("Usage: %s [-t timeout] <definition of wrapped plugin>\n",progname);
 }
index e1d02ef867221515a4f6c92942d356b3f2e93b71..3564e4692f3351ffb82d01f1bd2f93a4addaf1c3 100644 (file)
@@ -163,6 +163,4 @@ void
 print_usage (void)
 {
        printf ("Usage:\n %s <url> <plugin> <arg1> ... <argN>\n", progname);
-       
-       printf (UT_HLP_VRS, progname, progname);
 }