diff --git a/plugins/check_dns.c b/plugins/check_dns.c
index 6c08c2776e558ec3cee998d0a7afc49c99add4e6..fa7fbc1e820edab7e86e1405461bf5418290f363 100644 (file)
--- a/plugins/check_dns.c
+++ b/plugins/check_dns.c
LIMITATION: nslookup on Solaris 7 can return output over 2 lines, which will not
be picked up by this plugin
+
+ $Id$
******************************************************************************/
}
if (process_arguments (argc, argv) != OK) {
- print_usage ();
+ usage (_("check_dns: could not parse arguments\n"));
return STATE_UNKNOWN;
}
return result;
}
+
+
int
error_scan (char *input_buffer)
{
}
+
+
/* process command-line arguments */
int
process_arguments (int argc, char **argv)
/* TODO: this is_host check is probably unnecessary. */
/* Better to confirm nslookup response matches */
if (is_host (optarg) == FALSE) {
- printf (_("Invalid server name/address\n\n"));
+ printf (_("Invalid hostname/address\n\n"));
print_usage ();
exit (STATE_UNKNOWN);
}
return validate_arguments ();
}
+
+
int
validate_arguments ()
{
-
-
-\f
void
print_help (void)
{
-
void
print_usage (void)
{