summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 83df670)
raw | patch | inline | side by side (parent: 83df670)
author | Benoit Mortier <opensides@users.sourceforge.net> | |
Fri, 3 Dec 2004 11:45:10 +0000 (11:45 +0000) | ||
committer | Benoit Mortier <opensides@users.sourceforge.net> | |
Fri, 3 Dec 2004 11:45:10 +0000 (11:45 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@989 f882894a-f735-0410-b71e-b25c423dba1c
18 files changed:
diff --git a/plugins/check_by_ssh.c b/plugins/check_by_ssh.c
index d9fe26e5298b394f1a82fba99a919c0028067e49..7080c695b289fd9bca2c20a6f47c643d8f7cacab 100644 (file)
--- a/plugins/check_by_ssh.c
+++ b/plugins/check_by_ssh.c
asprintf (&remotecmd, "%s;echo STATUS CODE: $?;", remotecmd);
if (remotecmd == NULL || strlen (remotecmd) <= 1)
- usage (_("No remotecmd\n"));
+ usage4 (_("No remotecmd"));
asprintf (&comm, "%s %s '%s'", comm, hostname, remotecmd);
void
print_usage (void)
{
- printf (_("\n\
+ 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"),
+ -C <command> [-n name] [-s servicelist] [-O outputfile] [-p port]\n",
progname);
+
printf (_(UT_HLP_VRS), progname, progname);
}
diff --git a/plugins/check_dig.c b/plugins/check_dig.c
index 32bf2c48dc1cf13da47dbcadd87ccb70337e17d7..823ea01cfe6625853cbf192c75efd41ddbd453be 100644 (file)
--- a/plugins/check_dig.c
+++ b/plugins/check_dig.c
void
print_usage (void)
{
- printf (_("\
+ printf ("\
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 (" %s (-h|--help)\n", progname);
- printf (" %s (-V|--version)\n", progname);
+ [-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 c7ea3441e3a1f3c48b264ebaf9fd1bf607fad893..70cd5480d1ff1b159858d8ddce881702fcf6c1bd 100644 (file)
--- a/plugins/check_disk.c
+++ b/plugins/check_disk.c
break;
}
else {
- usage (_("Warning threshold must be integer or percentage!\n"));
+ usage4 (_("Warning threshold must be integer or percentage!"));
}
case 'c': /* critical threshold */
if (is_intnonneg (optarg)) {
break;
}
else {
- usage (_("Critical threshold must be integer or percentage!\n"));
+ usage4 (_("Critical threshold must be integer or percentage!"));
}
case 'u':
if (units)
@@ -636,10 +636,9 @@ and generates an alert if free space is less than one of the threshold values.")
void
print_usage (void)
{
- printf (_("\
+ printf ("\
Usage: %s -w limit -c limit [-p path | -x device] [-t timeout] [-m] [-e]\n\
- [-v] [-q]\n\
- %s (-h|--help)\n\
- %s (-V|--version)\n"),
- progname, progname, progname);
+ [-v] [-q]\n", progname);
+
+ printf (UT_HLP_VRS, progname, progname);
}
diff --git a/plugins/check_dns.c b/plugins/check_dns.c
index 6dfb09f23403857ba6586caea39b1989f40c49e5..579c51a871d0a73ddd092dd67b168590095a4ad8 100644 (file)
--- a/plugins/check_dns.c
+++ b/plugins/check_dns.c
void
print_usage (void)
{
- printf (_("\
-Usage: %s -H host [-s server] [-a expected-address] [-A] [-t timeout]\n\
- %s --help\n\
- %s --version\n"), progname, progname, progname);
+ 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 6864d02d39ca3dee36a0d0032a7fe4da74c6aa26..c621b9f1da248f7dcb047f08b557ed9e3e9e6a60 100644 (file)
--- a/plugins/check_dummy.c
+++ b/plugins/check_dummy.c
textdomain (PACKAGE);
if (argc < 2)
- usage (_("Incorrect number of arguments supplied\n"));
+ usage4 (_("Incorrect number of arguments supplied"));
else if (strcmp (argv[1], "-V") == 0 || strcmp (argv[1], "--version") == 0) {
print_revision (progname, revision);
exit (STATE_OK);
exit (STATE_OK);
}
else if (!is_integer (argv[1]))
- usage (_("Arguments to check_dummy must be an integer\n"));
+ usage4 (_("Arguments to check_dummy must be an integer"));
else
result = atoi (argv[1]);
void
print_usage (void)
{
- printf (_("Usage: %s <integer state> [optional text]\n"), progname);
+ printf ("Usage: %s <integer state> [optional text]\n", progname);
}
diff --git a/plugins/check_fping.c b/plugins/check_fping.c
index 46d4bebceb307721536d15beb175d95027e4d03b..3baf52f21f6c486b216ecc2241f1be32c301f61d 100644 (file)
--- a/plugins/check_fping.c
+++ b/plugins/check_fping.c
void
print_usage (void)
{
- printf (_("Usage: %s <host_address>\n"), progname);
- printf (_(UT_HLP_VRS), progname, progname);
+ 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 ea08f9d93a31e820c2e07a0a5e4e81a072ed2178..a194ab258bd90ed598ee8c663ee1dd207ccff03f 100644 (file)
--- a/plugins/check_game.c
+++ b/plugins/check_game.c
void
print_usage (void)
{
- printf (_("\
+ 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);
+
+ printf (UT_HLP_VRS, progname, progname);
}
/******************************************************************************
diff --git a/plugins/check_hpjd.c b/plugins/check_hpjd.c
index 7ad950a4a9513e6313f89a4d3e63b79b876c0be3..b9b3f7f378df0ed375852245db2ad23f42518f72 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);
+
+ printf (UT_HLP_VRS, progname, progname);
}
diff --git a/plugins/check_http.c b/plugins/check_http.c
index f6cf5073cf727d9d4a171a502a509d75eb7e877f..125052fe325a05b178b19f9678bee5d49c5ef177 100644 (file)
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
[-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);
+
+ printf (UT_HLP_VRS, progname, progname);
}
index 6ceebe257a4dc58ab9a084ede5ba311def4bef96..aa74f98027bd54e3477872119877f05a742f990e 100644 (file)
show_help ()
{
printf (_("\
-Usage: check_ide-smart [DEVICE] [OPTION]\n\
+Usage: %s [DEVICE] [OPTION]\n\
-d, --device=DEVICE\n\
Select device DEVICE\n\
-i, --immediate\n\
-0, --auto-off\n\
Turn off automatic offline tests\n\
-n, --net-saint\n\
- Output suitable for Net Saint\n\
- -h, --help\n\
- -V, --version\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 c0b33a875fda341cd089ce06a6364a238de4a512..80c0907afa0af6ef2656670aae8fd8ccebe0fde3 100644 (file)
--- a/plugins/check_ldap.c
+++ b/plugins/check_ldap.c
void
print_usage (void)
{
- printf (_("\
+ 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"),
+(Note: all times are in seconds.)\n",
progname,
#ifdef HAVE_LDAP_SET_OPTION
" [-2|-3] [-4|-6]"
#endif
);
- printf (_(UT_HLP_VRS), progname, progname);
+ printf (UT_HLP_VRS, progname, progname);
}
diff --git a/plugins/check_load.c b/plugins/check_load.c
index 803467df5fb6787d5dce58df0bd094c19a67d749..00bfc8a6c083aa6bddc07e49ca0a26ab6b9f569e 100644 (file)
--- a/plugins/check_load.c
+++ b/plugins/check_load.c
void
print_usage (void)
{
- printf (_("Usage: %s -w WLOAD1,WLOAD5,WLOAD15 -c CLOAD1,CLOAD5,CLOAD15\n"),
+ printf ("Usage: %s -w WLOAD1,WLOAD5,WLOAD15 -c CLOAD1,CLOAD5,CLOAD15\n"),
progname);
- printf (_(UT_HLP_VRS), progname, progname);
+ printf (UT_HLP_VRS, progname, progname);
}
diff --git a/plugins/check_mrtg.c b/plugins/check_mrtg.c
index 7cf7d89732f06f9d47291366e446086447bf10cc..cc4714cf9533c7b0394311496807332a4195ad8f 100644 (file)
--- a/plugins/check_mrtg.c
+++ b/plugins/check_mrtg.c
void
print_usage (void)
{
- printf (_("\
+ 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);
+
+ printf (UT_HLP_VRS, progname, progname);
}
index f8d695527211ebd054a7fee8b7e5ebb610044426..69778e352ae9bc565e6eb7cca9b7773d74a29916 100644 (file)
--- a/plugins/check_mrtgtraf.c
+++ b/plugins/check_mrtgtraf.c
void
print_usage (void)
{
- printf (_("\
+ 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);
+
+ printf (UT_HLP_VRS, progname, progname);
}
diff --git a/plugins/check_mysql.c b/plugins/check_mysql.c
index 30dce9d3e4c59e12bc5f96bcef3b28b0199adebd..5863e1a764a5195a362ea55485e457f4bcfd53af 100644 (file)
--- a/plugins/check_mysql.c
+++ b/plugins/check_mysql.c
void
print_usage (void)
{
- printf (_("\
-Usage: %s [-d database] [-H host] [-P port] [-u user] [-p password] [-S]\n"),
+ printf ("\
+Usage: %s [-d database] [-H host] [-P port] [-u user] [-p password] [-S]\n",
progname);
- printf (_(UT_HLP_VRS), progname, progname);
+ printf (UT_HLP_VRS, progname, progname);
}
diff --git a/plugins/check_nagios.c b/plugins/check_nagios.c
index 7b312d3e98015518119694136d15b17b44dce2e9..694c069c5cfdd895835a74ac9d435f1665c14c00 100644 (file)
--- a/plugins/check_nagios.c
+++ b/plugins/check_nagios.c
void
print_usage (void)
{
- printf (_("\
-Usage: %s -F <status log file> -e <expire_minutes> -C <process_string>\n"),
+ printf ("\
+Usage: %s -F <status log file> -e <expire_minutes> -C <process_string>\n",
progname);
+
+ printf (UT_HLP_VRS, progname, progname);
}
diff --git a/plugins/check_nt.c b/plugins/check_nt.c
index f142675614b78f1731e87afe634ebc870102c187..2cc45cda5535e9317dde51a90f5615a6d8abbe7c 100644 (file)
--- a/plugins/check_nt.c
+++ b/plugins/check_nt.c
void print_help(void)
{
- print_revision(progname,"$Revision$");
+ print_revision(progname,revision);
printf (_("\
Copyright (c) 2000 Yves Rubin (rubiyz@yahoo.com)\n\n\
This plugin collects data from the NSClient service running on a\n\
void print_usage(void)
{
- printf(_("\
+ 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);
+
+ printf (UT_HLP_VRS, progname, progname);
}
diff --git a/plugins/check_nwstat.c b/plugins/check_nwstat.c
index 9c89ef9ec6b8db09f7b9c3f10ca30dfca914a685..98b06d90ecc71163a96f9f130874fd4b9a567d8d 100644 (file)
--- a/plugins/check_nwstat.c
+++ b/plugins/check_nwstat.c
void print_usage(void)
{
- printf (_("\
+ 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);
+
+ printf (UT_HLP_VRS, progname, progname);
}