mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-04-15 22:00:06 -04:00
internationalization fixes
bugfixes git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1001 f882894a-f735-0410-b71e-b25c423dba1c
This commit is contained in:
parent
7e2e599660
commit
81bee45f6e
16 changed files with 42 additions and 39 deletions
|
|
@ -21,7 +21,7 @@ check_tcp_programs = check_ftp check_imap check_nntp check_pop check_udp2 \
|
|||
|
||||
EXTRA_PROGRAMS = check_mysql check_radius check_pgsql check_snmp check_hpjd \
|
||||
check_swap check_fping check_ldap check_game check_dig \
|
||||
check_nagios check_by_ssh check_dns check_nt check_ide-smart check_procs
|
||||
check_nagios check_by_ssh check_dns check_nt check_ide_smart check_procs
|
||||
|
||||
EXTRA_DIST = t utils.c netutils.c popen.c utils.h netutils.h popen.h common.h \
|
||||
getaddrinfo.c getaddrinfo.h gethostbyname.c gethostbyname.h
|
||||
|
|
@ -76,6 +76,7 @@ check_udp_LDADD = $(NETLIBS)
|
|||
check_ups_LDADD = $(NETLIBS)
|
||||
check_users_LDADD = $(BASEOBJS) popen.o
|
||||
check_by_ssh_LDADD = $(NETLIBS) popen.o
|
||||
check_ide_smart_LDADD = $(BASEOBJS)
|
||||
negate_LDADD = $(BASEOBJS) popen.o
|
||||
urlize_LDADD = $(BASEOBJS) popen.o
|
||||
|
||||
|
|
@ -111,6 +112,7 @@ check_udp_DEPENDENCIES = check_udp.c $(NETOBJS) $(DEPLIBS)
|
|||
check_ups_DEPENDENCIES = check_ups.c $(NETOBJS) $(DEPLIBS)
|
||||
check_users_DEPENDENCIES = check_users.c $(BASEOBJS) popen.o $(DEPLIBS)
|
||||
check_by_ssh_DEPENDENCIES = check_by_ssh.c $(NETOBJS) popen.o $(DEPLIBS)
|
||||
check_ide_smart_DEPENDENCIES = check_ide_smart.c $(BASEOBJS) $(DEPLIBS)
|
||||
negate_DEPENDENCIES = negate.c $(BASEOBJS) popen.o $(DEPLIBS)
|
||||
urlize_DEPENDENCIES = urlize.c $(BASEOBJS) popen.o $(DEPLIBS)
|
||||
check_icmp_DEPENDENCIES = check_icmp.c $(DEPLIBS)
|
||||
|
|
|
|||
|
|
@ -411,5 +411,5 @@ print_usage (void)
|
|||
{
|
||||
printf ("\n\
|
||||
Usage: %s [-f46] [-t timeout] [-i identity] [-l user] -H <host> -C <command>\n\
|
||||
[-n name] [-s servicelist] [-O outputfile] [-p port]\n", progname);
|
||||
[-n name] [-s servicelist] [-O outputfile] [-p port]\n", progname);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -355,6 +355,6 @@ print_usage (void)
|
|||
{
|
||||
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);
|
||||
[-w <warning interval>] [-c <critical interval>] [-t <timeout>]\n\
|
||||
[-a <expected answer address>] [-v]\n", progname);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1496,5 +1496,5 @@ Usage: %s -H <vhost> | -I <IP-address>) [-u <uri>] [-p <port>]\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>]\n\
|
||||
[-A string] [-k string]\n"), progname);
|
||||
[-A string] [-k string]\n"), progname);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -378,5 +378,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]\n\
|
||||
[-v]\n", progname);
|
||||
[-v]\n", progname);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -688,5 +688,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,5 +989,5 @@ void print_usage(void)
|
|||
{
|
||||
printf ("\
|
||||
Usage: %s -H host [-p port] [-v variable] [-w warning] [-c critical]\n\
|
||||
[-t timeout].\n", progname);
|
||||
[-t timeout].\n", progname);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -465,5 +465,5 @@ print_usage (void)
|
|||
{
|
||||
printf ("\
|
||||
Usage: %s -H host [-p port] [-v variable] [-w warning] [-c critical]\n\
|
||||
[-t timeout]\n", progname);
|
||||
[-t timeout]\n", progname);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -312,7 +312,7 @@ process_arguments (int argc, char **argv)
|
|||
server_port = atoi (optarg);
|
||||
}
|
||||
else {
|
||||
usage (_("Port must be a positive integer\n"));
|
||||
usage4 (_("Port must be a positive integer"));
|
||||
}
|
||||
break;
|
||||
case 'w': /* warning time threshold */
|
||||
|
|
@ -321,7 +321,7 @@ process_arguments (int argc, char **argv)
|
|||
check_warning_time = TRUE;
|
||||
}
|
||||
else {
|
||||
usage (_("Warning time must be a positive integer\n"));
|
||||
usage4 (_("Warning time must be a positive integer"));
|
||||
}
|
||||
break;
|
||||
case 'c': /* critical time threshold */
|
||||
|
|
@ -330,7 +330,7 @@ process_arguments (int argc, char **argv)
|
|||
check_critical_time = TRUE;
|
||||
}
|
||||
else {
|
||||
usage (_("Critical time must be a nonnegative integer\n"));
|
||||
usage4 (_("Critical time must be a nonnegative integer"));
|
||||
}
|
||||
break;
|
||||
case 'v': /* verbose */
|
||||
|
|
@ -341,7 +341,7 @@ process_arguments (int argc, char **argv)
|
|||
socket_timeout = atoi (optarg);
|
||||
}
|
||||
else {
|
||||
usage (_("Time interval must be a nonnegative integer\n"));
|
||||
usage4 (_("Time interval must be a nonnegative integer"));
|
||||
}
|
||||
break;
|
||||
case 'V': /* version */
|
||||
|
|
|
|||
|
|
@ -295,7 +295,7 @@ process_arguments (int argc, char **argv)
|
|||
if (is_intpos (optarg))
|
||||
server_port = atoi (optarg);
|
||||
else
|
||||
usage (_("Port must be a positive integer\n"));
|
||||
usage4 (_("Port must be a positive integer"));
|
||||
break;
|
||||
case 'f': /* from argument */
|
||||
from_arg = optarg;
|
||||
|
|
@ -330,7 +330,7 @@ process_arguments (int argc, char **argv)
|
|||
check_critical_time = TRUE;
|
||||
}
|
||||
else {
|
||||
usage (_("Critical time must be a positive integer\n"));
|
||||
usage4 (_("Critical time must be a positive integer"));
|
||||
}
|
||||
break;
|
||||
case 'w': /* warning time threshold */
|
||||
|
|
@ -339,7 +339,7 @@ process_arguments (int argc, char **argv)
|
|||
check_warning_time = TRUE;
|
||||
}
|
||||
else {
|
||||
usage (_("Warning time must be a positive integer\n"));
|
||||
usage4 (_("Warning time must be a positive integer"));
|
||||
}
|
||||
break;
|
||||
case 'v': /* verbose */
|
||||
|
|
@ -350,7 +350,7 @@ process_arguments (int argc, char **argv)
|
|||
socket_timeout = atoi (optarg);
|
||||
}
|
||||
else {
|
||||
usage (_("Time interval must be a positive integer\n"));
|
||||
usage4 (_("Time interval must be a positive integer"));
|
||||
}
|
||||
break;
|
||||
case '4':
|
||||
|
|
@ -360,7 +360,7 @@ process_arguments (int argc, char **argv)
|
|||
#ifdef USE_IPV6
|
||||
address_family = AF_INET6;
|
||||
#else
|
||||
usage (_("IPv6 support not available\n"));
|
||||
usage4 (_("IPv6 support not available"));
|
||||
#endif
|
||||
break;
|
||||
case 'V': /* version */
|
||||
|
|
|
|||
|
|
@ -515,6 +515,6 @@ void
|
|||
print_usage (void)
|
||||
{
|
||||
printf ("\
|
||||
Usage: %s [-av] -w <percent_free>%% -c <percent_free>%%\n\
|
||||
%s [-av] -w <bytes_free> -c <bytes_free>\n", progname, progname);
|
||||
Usage: %s [-av] -w <percent_free>%% -c <percent_free>%%\n\
|
||||
%s [-av] -w <bytes_free> -c <bytes_free>\n", progname, progname);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -474,7 +474,7 @@ process_arguments (int argc, char **argv)
|
|||
#ifdef USE_IPV6
|
||||
address_family = AF_INET6;
|
||||
#else
|
||||
usage (_("IPv6 support not available\n"));
|
||||
usage4 (_("IPv6 support not available"));
|
||||
#endif
|
||||
break;
|
||||
case 'H': /* hostname */
|
||||
|
|
@ -484,7 +484,7 @@ process_arguments (int argc, char **argv)
|
|||
break;
|
||||
case 'c': /* critical */
|
||||
if (!is_intnonneg (optarg))
|
||||
usage (_("Critical threshold must be a positive integer\n"));
|
||||
usage4 (_("Critical threshold must be a positive integer"));
|
||||
else
|
||||
critical_time = strtod (optarg, NULL);
|
||||
check_critical_time = TRUE;
|
||||
|
|
@ -494,7 +494,7 @@ process_arguments (int argc, char **argv)
|
|||
break;
|
||||
case 'w': /* warning */
|
||||
if (!is_intnonneg (optarg))
|
||||
usage (_("Warning threshold must be a positive integer\n"));
|
||||
usage4 (_("Warning threshold must be a positive integer"));
|
||||
else
|
||||
warning_time = strtod (optarg, NULL);
|
||||
check_warning_time = TRUE;
|
||||
|
|
@ -509,13 +509,13 @@ process_arguments (int argc, char **argv)
|
|||
break;
|
||||
case 't': /* timeout */
|
||||
if (!is_intpos (optarg))
|
||||
usage (_("Timeout interval must be a positive integer\n"));
|
||||
usage4 (_("Timeout interval must be a positive integer"));
|
||||
else
|
||||
socket_timeout = atoi (optarg);
|
||||
break;
|
||||
case 'p': /* port */
|
||||
if (!is_intpos (optarg))
|
||||
usage (_("Port must be a positive integer\n"));
|
||||
usage4 (_("Port must be a positive integer"));
|
||||
else
|
||||
server_port = atoi (optarg);
|
||||
break;
|
||||
|
|
@ -532,7 +532,7 @@ process_arguments (int argc, char **argv)
|
|||
break;
|
||||
case 'm':
|
||||
if (!is_intpos (optarg))
|
||||
usage (_("Maxbytes must be a positive integer\n"));
|
||||
usage4 (_("Maxbytes must be a positive integer"));
|
||||
else
|
||||
maxbytes = atoi (optarg);
|
||||
case 'q':
|
||||
|
|
@ -546,13 +546,13 @@ process_arguments (int argc, char **argv)
|
|||
else if (!strncmp(optarg,"crit",4))
|
||||
econn_refuse_state = STATE_CRITICAL;
|
||||
else
|
||||
usage (_("Refuse must be one of ok, warn, crit\n"));
|
||||
usage4 (_("Refuse must be one of ok, warn, crit"));
|
||||
break;
|
||||
case 'd':
|
||||
if (is_intpos (optarg))
|
||||
delay = atoi (optarg);
|
||||
else
|
||||
usage (_("Delay must be a positive integer\n"));
|
||||
usage4 (_("Delay must be a positive integer"));
|
||||
break;
|
||||
case 'D': /* Check SSL cert validity - days 'til certificate expiration */
|
||||
#ifdef HAVE_SSL
|
||||
|
|
|
|||
|
|
@ -241,11 +241,11 @@ process_arguments (int argc, char **argv)
|
|||
check_warning_time = TRUE;
|
||||
}
|
||||
else {
|
||||
usage (_("Warning thresholds must be a positive integer\n"));
|
||||
usage4 (_("Warning thresholds must be a positive integer"));
|
||||
}
|
||||
}
|
||||
else {
|
||||
usage (_("Warning threshold must be a positive integer\n"));
|
||||
usage4 (_("Warning threshold must be a positive integer"));
|
||||
}
|
||||
break;
|
||||
case 'c': /* critical-variance */
|
||||
|
|
@ -260,30 +260,30 @@ process_arguments (int argc, char **argv)
|
|||
check_critical_time = TRUE;
|
||||
}
|
||||
else {
|
||||
usage (_("Critical thresholds must be a positive integer\n"));
|
||||
usage4 (_("Critical thresholds must be a positive integer"));
|
||||
}
|
||||
}
|
||||
else {
|
||||
usage (_("Critical threshold must be a positive integer\n"));
|
||||
usage4 (_("Critical threshold must be a positive integer"));
|
||||
}
|
||||
break;
|
||||
case 'W': /* warning-connect */
|
||||
if (!is_intnonneg (optarg))
|
||||
usage (_("Warning threshold must be a positive integer\n"));
|
||||
usage4 (_("Warning threshold must be a positive integer"));
|
||||
else
|
||||
warning_time = atoi (optarg);
|
||||
check_warning_time = TRUE;
|
||||
break;
|
||||
case 'C': /* critical-connect */
|
||||
if (!is_intnonneg (optarg))
|
||||
usage (_("Critical threshold must be a positive integer\n"));
|
||||
usage4 (_("Critical threshold must be a positive integer"));
|
||||
else
|
||||
critical_time = atoi (optarg);
|
||||
check_critical_time = TRUE;
|
||||
break;
|
||||
case 'p': /* port */
|
||||
if (!is_intnonneg (optarg))
|
||||
usage (_("Port must be a positive integer\n"));
|
||||
usage4 (_("Port must be a positive integer"));
|
||||
else
|
||||
server_port = atoi (optarg);
|
||||
break;
|
||||
|
|
@ -306,7 +306,7 @@ process_arguments (int argc, char **argv)
|
|||
server_address = argv[c];
|
||||
}
|
||||
else {
|
||||
usage (_("Hostname was not supplied\n"));
|
||||
usage4 (_("Hostname was not supplied"));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -165,14 +165,14 @@ process_arguments (int argc, char **argv)
|
|||
break;
|
||||
case 'c': /* critical */
|
||||
if (!is_intnonneg (optarg))
|
||||
usage (_("Critical threshold must be a positive integer\n"));
|
||||
usage4 (_("Critical threshold must be a positive integer"));
|
||||
else
|
||||
critical_time = atoi (optarg);
|
||||
check_critical_time = TRUE;
|
||||
break;
|
||||
case 'w': /* warning */
|
||||
if (!is_intnonneg (optarg))
|
||||
usage (_("Warning threshold must be a positive integer\n"));
|
||||
usage4 (_("Warning threshold must be a positive integer"));
|
||||
else
|
||||
warning_time = atoi (optarg);
|
||||
check_warning_time = TRUE;
|
||||
|
|
@ -185,7 +185,7 @@ process_arguments (int argc, char **argv)
|
|||
break;
|
||||
case 'p': /* port */
|
||||
if (!is_intnonneg (optarg))
|
||||
usage (_("Port must be a positive integer\n"));
|
||||
usage4 (_("Port must be a positive integer"));
|
||||
else
|
||||
server_port = atoi (optarg);
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -31,6 +31,7 @@ plugins/check_time.c
|
|||
plugins/check_udp.c
|
||||
plugins/check_ups.c
|
||||
plugins/check_users.c
|
||||
plugins/check_ide_smart.c
|
||||
plugins/getaddrinfo.c
|
||||
plugins/gethostbyname.c
|
||||
plugins/negate.c
|
||||
|
|
|
|||
Loading…
Reference in a new issue