summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5d420d6)
raw | patch | inline | side by side (parent: 5d420d6)
author | Benoit Mortier <opensides@users.sourceforge.net> | |
Fri, 3 Dec 2004 20:28:53 +0000 (20:28 +0000) | ||
committer | Benoit 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
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@994 f882894a-f735-0410-b71e-b25c423dba1c
35 files changed:
diff --git a/plugins/check_by_ssh.c b/plugins/check_by_ssh.c
index 7080c695b289fd9bca2c20a6f47c643d8f7cacab..cc2ec75b49039836cebc02497bd9f14f6b3c34be 100644 (file)
--- a/plugins/check_by_ssh.c
+++ b/plugins/check_by_ssh.c
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);
}
diff --git a/plugins/check_dig.c b/plugins/check_dig.c
index 823ea01cfe6625853cbf192c75efd41ddbd453be..5bed80d4a3bbd73cfe8218505a0f6c8476f2be36 100644 (file)
--- a/plugins/check_dig.c
+++ b/plugins/check_dig.c
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);
}
diff --git a/plugins/check_disk.c b/plugins/check_disk.c
index 70cd5480d1ff1b159858d8ddce881702fcf6c1bd..109420a110f632300aea146bfec0b768000a9f5e 100644 (file)
--- a/plugins/check_disk.c
+++ b/plugins/check_disk.c
{
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);
}
diff --git a/plugins/check_dns.c b/plugins/check_dns.c
index 579c51a871d0a73ddd092dd67b168590095a4ad8..492fa17629b8b5dffb3697313ef0640e209d4b58 100644 (file)
--- a/plugins/check_dns.c
+++ b/plugins/check_dns.c
{
printf ("\
Usage: %s -H host [-s server] [-a expected-address] [-A] [-t timeout]\n", progname);
-
- printf (UT_HLP_VRS, progname, progname);
}
diff --git a/plugins/check_dummy.c b/plugins/check_dummy.c
index c621b9f1da248f7dcb047f08b557ed9e3e9e6a60..e0c38d322f962026cc56e119823a58608874d381 100644 (file)
--- a/plugins/check_dummy.c
+++ b/plugins/check_dummy.c
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);
diff --git a/plugins/check_fping.c b/plugins/check_fping.c
index 3baf52f21f6c486b216ecc2241f1be32c301f61d..0b23f79e993cf1be22b41a6baddfbbccbe191123 100644 (file)
--- a/plugins/check_fping.c
+++ b/plugins/check_fping.c
print_usage (void)
{
printf ("Usage: %s <host_address>\n", progname);
- printf (UT_HLP_VRS, progname, progname);
}
diff --git a/plugins/check_game.c b/plugins/check_game.c
index a194ab258bd90ed598ee8c663ee1dd207ccff03f..9b13d94b5843db49dd14a50a352efb900fb4b813 100644 (file)
--- a/plugins/check_game.c
+++ b/plugins/check_game.c
-
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);
}
/******************************************************************************
diff --git a/plugins/check_hpjd.c b/plugins/check_hpjd.c
index b9b3f7f378df0ed375852245db2ad23f42518f72..816ce19bc8e4c9682831fe879ff1a322c0b431a1 100644 (file)
--- a/plugins/check_hpjd.c
+++ b/plugins/check_hpjd.c
{
printf (_("\
Usage: %s -H host [-C community]\n"), progname);
-
- printf (UT_HLP_VRS, progname, progname);
}
diff --git a/plugins/check_http.c b/plugins/check_http.c
index 125052fe325a05b178b19f9678bee5d49c5ef177..f33402684daf566935551556a7d93b108647fff7 100644 (file)
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
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)
Turn off automatic offline tests\n\
-n, --net-saint\n\
Output suitable for Net Saint\n", progname);
-
- printf (UT_HLP_VRS, progname, progname);
}
diff --git a/plugins/check_ldap.c b/plugins/check_ldap.c
index 80c0907afa0af6ef2656670aae8fd8ccebe0fde3..9664c0fb5c211cc10c22f9e23a547282b6647cd8 100644 (file)
--- a/plugins/check_ldap.c
+++ b/plugins/check_ldap.c
-
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]"
""
#endif
);
-
- printf (UT_HLP_VRS, progname, progname);
}
diff --git a/plugins/check_load.c b/plugins/check_load.c
index 2112d1cfd1eed12bc94e4283a7644ff00a9d64c9..d9833b6404ffc25f55202b65d9746fed2c60ce36 100644 (file)
--- a/plugins/check_load.c
+++ b/plugins/check_load.c
print_usage (void)
{
printf ("Usage: %s -w WLOAD1,WLOAD5,WLOAD15 -c CLOAD1,CLOAD5,CLOAD15\n", progname);
-
- printf (UT_HLP_VRS, progname, progname);
}
diff --git a/plugins/check_mrtg.c b/plugins/check_mrtg.c
index cc4714cf9533c7b0394311496807332a4195ad8f..5dfee7201ad968a1693296d453d031f049b7dad7 100644 (file)
--- a/plugins/check_mrtg.c
+++ b/plugins/check_mrtg.c
-
-
-\f
void
print_help (void)
{
-
/* original command line:
<log_file> <expire_minutes> <AVG|MAX> <variable> <vwl> <vcl> <label> [units] */
{
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)
--- a/plugins/check_mrtgtraf.c
+++ b/plugins/check_mrtgtraf.c
@@ -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);
}
diff --git a/plugins/check_mysql.c b/plugins/check_mysql.c
index 5863e1a764a5195a362ea55485e457f4bcfd53af..1061fabd6b1761fdb06d2d73259ef001835693cf 100644 (file)
--- a/plugins/check_mysql.c
+++ b/plugins/check_mysql.c
printf ("\
Usage: %s [-d database] [-H host] [-P port] [-u user] [-p password] [-S]\n",
progname);
- printf (UT_HLP_VRS, progname, progname);
}
diff --git a/plugins/check_nagios.c b/plugins/check_nagios.c
index 694c069c5cfdd895835a74ac9d435f1665c14c00..8a10c4a7844a3a4c71bbc6f6ac9ae7d640063738 100644 (file)
--- a/plugins/check_nagios.c
+++ b/plugins/check_nagios.c
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);
}
diff --git a/plugins/check_nt.c b/plugins/check_nt.c
index 2cc45cda5535e9317dde51a90f5615a6d8abbe7c..67c3017e1ec4492a4256b9653f9f2a7ed631fd92 100644 (file)
--- a/plugins/check_nt.c
+++ b/plugins/check_nt.c
{
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);
}
diff --git a/plugins/check_nwstat.c b/plugins/check_nwstat.c
index 98b06d90ecc71163a96f9f130874fd4b9a567d8d..b791640f5e1d849efb5a7949586fd69699ed0140 100644 (file)
--- a/plugins/check_nwstat.c
+++ b/plugins/check_nwstat.c
{
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);
}
diff --git a/plugins/check_overcr.c b/plugins/check_overcr.c
index ddaebdbd1ea1d61240cb7c8348b00a0f72636a1e..2ebf62e1e4f9c3b8d8a3e115792ce1e4c0e7a03f 100644 (file)
--- a/plugins/check_overcr.c
+++ b/plugins/check_overcr.c
-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)
{
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);
+}
diff --git a/plugins/check_pgsql.c b/plugins/check_pgsql.c
index f97ef66ce17db2ceb95b4c52e38d377869d10039..53f9e96caca7d26ce4dd5ac71ffeab03c8c942b0 100644 (file)
--- a/plugins/check_pgsql.c
+++ b/plugins/check_pgsql.c
{
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);
}
diff --git a/plugins/check_ping.c b/plugins/check_ping.c
index c04fb027287adfae2f04a0b281c186df99318f30..9fe71831684923d1fffa1816ce0c56c60a61eee3 100644 (file)
--- a/plugins/check_ping.c
+++ b/plugins/check_ping.c
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);
}
diff --git a/plugins/check_procs.c b/plugins/check_procs.c
index ee168db2578fca66de697d677834d0660c419fb3..7770ddada766922b5e3e7f5d1895da16c58eba15 100644 (file)
--- a/plugins/check_procs.c
+++ b/plugins/check_procs.c
{
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);
}
diff --git a/plugins/check_radius.c b/plugins/check_radius.c
index 54746144ee69fb8b6a0566bb6f26a53548baacb0..90653a27e9b5ed2d9728f1b1c33acbd9987d8b5b 100644 (file)
--- a/plugins/check_radius.c
+++ b/plugins/check_radius.c
{
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);
}
diff --git a/plugins/check_real.c b/plugins/check_real.c
index 8df68d90c54ccc9cb73452082027ebd816347f7d..9fad2a8342505a156adcee8201bf659c351e7d6b 100644 (file)
--- a/plugins/check_real.c
+++ b/plugins/check_real.c
{
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);
}
diff --git a/plugins/check_smtp.c b/plugins/check_smtp.c
index 748edfcaf9f2e3db12ada36d4b1671260dfb2a78..ac20853574067c2a48e7dd4d8f908422b8b92b01 100644 (file)
--- a/plugins/check_smtp.c
+++ b/plugins/check_smtp.c
{
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);
}
diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c
index ca6d7a37b592327bd214cf393953dd404bb5e7dd..fa4f56c542547f942c0edaad56222bfb5d0c7b68 100644 (file)
--- a/plugins/check_snmp.c
+++ b/plugins/check_snmp.c
{
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);
}
diff --git a/plugins/check_ssh.c b/plugins/check_ssh.c
index d1ae46bb5897e3f5ee9d3098e8e6a28a7fedc56b..04916a5513cf1fae16deb3baa8863ff33f33a745 100644 (file)
--- a/plugins/check_ssh.c
+++ b/plugins/check_ssh.c
{
printf ("\
Usage: %s [-46] [-t <timeout>] [-r <remote version>] [-p <port>] <host>\n", progname);
-
- printf (UT_HLP_VRS, progname, progname);
}
diff --git a/plugins/check_swap.c b/plugins/check_swap.c
index 6a448e106b07a93a48b65b61d5b78a4dde87fb2d..3a3ec35c7bd695e452c4a1df5e20e0db58ecc383 100644 (file)
--- a/plugins/check_swap.c
+++ b/plugins/check_swap.c
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);
}
diff --git a/plugins/check_tcp.c b/plugins/check_tcp.c
index 405a76296f60849beac990f8c849536fe66f90dc..41feb97f5b44ed6ae651a71f25ea8945c3638441 100644 (file)
--- a/plugins/check_tcp.c
+++ b/plugins/check_tcp.c
{
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);
}
diff --git a/plugins/check_time.c b/plugins/check_time.c
index 94c33b6c9c24c6110312ba7bfd78159f7c998986..5d07f545a99268aa11845767a147dc93a2a7e4c0 100644 (file)
--- a/plugins/check_time.c
+++ b/plugins/check_time.c
{
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);
}
diff --git a/plugins/check_udp.c b/plugins/check_udp.c
index 6551ed409ce2c6e0fce13d57a351ab2e5626b09b..ea91f417a25223dde3738763211fa8e78e9bdda6 100644 (file)
--- a/plugins/check_udp.c
+++ b/plugins/check_udp.c
{
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);
}
diff --git a/plugins/check_ups.c b/plugins/check_ups.c
index ee373cbdbac33216d6db504e6ce057dd0941d654..23fb8d2ba0798ca186d6c60093a83cdf353178b4 100644 (file)
--- a/plugins/check_ups.c
+++ b/plugins/check_ups.c
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"
{
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);
}
diff --git a/plugins/check_users.c b/plugins/check_users.c
index 05ef86fdd8d6b8440f2faddc78dee593979d11b0..2c24623dc86143fa277d3c625bc361c8ebf8fe1e 100644 (file)
--- a/plugins/check_users.c
+++ b/plugins/check_users.c
print_usage (void)
{
printf ("Usage: %s -w <users> -c <users>\n", progname);
-
- printf (UT_HLP_VRS, progname, progname);
}
diff --git a/plugins/negate.c b/plugins/negate.c
index e03f7e682350bf856a45de86cef0fe72f1a35a70..74a9a9ddb88b806261e7248873526617c48a02ff 100644 (file)
--- a/plugins/negate.c
+++ b/plugins/negate.c
{
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 ();
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);
}
diff --git a/plugins/urlize.c b/plugins/urlize.c
index e1d02ef867221515a4f6c92942d356b3f2e93b71..3564e4692f3351ffb82d01f1bd2f93a4addaf1c3 100644 (file)
--- a/plugins/urlize.c
+++ b/plugins/urlize.c
print_usage (void)
{
printf ("Usage:\n %s <url> <plugin> <arg1> ... <argN>\n", progname);
-
- printf (UT_HLP_VRS, progname, progname);
}