diff options
| author | Benoit Mortier <opensides@users.sourceforge.net> | 2004-12-01 19:33:45 +0000 |
|---|---|---|
| committer | Benoit Mortier <opensides@users.sourceforge.net> | 2004-12-01 19:33:45 +0000 |
| commit | 54c21eba62b55503dbe6fda607ccbef4a27a1f14 (patch) | |
| tree | fd28942d1170f607e5e9979e0b0cdcef5240c88f /plugins/check_dig.c | |
| parent | 5dc0b02ccc2b549d5ee7c8c7249723af9bd1cb74 (diff) | |
| download | monitoring-plugins-54c21eba62b55503dbe6fda607ccbef4a27a1f14.tar.gz | |
first pass at standardization of messages for the localization
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@962 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_dig.c')
| -rw-r--r-- | plugins/check_dig.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/plugins/check_dig.c b/plugins/check_dig.c index 92a5eda8..5b472eca 100644 --- a/plugins/check_dig.c +++ b/plugins/check_dig.c | |||
| @@ -151,7 +151,7 @@ main (int argc, char **argv) | |||
| 151 | if (spclose (child_process)) { | 151 | if (spclose (child_process)) { |
| 152 | result = max_state (result, STATE_WARNING); | 152 | result = max_state (result, STATE_WARNING); |
| 153 | if (strlen (output) == 0) | 153 | if (strlen (output) == 0) |
| 154 | asprintf (&output, _("dig returned error status")); | 154 | asprintf (&output, _("dig returned an error status")); |
| 155 | } | 155 | } |
| 156 | 156 | ||
| 157 | microsec = deltime (tv); | 157 | microsec = deltime (tv); |
| @@ -183,7 +183,6 @@ main (int argc, char **argv) | |||
| 183 | 183 | ||
| 184 | 184 | ||
| 185 | 185 | ||
| 186 | |||
| 187 | /* process command-line arguments */ | 186 | /* process command-line arguments */ |
| 188 | int | 187 | int |
| 189 | process_arguments (int argc, char **argv) | 188 | process_arguments (int argc, char **argv) |
| @@ -228,7 +227,7 @@ process_arguments (int argc, char **argv) | |||
| 228 | dns_server = optarg; | 227 | dns_server = optarg; |
| 229 | } | 228 | } |
| 230 | else { | 229 | else { |
| 231 | usage2 (_("Invalid host name"), optarg); | 230 | usage2 (_("Invalid hostname/adress"), optarg); |
| 232 | } | 231 | } |
| 233 | break; | 232 | break; |
| 234 | case 'p': /* server port */ | 233 | case 'p': /* server port */ |
| @@ -236,7 +235,7 @@ process_arguments (int argc, char **argv) | |||
| 236 | server_port = atoi (optarg); | 235 | server_port = atoi (optarg); |
| 237 | } | 236 | } |
| 238 | else { | 237 | else { |
| 239 | usage2 (_("Server port must be a nonnegative integer"), optarg); | 238 | usage2 (_("port must be a positive integer"), optarg); |
| 240 | } | 239 | } |
| 241 | break; | 240 | break; |
| 242 | case 'l': /* address to lookup */ | 241 | case 'l': /* address to lookup */ |
| @@ -247,7 +246,7 @@ process_arguments (int argc, char **argv) | |||
| 247 | warning_interval = strtod (optarg, NULL); | 246 | warning_interval = strtod (optarg, NULL); |
| 248 | } | 247 | } |
| 249 | else { | 248 | else { |
| 250 | usage2 (_("Warning interval must be a nonnegative integer"), optarg); | 249 | usage2 (_("Warning interval must be a positive integer"), optarg); |
| 251 | } | 250 | } |
| 252 | break; | 251 | break; |
| 253 | case 'c': /* critical */ | 252 | case 'c': /* critical */ |
| @@ -255,7 +254,7 @@ process_arguments (int argc, char **argv) | |||
| 255 | critical_interval = strtod (optarg, NULL); | 254 | critical_interval = strtod (optarg, NULL); |
| 256 | } | 255 | } |
| 257 | else { | 256 | else { |
| 258 | usage2 (_("Critical interval must be a nonnegative integer"), optarg); | 257 | usage2 (_("Critical interval must be a positive integer"), optarg); |
| 259 | } | 258 | } |
| 260 | break; | 259 | break; |
| 261 | case 't': /* timeout */ | 260 | case 't': /* timeout */ |
| @@ -263,7 +262,7 @@ process_arguments (int argc, char **argv) | |||
| 263 | timeout_interval = atoi (optarg); | 262 | timeout_interval = atoi (optarg); |
| 264 | } | 263 | } |
| 265 | else { | 264 | else { |
| 266 | usage2 (_("Time interval must be a nonnegative integer"), optarg); | 265 | usage2 (_("Timeout interval must be a positive integer"), optarg); |
| 267 | } | 266 | } |
| 268 | break; | 267 | break; |
| 269 | case 'v': /* verbose */ | 268 | case 'v': /* verbose */ |
| @@ -285,7 +284,7 @@ process_arguments (int argc, char **argv) | |||
| 285 | dns_server = argv[c]; | 284 | dns_server = argv[c]; |
| 286 | } | 285 | } |
| 287 | else { | 286 | else { |
| 288 | usage2 (_("Invalid host name"), argv[c]); | 287 | usage2 (_("Invalid hostname/adress"), argv[c]); |
| 289 | } | 288 | } |
| 290 | } | 289 | } |
| 291 | else { | 290 | else { |
| @@ -311,7 +310,6 @@ validate_arguments (void) | |||
| 311 | 310 | ||
| 312 | 311 | ||
| 313 | 312 | ||
| 314 | |||
| 315 | void | 313 | void |
| 316 | print_help (void) | 314 | print_help (void) |
| 317 | { | 315 | { |
