summaryrefslogtreecommitdiffstats
path: root/plugins/check_dig.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_dig.c')
-rw-r--r--plugins/check_dig.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/plugins/check_dig.c b/plugins/check_dig.c
index d7e1f57..e3f7adb 100644
--- a/plugins/check_dig.c
+++ b/plugins/check_dig.c
@@ -84,6 +84,9 @@ main (int argc, char **argv)
84 if (signal (SIGALRM, popen_timeout_alarm_handler) == SIG_ERR) 84 if (signal (SIGALRM, popen_timeout_alarm_handler) == SIG_ERR)
85 usage_va(_("Cannot catch SIGALRM")); 85 usage_va(_("Cannot catch SIGALRM"));
86 86
87 /* Parse extra opts if any */
88 argv=np_extra_opts (&argc, argv, progname);
89
87 if (process_arguments (argc, argv) == ERROR) 90 if (process_arguments (argc, argv) == ERROR)
88 usage_va(_("Could not parse arguments")); 91 usage_va(_("Could not parse arguments"));
89 92
@@ -317,6 +320,8 @@ print_help (void)
317 320
318 printf (_(UT_HELP_VRSN)); 321 printf (_(UT_HELP_VRSN));
319 322
323 printf (_(UT_EXTRA_OPTS));
324
320 printf (_(UT_HOST_PORT), 'p', myport); 325 printf (_(UT_HOST_PORT), 'p', myport);
321 326
322 printf (" %s\n","-l, --query_address=STRING"); 327 printf (" %s\n","-l, --query_address=STRING");
@@ -332,11 +337,17 @@ print_help (void)
332 printf (_(UT_TIMEOUT), DEFAULT_SOCKET_TIMEOUT); 337 printf (_(UT_TIMEOUT), DEFAULT_SOCKET_TIMEOUT);
333 printf (_(UT_VERBOSE)); 338 printf (_(UT_VERBOSE));
334 339
335 printf("\n"); 340 printf ("\n");
336 printf ("%s\n", _("Examples:")); 341 printf ("%s\n", _("Examples:"));
337 printf (" %s\n", "check_dig -H DNSSERVER -l www.example.com -A \"+tcp\""); 342 printf (" %s\n", "check_dig -H DNSSERVER -l www.example.com -A \"+tcp\"");
338 printf (" %s\n", "This will send a tcp query to DNSSERVER for www.example.com"); 343 printf (" %s\n", "This will send a tcp query to DNSSERVER for www.example.com");
339 344
345#ifdef NP_EXTRA_OPTS
346 printf ("\n");
347 printf ("%s\n", _("Notes:"));
348 printf (_(UT_EXTRA_OPTS_NOTES));
349#endif
350
340 printf (_(UT_SUPPORT)); 351 printf (_(UT_SUPPORT));
341} 352}
342 353