summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 589d466)
raw | patch | inline | side by side (parent: 589d466)
author | Ton Voon <tonvoon@users.sourceforge.net> | |
Wed, 24 Nov 2004 00:46:40 +0000 (00:46 +0000) | ||
committer | Ton Voon <tonvoon@users.sourceforge.net> | |
Wed, 24 Nov 2004 00:46:40 +0000 (00:46 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@930 f882894a-f735-0410-b71e-b25c423dba1c
31 files changed:
diff --git a/plugins/check_by_ssh.c b/plugins/check_by_ssh.c
index 49794cc7c0552eeba1f565bee60dbffa7720cef9..9500cb3d464b74f2386579d695d2bad21c7f61f1 100644 (file)
--- a/plugins/check_by_ssh.c
+++ b/plugins/check_by_ssh.c
if (c <= argc) {
die (STATE_UNKNOWN, _("%s: You must provide a host name\n"), progname);
} else if (!is_host (argv[c]))
- die (STATE_UNKNOWN, _("%s: Invalid host name %s\n"), progname, argv[c]);
+ die (STATE_UNKNOWN, "%s: %s %s\n", progname, _("Invalid host name"), argv[c]);
hostname = argv[c++];
}
diff --git a/plugins/check_dig.c b/plugins/check_dig.c
index 41c445c59fa4eab10492b16d26a6de48f7df6dda..92a5eda89366d7e63b65a1b9472b150b2140cc85 100644 (file)
--- a/plugins/check_dig.c
+++ b/plugins/check_dig.c
print_revision (progname, revision);
- printf (_("Copyright (c) 2000 Karl DeBisschop <kdebisschop@users.sourceforge.net>\n"));
- printf (_(COPYRIGHT), copyright, email);
+ printf ("Copyright (c) 2000 Karl DeBisschop <kdebisschop@users.sourceforge.net>\n");
+ printf (COPYRIGHT, copyright, email);
printf (_("Test the DNS service on the specified host using dig\n\n"));
diff --git a/plugins/check_disk.c b/plugins/check_disk.c
index 87596199a6a8caffd01151965ec30d970bb2197c..d8da02d68bf1326dbed91d4f3bd8bcdffda74337 100644 (file)
--- a/plugins/check_disk.c
+++ b/plugins/check_disk.c
break;
}
else {
- usage (_("Timeout Interval must be an integer!\n"));
+ usage2 (_("Timeout interval must be a positive integer"), optarg);
}
case 'w': /* warning threshold */
if (is_intnonneg (optarg)) {
{
print_revision (progname, revision);
- printf (_("Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>\n"));
- printf (_(COPYRIGHT), copyright, email);
+ printf ("Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>\n");
+ printf (COPYRIGHT, copyright, email);
printf (_("\
This plugin checks the amount of used disk space on a mounted file system\n\
diff --git a/plugins/check_dns.c b/plugins/check_dns.c
index 39023f950b45e8db31d9c6b41a5925417d1d7b4e..7b18270f67d1083829e58132af6f923204df8580 100644 (file)
--- a/plugins/check_dns.c
+++ b/plugins/check_dns.c
case 'r': /* reverse server name */
/* TODO: Is this is_host necessary? */
if (is_host (optarg) == FALSE) {
- printf (_("Invalid host name/address\n\n"));
- print_usage ();
- exit (STATE_UNKNOWN);
+ usage2 (_("Invalid host name/address"), optarg);
}
if (strlen (optarg) >= ADDRESS_LENGTH)
die (STATE_UNKNOWN, _("Input buffer overflow\n"));
{
print_revision (progname, revision);
- printf (_("Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>\n"));
- printf (_(COPYRIGHT), copyright, email);
+ printf ("Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>\n");
+ printf (COPYRIGHT, copyright, email);
print_usage ();
diff --git a/plugins/check_dummy.c b/plugins/check_dummy.c
index a8eae1a8c4d1bc76c710725dd29c0f0a2c189cf1..7f50834989c5104f6e179969cc62e26d4630fdba 100644 (file)
--- a/plugins/check_dummy.c
+++ b/plugins/check_dummy.c
{
print_revision (progname, revision);
- printf (_("Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>\n"));
- printf (_(COPYRIGHT), copyright, email);
+ printf ("Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>\n");
+ printf (COPYRIGHT, copyright, email);
print_usage ();
diff --git a/plugins/check_fping.c b/plugins/check_fping.c
index 1a53677230147117e67ed943c8600cacdc121074..22f6b55d4f9591ee21a7a051552b30b3a31d9491 100644 (file)
--- a/plugins/check_fping.c
+++ b/plugins/check_fping.c
/* run the command */
child_process = spopen (command_line);
if (child_process == NULL) {
- printf (_("Unable to open pipe: %s\n"), command_line);
+ printf (_("Could not open pipe: %s\n"), command_line);
return STATE_UNKNOWN;
}
break;
case 'H': /* hostname */
if (is_host (optarg) == FALSE) {
- printf (_("Invalid host name/address\n\n"));
- print_usage ();
- exit (STATE_UNKNOWN);
+ usage2 (_("Invalid host name/address"), optarg);
}
server_name = strscpy (server_name, optarg);
break;
print_revision (progname, "$Revision$");
- printf (_("Copyright (c) 1999 Didi Rieder <adrieder@sbox.tu-graz.ac.at>\n"));
- printf (_(COPYRIGHT), copyright, email);
+ printf ("Copyright (c) 1999 Didi Rieder <adrieder@sbox.tu-graz.ac.at>\n");
+ printf (COPYRIGHT, copyright, email);
printf (_("\
This plugin will use the /bin/fping command (from saint) to ping the\n\
diff --git a/plugins/check_game.c b/plugins/check_game.c
index ac72873deb9f6fe6f8f4f3e375db3ae6f419a780..511e96179dcee83f379d74e2085bf0d40ffb78ee 100644 (file)
--- a/plugins/check_game.c
+++ b/plugins/check_game.c
printf (_("Incorrect arguments supplied\n"));
printf ("\n");
print_revision (progname, revision);
- printf (_("Copyright (c) 1999 Ian Cass, Knowledge Matters Limited\n"));
+ printf ("Copyright (c) 1999 Ian Cass, Knowledge Matters Limited\n");
printf (_("License: GPL\n"));
printf ("\n");
return STATE_UNKNOWN;
/* run the command */
fp = spopen (command_line);
if (fp == NULL) {
- printf (_("Error - Could not open pipe: %s\n"), command_line);
+ printf (_("Could not open pipe: %s\n"), command_line);
return STATE_UNKNOWN;
}
diff --git a/plugins/check_hpjd.c b/plugins/check_hpjd.c
index ec6bdf97820e68bbb24b116972de2f2aae944542..b124cceb82f153a13e65c8e17b195725e56b567c 100644 (file)
--- a/plugins/check_hpjd.c
+++ b/plugins/check_hpjd.c
address = strscpy(address, optarg) ;
}
else {
- usage (_("Invalid host name\n"));
+ usage2 (_("Invalid host name"), optarg);
}
break;
case 'C': /* community */
address = argv[c++];
}
else {
- usage (_("Invalid host name"));
+ usage2 (_("Invalid host name"), argv[c]);
}
}
{
print_revision (progname, revision);
- printf (_("Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>\n"));
- printf (_(COPYRIGHT), copyright, email);
+ printf ("Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>\n");
+ printf (COPYRIGHT, copyright, email);
printf (_("\
This plugin tests the STATUS of an HP printer with a JetDirect card.\n\
diff --git a/plugins/check_http.c b/plugins/check_http.c
index c48e97cd0977573369958b092355cf7e7d8f2bf6..0253f31250856aaba1453c2d8540229a69a7072f 100644 (file)
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
break;
case 't': /* timeout period */
if (!is_intnonneg (optarg))
- usage2 (_("timeout interval must be a non-negative integer"), optarg);
+ usage2 (_("Timeout interval must be a positive integer"), optarg);
else
socket_timeout = atoi (optarg);
break;
{
print_revision (progname, revision);
- printf (_("Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>\n"));
- printf (_(COPYRIGHT), copyright, email);
+ printf ("Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>\n");
+ printf (COPYRIGHT, copyright, email);
printf (_("\
This plugin tests the HTTP service on the specified host. It can test\n\
diff --git a/plugins/check_ldap.c b/plugins/check_ldap.c
index 207b98ed0b55f2d82334a3b1c3f09a0008b7f4ed..698741171976df80f472eddaae7f720ea3029ad8 100644 (file)
--- a/plugins/check_ldap.c
+++ b/plugins/check_ldap.c
exit (STATE_OK);
case 't': /* timeout period */
if (!is_intnonneg (optarg))
- usage2 (_("timeout interval must be a positive integer"), optarg);
+ usage2 (_("Timeout interval must be a positive integer"), optarg);
else
socket_timeout = atoi (optarg);
break;
print_revision (progname, revision);
- printf (_("Copyright (c) 1999 Didi Rieder (adrieder@sbox.tu-graz.ac.at)\n"));
- printf (_(COPYRIGHT), copyright, email);
+ printf ("Copyright (c) 1999 Didi Rieder (adrieder@sbox.tu-graz.ac.at)\n");
+ printf (COPYRIGHT, copyright, email);
print_usage ();
diff --git a/plugins/check_load.c b/plugins/check_load.c
index fc7e9496d8f3eabcf04bb1b2edb2c9e3484416e1..956f907770be06351e9fe95ec68dfca0d4b782f5 100644 (file)
--- a/plugins/check_load.c
+++ b/plugins/check_load.c
{
print_revision (progname, revision);
- printf (_("Copyright (c) 1999 Felipe Gustavo de Almeida <galmeida@linux.ime.usp.br>\n"));
- printf (_(COPYRIGHT), copyright, email);
+ printf ("Copyright (c) 1999 Felipe Gustavo de Almeida <galmeida@linux.ime.usp.br>\n");
+ printf (COPYRIGHT, copyright, email);
printf (_("This plugin tests the current system load average.\n\n"));
diff --git a/plugins/check_mrtg.c b/plugins/check_mrtg.c
index 15d50feac2f98ea187344752695cf245c6d99ae7..5532389c7ea2f659fed667f4eb9d7eb2720b8c3f 100644 (file)
--- a/plugins/check_mrtg.c
+++ b/plugins/check_mrtg.c
{
print_revision (progname, revision);
- printf (_("Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>\n"));
- printf (_(COPYRIGHT), copyright, email);
+ printf ("Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>\n");
+ printf (COPYRIGHT, copyright, email);
printf(_("\
This plugin will check either the average or maximum value of one of the\n\
index 6b323426ebee83c3eee22e7678ee33da5cd3eeb6..a5455b044787f6dc60137c917facddb64f9dae21 100644 (file)
--- a/plugins/check_mrtgtraf.c
+++ b/plugins/check_mrtgtraf.c
{
print_revision (progname, revision);
- printf (_("Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>\n"));
- printf (_(COPYRIGHT), copyright, email);
+ printf ("Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>\n");
+ printf (COPYRIGHT, copyright, email);
print_usage ();
diff --git a/plugins/check_mysql.c b/plugins/check_mysql.c
index dba43c5f4ddada1d187c98bbc8802e91ca0b4f5a..deac37fc848793d1669470a5a8181f154e74a683 100644 (file)
--- a/plugins/check_mysql.c
+++ b/plugins/check_mysql.c
db_host = optarg;
}
else {
- usage (_("Invalid host name\n"));
+ usage2 (_("Invalid host name"), optarg);
}
break;
case 'd': /* hostname */
db_host = argv[c++];
}
else {
- usage ("Invalid host name");
+ usage2 (_("Invalid host name"), optarg);
}
else if (strlen(db_user) == 0)
db_user = argv[c++];
diff --git a/plugins/check_nwstat.c b/plugins/check_nwstat.c
index dc8ce2104b6f7f76526117b5eb9847ac5e429847..765a4fb6578a1963f8ea8eba108947c55be3e8b4 100644 (file)
--- a/plugins/check_nwstat.c
+++ b/plugins/check_nwstat.c
print_revision (progname, revision);
- printf (_("Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>\n"));
- printf (_(COPYRIGHT), copyright, email);
+ printf ("Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>\n");
+ printf (COPYRIGHT, copyright, email);
printf (_("\
Usage: %s This plugin attempts to contact the MRTGEXT NLM running\n\
diff --git a/plugins/check_overcr.c b/plugins/check_overcr.c
index 581db50fa38cedd59020edf6f8a5ff236954ef0d..0b524ff728ebca1be434004ec8cf77cfb965cef3 100644 (file)
--- a/plugins/check_overcr.c
+++ b/plugins/check_overcr.c
print_revision (progname, revision);
- printf (_("Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>\n"));
- printf (_(COPYRIGHT), copyright, email);
+ printf ("Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>\n");
+ printf (COPYRIGHT, copyright, email);
printf (_("\
This plugin attempts to contact the Over-CR collector daemon running on the\n\
diff --git a/plugins/check_pgsql.c b/plugins/check_pgsql.c
index 22a5b8119a98ba63855e140c9cf9163bcb02daa9..07abd9c06f2d7f4e777f7a7157a1d96a2c814e47 100644 (file)
--- a/plugins/check_pgsql.c
+++ b/plugins/check_pgsql.c
exit (STATE_OK);
case 't': /* timeout period */
if (!is_integer (optarg))
- usage2 (_("Timeout Interval must be an integer"), optarg);
+ usage2 (_("Timeout interval must be a positive integer"), optarg);
else
timeout_interval = atoi (optarg);
break;
break;
case 'H': /* host */
if (!is_host (optarg))
- usage2 (_("You gave an invalid host name"), optarg);
+ usage2 (_("Invalid host name"), optarg);
else
pghost = optarg;
break;
diff --git a/plugins/check_ping.c b/plugins/check_ping.c
index 2d7e24d498bfa2400320d59a779076c65f8f2caa..074519d3695a5def75059c52f1da061413bdea11 100644 (file)
--- a/plugins/check_ping.c
+++ b/plugins/check_ping.c
if (addresses[0] == NULL) {
if (is_host (argv[c]) == FALSE) {
- printf (_("Invalid host name/address: %s\n\n"), argv[c]);
- return ERROR;
+ usage2 (_("Invalid host name/address"), argv[c]);
} else {
addresses[0] = argv[c++];
n_addresses++;
{
print_revision (progname, revision);
- printf (_("Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>"));
- printf (_(COPYRIGHT), copyright, email);
+ printf ("Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>");
+ printf (COPYRIGHT, copyright, email);
printf (_("Use ping to check connection statistics for a remote host.\n\n"));
diff --git a/plugins/check_procs.c b/plugins/check_procs.c
index 3eefdb442ce75d3bc9c5af86a506cf6dd5811067..d39bfa5467e0aa66eb8ac6964dd18f616338374c 100644 (file)
--- a/plugins/check_procs.c
+++ b/plugins/check_procs.c
exit (STATE_OK);
case 't': /* timeout period */
if (!is_integer (optarg))
- usage (_("Timeout Interval must be an integer!\n\n"));
+ usage2 (_("Timeout interval must be a positive integer"), optarg);
else
timeout_interval = atoi (optarg);
break;
{
print_revision (progname, revision);
- printf (_("Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>"));
- printf (_(COPYRIGHT), copyright, email);
+ printf ("Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>");
+ printf (COPYRIGHT, copyright, email);
printf(_("\
Checks all processes and generates WARNING or CRITICAL states if the specified\n\
diff --git a/plugins/check_radius.c b/plugins/check_radius.c
index ece17943205fd1d7a05c9430ed63643c426e7b2d..725cf9f8ad68ffeb8744d05dfe49e9e1ccdfdcd0 100644 (file)
--- a/plugins/check_radius.c
+++ b/plugins/check_radius.c
if (is_intpos (argv[4]))
timeout_interval = atoi (argv[4]);
else
- usage (_("Timeout interval must be a positive integer"));
+ usage2 (_("Timeout interval must be a positive integer"), optarg);
if (is_intpos (argv[5]))
retries = atoi (argv[5]);
else
break;
case 'H': /* hostname */
if (is_host (optarg) == FALSE) {
- printf (_("Invalid host name/address\n\n"));
- print_usage ();
- exit (STATE_UNKNOWN);
+ usage2 (_("Invalid host name/address"), optarg);
}
server = optarg;
break;
if (is_intpos (optarg))
timeout_interval = atoi (optarg);
else
- usage (_("Timeout interval must be a positive integer"));
+ usage2 (_("Timeout interval must be a positive integer"), optarg);
break;
}
}
print_revision (progname, revision);
- printf (_("Copyright (c) 1999 Robert August Vincent II\n"));
- printf (_(COPYRIGHT), copyright, email);
+ printf ("Copyright (c) 1999 Robert August Vincent II\n");
+ printf (COPYRIGHT, copyright, email);
printf(_("Tests to see if a radius server is accepting connections.\n\n"));
diff --git a/plugins/check_real.c b/plugins/check_real.c
index 7cd17eea34c7f962ef22cdbcbadc190dc8f7c228..755f6eb2ebc46609d8520eb5e4bb979d0eebe55d 100644 (file)
--- a/plugins/check_real.c
+++ b/plugins/check_real.c
else if (is_host (optarg))
server_address = optarg;
else
- usage (_("Invalid host name\n"));
+ usage2 (_("Invalid host name"), optarg);
break;
case 'e': /* string to expect in response header */
server_expect = optarg;
server_address = argv[c++];
}
else {
- usage (_("Invalid host name"));
+ usage2 (_("Invalid host name"), argv[c]);
}
}
print_revision (progname, "$Revision$");
- printf (_("Copyright (c) 1999 Pedro Leite <leite@cic.ua.pt>\n"));
- printf (_(COPYRIGHT), copyright, email);
+ printf ("Copyright (c) 1999 Pedro Leite <leite@cic.ua.pt>\n");
+ printf (COPYRIGHT, copyright, email);
printf (_("This plugin tests the REAL service on the specified host.\n\n"));
diff --git a/plugins/check_smtp.c b/plugins/check_smtp.c
index f6f347c40c83740d4995bf89410647226460db04..ae3f88b120f76d2d2442f436dd3be277ebd58266 100644 (file)
--- a/plugins/check_smtp.c
+++ b/plugins/check_smtp.c
server_address = optarg;
}
else {
- usage (_("Invalid host name\n"));
+ usage2 (_("Invalid host name"), optarg);
}
break;
case 'p': /* port */
if (is_host (argv[c]))
server_address = argv[c];
else
- usage (_("Invalid host name"));
+ usage2 (_("Invalid host name"), argv[c]);
}
else {
asprintf (&server_address, "127.0.0.1");
print_revision (progname, revision);
- printf (_("Copyright (c) 1999-2001 Ethan Galstad <nagios@nagios.org>\n"));
- printf (_(COPYRIGHT), copyright, email);
+ printf ("Copyright (c) 1999-2001 Ethan Galstad <nagios@nagios.org>\n");
+ printf (COPYRIGHT, copyright, email);
printf(_("\
This plugin will attempt to open an SMTP connection with the host.\n\n"));
diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c
index 907c1809cbcf9e10667742eeb09b1a71d1796e3a..11ea9559f1dd440e242183485b0e0de932388119 100644 (file)
--- a/plugins/check_snmp.c
+++ b/plugins/check_snmp.c
break;
case 't': /* timeout period */
if (!is_integer (optarg))
- usage2 (_("Timeout Interval must be an integer"), optarg);
+ usage2 (_("Timeout interval must be a positive integer"), optarg);
else
timeout_interval = atoi (optarg);
break;
diff --git a/plugins/check_ssh.c b/plugins/check_ssh.c
index 79e17017ba24755631d0891df01336fc81acd13c..6e0b0f17aef9c0c9debabe11355ff9fc52cdcdba 100644 (file)
--- a/plugins/check_ssh.c
+++ b/plugins/check_ssh.c
break;
case 't': /* timeout period */
if (!is_integer (optarg))
- usage (_("Timeout Interval must be an integer!\n\n"));
+ usage2 (_("Timeout interval must be a positive integer"), optarg);
else
socket_timeout = atoi (optarg);
break;
break;
case 'H': /* host */
if (is_host (optarg) == FALSE)
- usage ("Invalid hostname/address\n");
+ usage2 (_("Invalid host name/address"), optarg);
server_name = optarg;
break;
case 'p': /* port */
print_revision (progname, revision);
- printf (_("Copyright (c) 1999 Remi Paulmier <remi@sinfomic.fr>\n"));
- printf (_(COPYRIGHT), copyright, email);
+ printf ("Copyright (c) 1999 Remi Paulmier <remi@sinfomic.fr>\n");
+ printf (COPYRIGHT, copyright, email);
printf (_("Try to connect to SSH server at specified server and port\n\n"));
diff --git a/plugins/check_tcp.c b/plugins/check_tcp.c
index 126907f99c2627660a536889d141263d4fda4e33..b78bf34d388f9002be88f795278687a47ac7a523 100644 (file)
--- a/plugins/check_tcp.c
+++ b/plugins/check_tcp.c
break;
case 'H': /* hostname */
if (is_host (optarg) == FALSE)
- usage2 (_("invalid host name or address"), optarg);
+ usage2 (_("Invalid host name/address"), optarg);
server_address = optarg;
break;
case 'c': /* critical */
break;
case 't': /* timeout */
if (!is_intpos (optarg))
- usage (_("Timeout interval must be a positive integer\n"));
+ usage2 (_("Timeout interval must be a positive integer"), optarg);
else
socket_timeout = atoi (optarg);
break;
{
print_revision (progname, revision);
- printf (_("Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>\n"));
- printf (_(COPYRIGHT), copyright, email);
+ printf ("Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>\n");
+ printf (COPYRIGHT, copyright, email);
printf (_("This plugin tests %s connections with the specified host.\n\n"),
SERVICE);
diff --git a/plugins/check_time.c b/plugins/check_time.c
index 1f8b3bd870fada9df4116ec21dcb05f0f1698369..314b768369559fa8f02d158adbcf694cbcef3555 100644 (file)
--- a/plugins/check_time.c
+++ b/plugins/check_time.c
exit (STATE_OK);
case 'H': /* hostname */
if (is_host (optarg) == FALSE)
- usage (_("Invalid host name/address\n"));
+ usage2 (_("Invalid host name/address"), optarg);
server_address = optarg;
break;
case 'w': /* warning-variance */
break;
case 't': /* timeout */
if (!is_intnonneg (optarg))
- usage (_("Timeout interval must be a nonnegative integer\n"));
+ usage2 (_("Timeout interval must be a positive integer"), optarg);
else
socket_timeout = atoi (optarg);
break;
if (server_address == NULL) {
if (argc > c) {
if (is_host (argv[c]) == FALSE)
- usage (_("Invalid host name/address\n"));
+ usage2 (_("Invalid host name/address"), optarg);
server_address = argv[c];
}
else {
print_revision (progname, revision);
- printf (_("Copyright (c) 1999 Ethan Galstad\n"));
- printf (_(COPYRIGHT), copyright, email);
+ printf ("Copyright (c) 1999 Ethan Galstad\n");
+ printf (COPYRIGHT, copyright, email);
printf (_("\
This plugin will check the time on the specified host.\n\n"));
diff --git a/plugins/check_udp.c b/plugins/check_udp.c
index c4fbbf85d2bac812e9bcc5b165ee850abbcde8e3..05ade04e1d8fde2c1726020bc403aa91ac379942 100644 (file)
--- a/plugins/check_udp.c
+++ b/plugins/check_udp.c
break;
case 'H': /* hostname */
if (is_host (optarg) == FALSE)
- usage (_("Invalid host name/address\n"));
+ usage2 (_("Invalid host name/address"), optarg);
server_address = optarg;
break;
case 'c': /* critical */
break;
case 't': /* timeout */
if (!is_intnonneg (optarg))
- usage (_("Timeout interval must be a nonnegative integer\n"));
+ usage2 (_("Timeout interval must be a positive integer"), optarg);
else
socket_timeout = atoi (optarg);
break;
c = optind;
if (server_address == NULL && c < argc && argv[c]) {
if (is_host (argv[c]) == FALSE)
- usage (_("Invalid host name/address\n"));
+ usage2 (_("Invalid host name/address"), optarg);
server_address = argv[c++];
}
{
print_revision (progname, revision);
- printf (_("Copyright (c) 1999 Ethan Galstad\n"));
- printf (_(COPYRIGHT), copyright, email);
+ printf ("Copyright (c) 1999 Ethan Galstad\n");
+ printf (COPYRIGHT, copyright, email);
printf (_("\
This plugin tests an UDP connection with the specified host.\n\n"));
diff --git a/plugins/check_ups.c b/plugins/check_ups.c
index f88e9e9f5c002f1407314319ee1040c5c4a1fc2d..33cba7708cf5f95693ea528c018ce47e09728c98 100644 (file)
--- a/plugins/check_ups.c
+++ b/plugins/check_ups.c
server_address = optarg;
}
else {
- usage2 ("Invalid host name", optarg);
+ usage2 (_("Invalid host name"), optarg);
}
break;
case 'u': /* ups name */
if (is_host (argv[optind]))
server_address = argv[optind++];
else
- usage ("Invalid host name");
+ usage2 (_("Invalid host name"), optarg);
}
if (server_address == NULL)
print_revision (progname, revision);
- printf (_("Copyright (c) 2000 Tom Shields"));
- printf (_(COPYRIGHT), copyright, email);
+ printf ("Copyright (c) 2000 Tom Shields");
+ printf (COPYRIGHT, copyright, email);
printf (_("This plugin tests the UPS service on the specified host.\n\
Network UPS Tools from www.exploits.org must be running for this plugin to\n\
diff --git a/plugins/check_users.c b/plugins/check_users.c
index e0a71845fec857f585d5f85c1b7962243b6c786c..377a11a692730cb94879807c90c5eb94802df2fc 100644 (file)
--- a/plugins/check_users.c
+++ b/plugins/check_users.c
{
print_revision (progname, revision);
- printf (_("Copyright (c) 1999 Ethan Galstad\n"));
- printf (_(COPYRIGHT), copyright, email);
+ printf ("Copyright (c) 1999 Ethan Galstad\n");
+ printf (COPYRIGHT, copyright, email);
printf (_("\
This plugin checks the number of users currently logged in on the local\n\
diff --git a/plugins/negate.c b/plugins/negate.c
index 3dd3411fceb5d0ffc7e80771ce0fccee00f7b675..a71f1b67147516fbfd97a4c06484ce578c8a7d7c 100644 (file)
--- a/plugins/negate.c
+++ b/plugins/negate.c
exit (EXIT_SUCCESS);
case 't': /* timeout period */
if (!is_integer (optarg))
- usage2 (_("Timeout Interval must be an integer"), optarg);
+ usage2 (_("Timeout interval must be a positive integer"), optarg);
else
timeout_interval = atoi (optarg);
break;
diff --git a/plugins/urlize.c b/plugins/urlize.c
index 141cc84a7aa30444580682b4cf494e10fb705e4d..337a91f25e86709ec202555236c3b479ad81c7c7 100644 (file)
--- a/plugins/urlize.c
+++ b/plugins/urlize.c
{
print_revision (progname, revision);
- printf (_("Copyright (c) 2000 Karl DeBisschop <kdebisschop@users.sourceforge.net>\n"));
- printf (_(COPYRIGHT), copyright, email);
+ printf ("Copyright (c) 2000 Karl DeBisschop <kdebisschop@users.sourceforge.net>\n");
+ printf (COPYRIGHT, copyright, email);
printf (_("\n\
This plugin wraps the text output of another command (plugin) in HTML\n\