aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/Makefile.am4
-rw-r--r--plugins/check_by_ssh.c2
-rw-r--r--plugins/check_dig.c4
-rw-r--r--plugins/check_http.c2
-rw-r--r--plugins/check_ide_smart.c (renamed from plugins/check_ide-smart.c)0
-rw-r--r--plugins/check_mrtg.c2
-rw-r--r--plugins/check_nt.c2
-rw-r--r--plugins/check_nwstat.c2
-rw-r--r--plugins/check_overcr.c2
-rw-r--r--plugins/check_real.c8
-rw-r--r--plugins/check_smtp.c10
-rw-r--r--plugins/check_swap.c4
-rw-r--r--plugins/check_tcp.c16
-rw-r--r--plugins/check_time.c16
-rw-r--r--plugins/check_udp.c6
-rw-r--r--po/POTFILES.in1
16 files changed, 42 insertions, 39 deletions
diff --git a/plugins/Makefile.am b/plugins/Makefile.am
index feccd005..b87154d0 100644
--- a/plugins/Makefile.am
+++ b/plugins/Makefile.am
@@ -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)
diff --git a/plugins/check_by_ssh.c b/plugins/check_by_ssh.c
index 6d0f4c2c..d34b2678 100644
--- a/plugins/check_by_ssh.c
+++ b/plugins/check_by_ssh.c
@@ -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);
}
diff --git a/plugins/check_dig.c b/plugins/check_dig.c
index 39071868..a44d5786 100644
--- a/plugins/check_dig.c
+++ b/plugins/check_dig.c
@@ -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);
}
diff --git a/plugins/check_http.c b/plugins/check_http.c
index c0b18fc8..6f8ad9a4 100644
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
@@ -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);
}
diff --git a/plugins/check_ide-smart.c b/plugins/check_ide_smart.c
index 1c0af310..1c0af310 100644
--- a/plugins/check_ide-smart.c
+++ b/plugins/check_ide_smart.c
diff --git a/plugins/check_mrtg.c b/plugins/check_mrtg.c
index f895321f..bd37aeff 100644
--- a/plugins/check_mrtg.c
+++ b/plugins/check_mrtg.c
@@ -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);
}
diff --git a/plugins/check_nt.c b/plugins/check_nt.c
index 03a7c5d6..e52b5a21 100644
--- a/plugins/check_nt.c
+++ b/plugins/check_nt.c
@@ -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);
}
diff --git a/plugins/check_nwstat.c b/plugins/check_nwstat.c
index 53e3f1d7..d8913bce 100644
--- a/plugins/check_nwstat.c
+++ b/plugins/check_nwstat.c
@@ -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);
}
diff --git a/plugins/check_overcr.c b/plugins/check_overcr.c
index 756402bd..9bf40d3c 100644
--- a/plugins/check_overcr.c
+++ b/plugins/check_overcr.c
@@ -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);
}
diff --git a/plugins/check_real.c b/plugins/check_real.c
index 492848c7..30424656 100644
--- a/plugins/check_real.c
+++ b/plugins/check_real.c
@@ -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 */
diff --git a/plugins/check_smtp.c b/plugins/check_smtp.c
index f12b69e9..ab1b9507 100644
--- a/plugins/check_smtp.c
+++ b/plugins/check_smtp.c
@@ -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 */
diff --git a/plugins/check_swap.c b/plugins/check_swap.c
index ba353bc0..3067f85c 100644
--- a/plugins/check_swap.c
+++ b/plugins/check_swap.c
@@ -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);
}
diff --git a/plugins/check_tcp.c b/plugins/check_tcp.c
index 418438a3..ce57631a 100644
--- a/plugins/check_tcp.c
+++ b/plugins/check_tcp.c
@@ -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
diff --git a/plugins/check_time.c b/plugins/check_time.c
index dae2dd5a..63d7ee25 100644
--- a/plugins/check_time.c
+++ b/plugins/check_time.c
@@ -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"));
}
}
diff --git a/plugins/check_udp.c b/plugins/check_udp.c
index aa8be1c2..b79f31f7 100644
--- a/plugins/check_udp.c
+++ b/plugins/check_udp.c
@@ -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;
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 993bd900..51a84c76 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -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