aboutsummaryrefslogtreecommitdiff
path: root/plugins/check_dig.c
diff options
context:
space:
mode:
authorGravatar Benoit Mortier <opensides@users.sourceforge.net> 2004-12-01 19:33:45 +0000
committerGravatar Benoit Mortier <opensides@users.sourceforge.net> 2004-12-01 19:33:45 +0000
commit54c21eba62b55503dbe6fda607ccbef4a27a1f14 (patch)
treefd28942d1170f607e5e9979e0b0cdcef5240c88f /plugins/check_dig.c
parent5dc0b02ccc2b549d5ee7c8c7249723af9bd1cb74 (diff)
downloadmonitoring-plugins-54c21eba62b55503dbe6fda607ccbef4a27a1f14.tar.gz
first pass at standardization of messages for the localization
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@962 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_dig.c')
-rw-r--r--plugins/check_dig.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/plugins/check_dig.c b/plugins/check_dig.c
index 92a5eda8..5b472eca 100644
--- a/plugins/check_dig.c
+++ b/plugins/check_dig.c
@@ -151,7 +151,7 @@ main (int argc, char **argv)
if (spclose (child_process)) {
result = max_state (result, STATE_WARNING);
if (strlen (output) == 0)
- asprintf (&output, _("dig returned error status"));
+ asprintf (&output, _("dig returned an error status"));
}
microsec = deltime (tv);
@@ -183,7 +183,6 @@ main (int argc, char **argv)
-
/* process command-line arguments */
int
process_arguments (int argc, char **argv)
@@ -228,7 +227,7 @@ process_arguments (int argc, char **argv)
dns_server = optarg;
}
else {
- usage2 (_("Invalid host name"), optarg);
+ usage2 (_("Invalid hostname/adress"), optarg);
}
break;
case 'p': /* server port */
@@ -236,7 +235,7 @@ process_arguments (int argc, char **argv)
server_port = atoi (optarg);
}
else {
- usage2 (_("Server port must be a nonnegative integer"), optarg);
+ usage2 (_("port must be a positive integer"), optarg);
}
break;
case 'l': /* address to lookup */
@@ -247,7 +246,7 @@ process_arguments (int argc, char **argv)
warning_interval = strtod (optarg, NULL);
}
else {
- usage2 (_("Warning interval must be a nonnegative integer"), optarg);
+ usage2 (_("Warning interval must be a positive integer"), optarg);
}
break;
case 'c': /* critical */
@@ -255,7 +254,7 @@ process_arguments (int argc, char **argv)
critical_interval = strtod (optarg, NULL);
}
else {
- usage2 (_("Critical interval must be a nonnegative integer"), optarg);
+ usage2 (_("Critical interval must be a positive integer"), optarg);
}
break;
case 't': /* timeout */
@@ -263,7 +262,7 @@ process_arguments (int argc, char **argv)
timeout_interval = atoi (optarg);
}
else {
- usage2 (_("Time interval must be a nonnegative integer"), optarg);
+ usage2 (_("Timeout interval must be a positive integer"), optarg);
}
break;
case 'v': /* verbose */
@@ -285,7 +284,7 @@ process_arguments (int argc, char **argv)
dns_server = argv[c];
}
else {
- usage2 (_("Invalid host name"), argv[c]);
+ usage2 (_("Invalid hostname/adress"), argv[c]);
}
}
else {
@@ -311,7 +310,6 @@ validate_arguments (void)
-
void
print_help (void)
{