diff options
| author | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | 2008-04-27 14:35:26 +0000 |
|---|---|---|
| committer | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | 2008-04-27 14:35:26 +0000 |
| commit | ed62784a0b68959fd13fe5bc53a5aef4f17fbffa (patch) | |
| tree | f479a5b8ad8cac8d6dcc506ba61aa5ec3fbb5bb3 /plugins/check_dns.c | |
| parent | 140a93ce6bce63df2d70841f2f78aa968ea997d6 (diff) | |
| download | monitoring-plugins-ed62784a0b68959fd13fe5bc53a5aef4f17fbffa.tar.gz | |
--help output cleanup (plus removal of spaces on blank lines)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1984 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_dns.c')
| -rw-r--r-- | plugins/check_dns.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/check_dns.c b/plugins/check_dns.c index 276dad82..f8dbb4dc 100644 --- a/plugins/check_dns.c +++ b/plugins/check_dns.c | |||
| @@ -124,7 +124,7 @@ main (int argc, char **argv) | |||
| 124 | addresses = malloc(sizeof(*addresses)*10); | 124 | addresses = malloc(sizeof(*addresses)*10); |
| 125 | else if (!(n_addresses % 10)) | 125 | else if (!(n_addresses % 10)) |
| 126 | addresses = realloc(addresses,sizeof(*addresses) * (n_addresses + 10)); | 126 | addresses = realloc(addresses,sizeof(*addresses) * (n_addresses + 10)); |
| 127 | 127 | ||
| 128 | if (verbose) | 128 | if (verbose) |
| 129 | puts(chld_out.line[i]); | 129 | puts(chld_out.line[i]); |
| 130 | 130 | ||
| @@ -148,7 +148,7 @@ main (int argc, char **argv) | |||
| 148 | /* Strip leading spaces */ | 148 | /* Strip leading spaces */ |
| 149 | for (; *temp_buffer != '\0' && *temp_buffer == ' '; temp_buffer++) | 149 | for (; *temp_buffer != '\0' && *temp_buffer == ' '; temp_buffer++) |
| 150 | /* NOOP */; | 150 | /* NOOP */; |
| 151 | 151 | ||
| 152 | strip(temp_buffer); | 152 | strip(temp_buffer); |
| 153 | if (temp_buffer==NULL || strlen(temp_buffer)==0) { | 153 | if (temp_buffer==NULL || strlen(temp_buffer)==0) { |
| 154 | die (STATE_CRITICAL, | 154 | die (STATE_CRITICAL, |
| @@ -451,13 +451,13 @@ print_help (void) | |||
| 451 | printf ("%s\n", _("This plugin uses the nslookup program to obtain the IP address for the given host/domain query.")); | 451 | printf ("%s\n", _("This plugin uses the nslookup program to obtain the IP address for the given host/domain query.")); |
| 452 | printf ("%s\n", _("An optional DNS server to use may be specified.")); | 452 | printf ("%s\n", _("An optional DNS server to use may be specified.")); |
| 453 | printf ("%s\n", _("If no DNS server is specified, the default server(s) specified in /etc/resolv.conf will be used.")); | 453 | printf ("%s\n", _("If no DNS server is specified, the default server(s) specified in /etc/resolv.conf will be used.")); |
| 454 | 454 | ||
| 455 | printf ("\n\n"); | 455 | printf ("\n\n"); |
| 456 | 456 | ||
| 457 | print_usage (); | 457 | print_usage (); |
| 458 | 458 | ||
| 459 | printf (_(UT_HELP_VRSN)); | 459 | printf (_(UT_HELP_VRSN)); |
| 460 | 460 | ||
| 461 | printf (" -H, --hostname=HOST\n"); | 461 | printf (" -H, --hostname=HOST\n"); |
| 462 | printf (" %s\n", _("The name or address you want to query")); | 462 | printf (" %s\n", _("The name or address you want to query")); |
| 463 | printf (" -s, --server=HOST\n"); | 463 | printf (" -s, --server=HOST\n"); |
