diff options
Diffstat (limited to 'plugins/check_http.c')
-rw-r--r-- | plugins/check_http.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/check_http.c b/plugins/check_http.c index 93bff453..f6cf5073 100644 --- a/plugins/check_http.c +++ b/plugins/check_http.c | |||
@@ -346,7 +346,7 @@ process_arguments (int argc, char **argv) | |||
346 | break; | 346 | break; |
347 | case 'p': /* Server port */ | 347 | case 'p': /* Server port */ |
348 | if (!is_intnonneg (optarg)) | 348 | if (!is_intnonneg (optarg)) |
349 | usage2 (_("invalid port number"), optarg); | 349 | usage2 (_("Invalid port number"), optarg); |
350 | else { | 350 | else { |
351 | server_port = atoi (optarg); | 351 | server_port = atoi (optarg); |
352 | specify_port = TRUE; | 352 | specify_port = TRUE; |
@@ -377,7 +377,7 @@ process_arguments (int argc, char **argv) | |||
377 | case 'l': /* linespan */ | 377 | case 'l': /* linespan */ |
378 | case 'r': /* linespan */ | 378 | case 'r': /* linespan */ |
379 | case 'R': /* linespan */ | 379 | case 'R': /* linespan */ |
380 | usage (_("check_http: call for regex which was not a compiled option\n")); | 380 | usage4 (_("Call for regex which was not a compiled option")); |
381 | break; | 381 | break; |
382 | #else | 382 | #else |
383 | case 'l': /* linespan */ | 383 | case 'l': /* linespan */ |
@@ -403,7 +403,7 @@ process_arguments (int argc, char **argv) | |||
403 | #ifdef USE_IPV6 | 403 | #ifdef USE_IPV6 |
404 | address_family = AF_INET6; | 404 | address_family = AF_INET6; |
405 | #else | 405 | #else |
406 | usage (_("IPv6 support not available\n")); | 406 | usage4 (_("IPv6 support not available")); |
407 | #endif | 407 | #endif |
408 | break; | 408 | break; |
409 | case 'v': /* verbose */ | 409 | case 'v': /* verbose */ |
@@ -446,7 +446,7 @@ process_arguments (int argc, char **argv) | |||
446 | 446 | ||
447 | if (server_address == NULL) { | 447 | if (server_address == NULL) { |
448 | if (host_name == NULL) | 448 | if (host_name == NULL) |
449 | usage (_("check_http: you must specify a server address or host name\n")); | 449 | usage4 (_("You must specify a server address or host name")); |
450 | else | 450 | else |
451 | server_address = strdup (host_name); | 451 | server_address = strdup (host_name); |
452 | } | 452 | } |
@@ -1049,11 +1049,11 @@ redir (char *pos, char *status_line) | |||
1049 | 1049 | ||
1050 | addr = malloc (MAX_IPV4_HOSTLENGTH + 1); | 1050 | addr = malloc (MAX_IPV4_HOSTLENGTH + 1); |
1051 | if (addr == NULL) | 1051 | if (addr == NULL) |
1052 | die (STATE_UNKNOWN, _("could not allocate addr\n")); | 1052 | die (STATE_UNKNOWN, _("Could not allocate addr\n")); |
1053 | 1053 | ||
1054 | url = malloc (strcspn (pos, "\r\n")); | 1054 | url = malloc (strcspn (pos, "\r\n")); |
1055 | if (url == NULL) | 1055 | if (url == NULL) |
1056 | die (STATE_UNKNOWN, _("could not allocate url\n")); | 1056 | die (STATE_UNKNOWN, _("Could not allocate url\n")); |
1057 | 1057 | ||
1058 | while (pos) { | 1058 | while (pos) { |
1059 | 1059 | ||