diff options
Diffstat (limited to 'plugins/check_dig.c')
-rw-r--r-- | plugins/check_dig.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/plugins/check_dig.c b/plugins/check_dig.c index f80a9dc2..6e040874 100644 --- a/plugins/check_dig.c +++ b/plugins/check_dig.c | |||
@@ -21,6 +21,7 @@ const char *revision = "$Revision$"; | |||
21 | const char *copyright = "2002-2003"; | 21 | const char *copyright = "2002-2003"; |
22 | const char *authors = "Nagios Plugin Development Team"; | 22 | const char *authors = "Nagios Plugin Development Team"; |
23 | const char *email = "nagiosplug-devel@lists.sourceforge.net"; | 23 | const char *email = "nagiosplug-devel@lists.sourceforge.net"; |
24 | |||
24 | const char *summary = "Test the DNS service on the specified host using dig\n"; | 25 | const char *summary = "Test the DNS service on the specified host using dig\n"; |
25 | 26 | ||
26 | const char *option_summary = "-H host -l lookup [-t timeout] [-v]"; | 27 | const char *option_summary = "-H host -l lookup [-t timeout] [-v]"; |
@@ -33,11 +34,13 @@ const char *options = "\ | |||
33 | -t, --timeout=INTEGER\n\ | 34 | -t, --timeout=INTEGER\n\ |
34 | Seconds before connection attempt times out (default: %d)\n\ | 35 | Seconds before connection attempt times out (default: %d)\n\ |
35 | -v, --verbose\n\ | 36 | -v, --verbose\n\ |
36 | Print extra information (command-line use only)\n\ | 37 | Print extra information (command-line use only)\n"; |
38 | |||
39 | const char *standard_options = "\ | ||
37 | -h, --help\n\ | 40 | -h, --help\n\ |
38 | Print detailed help screen\n\ | 41 | Print detailed help screen\n\ |
39 | -V, --version\n\ | 42 | -V, --version\n\ |
40 | Print version information\n\n"; | 43 | Print version information\n\n"; |
41 | 44 | ||
42 | #include "config.h" | 45 | #include "config.h" |
43 | #include "common.h" | 46 | #include "common.h" |
@@ -238,7 +241,7 @@ validate_arguments (void) | |||
238 | { | 241 | { |
239 | return OK; | 242 | return OK; |
240 | } | 243 | } |
241 | 244 | ||
242 | 245 | ||
243 | 246 | ||
244 | 247 | ||
@@ -247,12 +250,12 @@ void | |||
247 | print_help (void) | 250 | print_help (void) |
248 | { | 251 | { |
249 | print_revision (progname, revision); | 252 | print_revision (progname, revision); |
250 | printf | 253 | printf ("Copyright (c) %s %s\n\t<%s>\n\n", copyright, authors, email); |
251 | ("Copyright (c) %s %s <%s>\n\n%s\n", | 254 | printf (summary); |
252 | copyright, authors, email, summary); | ||
253 | print_usage (); | 255 | print_usage (); |
254 | printf ("\nOptions:\n"); | 256 | printf ("\nOptions:\n"); |
255 | printf (options, DEFAULT_SOCKET_TIMEOUT); | 257 | printf (options, DEFAULT_SOCKET_TIMEOUT); |
258 | printf (standard_options); | ||
256 | support (); | 259 | support (); |
257 | } | 260 | } |
258 | 261 | ||