diff --git a/plugins/check_dig.c b/plugins/check_dig.c
index 5b472ecaac040cb158a38a12d7db7365096f7720..a500cdcfaa0f3e99b0a02652df797be7d254da0c 100644 (file)
--- a/plugins/check_dig.c
+++ b/plugins/check_dig.c
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ $Id$
+
*****************************************************************************/
#include "common.h"
asprintf (&output, _("Server not found in ANSWER SECTION"));
result = STATE_WARNING;
}
-
}
}
-
-
/* process command-line arguments */
int
process_arguments (int argc, char **argv)
switch (c) {
case '?': /* help */
- usage3 (_("Unknown argument"), optopt);
+ printf (_("%s: Unknown argument: %s\n\n"), progname, optarg);
+ print_usage ();
+ exit (STATE_UNKNOWN);
case 'h': /* help */
print_help ();
exit (STATE_OK);
dns_server = optarg;
}
else {
- usage2 (_("Invalid hostname/adress"), optarg);
+ usage2 (_("Invalid hostname/address"), optarg);
}
break;
case 'p': /* server port */
server_port = atoi (optarg);
}
else {
- usage2 (_("port must be a positive integer"), optarg);
+ usage2 (_("Port must be a positive integer"), optarg);
}
break;
case 'l': /* address to lookup */
dns_server = argv[c];
}
else {
- usage2 (_("Invalid hostname/adress"), argv[c]);
+ usage2 (_("Invalid hostname/address"), argv[c]);
}
}
else {
-
-
int
validate_arguments (void)
{
-
-
-
void
print_help (void)
{
-
void
print_usage (void)
{