diff options
Diffstat (limited to 'plugins/check_tcp.c')
-rw-r--r-- | plugins/check_tcp.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/check_tcp.c b/plugins/check_tcp.c index 418438a3..ce57631a 100644 --- a/plugins/check_tcp.c +++ b/plugins/check_tcp.c | |||
@@ -474,7 +474,7 @@ process_arguments (int argc, char **argv) | |||
474 | #ifdef USE_IPV6 | 474 | #ifdef USE_IPV6 |
475 | address_family = AF_INET6; | 475 | address_family = AF_INET6; |
476 | #else | 476 | #else |
477 | usage (_("IPv6 support not available\n")); | 477 | usage4 (_("IPv6 support not available")); |
478 | #endif | 478 | #endif |
479 | break; | 479 | break; |
480 | case 'H': /* hostname */ | 480 | case 'H': /* hostname */ |
@@ -484,7 +484,7 @@ process_arguments (int argc, char **argv) | |||
484 | break; | 484 | break; |
485 | case 'c': /* critical */ | 485 | case 'c': /* critical */ |
486 | if (!is_intnonneg (optarg)) | 486 | if (!is_intnonneg (optarg)) |
487 | usage (_("Critical threshold must be a positive integer\n")); | 487 | usage4 (_("Critical threshold must be a positive integer")); |
488 | else | 488 | else |
489 | critical_time = strtod (optarg, NULL); | 489 | critical_time = strtod (optarg, NULL); |
490 | check_critical_time = TRUE; | 490 | check_critical_time = TRUE; |
@@ -494,7 +494,7 @@ process_arguments (int argc, char **argv) | |||
494 | break; | 494 | break; |
495 | case 'w': /* warning */ | 495 | case 'w': /* warning */ |
496 | if (!is_intnonneg (optarg)) | 496 | if (!is_intnonneg (optarg)) |
497 | usage (_("Warning threshold must be a positive integer\n")); | 497 | usage4 (_("Warning threshold must be a positive integer")); |
498 | else | 498 | else |
499 | warning_time = strtod (optarg, NULL); | 499 | warning_time = strtod (optarg, NULL); |
500 | check_warning_time = TRUE; | 500 | check_warning_time = TRUE; |
@@ -509,13 +509,13 @@ process_arguments (int argc, char **argv) | |||
509 | break; | 509 | break; |
510 | case 't': /* timeout */ | 510 | case 't': /* timeout */ |
511 | if (!is_intpos (optarg)) | 511 | if (!is_intpos (optarg)) |
512 | usage (_("Timeout interval must be a positive integer\n")); | 512 | usage4 (_("Timeout interval must be a positive integer")); |
513 | else | 513 | else |
514 | socket_timeout = atoi (optarg); | 514 | socket_timeout = atoi (optarg); |
515 | break; | 515 | break; |
516 | case 'p': /* port */ | 516 | case 'p': /* port */ |
517 | if (!is_intpos (optarg)) | 517 | if (!is_intpos (optarg)) |
518 | usage (_("Port must be a positive integer\n")); | 518 | usage4 (_("Port must be a positive integer")); |
519 | else | 519 | else |
520 | server_port = atoi (optarg); | 520 | server_port = atoi (optarg); |
521 | break; | 521 | break; |
@@ -532,7 +532,7 @@ process_arguments (int argc, char **argv) | |||
532 | break; | 532 | break; |
533 | case 'm': | 533 | case 'm': |
534 | if (!is_intpos (optarg)) | 534 | if (!is_intpos (optarg)) |
535 | usage (_("Maxbytes must be a positive integer\n")); | 535 | usage4 (_("Maxbytes must be a positive integer")); |
536 | else | 536 | else |
537 | maxbytes = atoi (optarg); | 537 | maxbytes = atoi (optarg); |
538 | case 'q': | 538 | case 'q': |
@@ -546,13 +546,13 @@ process_arguments (int argc, char **argv) | |||
546 | else if (!strncmp(optarg,"crit",4)) | 546 | else if (!strncmp(optarg,"crit",4)) |
547 | econn_refuse_state = STATE_CRITICAL; | 547 | econn_refuse_state = STATE_CRITICAL; |
548 | else | 548 | else |
549 | usage (_("Refuse must be one of ok, warn, crit\n")); | 549 | usage4 (_("Refuse must be one of ok, warn, crit")); |
550 | break; | 550 | break; |
551 | case 'd': | 551 | case 'd': |
552 | if (is_intpos (optarg)) | 552 | if (is_intpos (optarg)) |
553 | delay = atoi (optarg); | 553 | delay = atoi (optarg); |
554 | else | 554 | else |
555 | usage (_("Delay must be a positive integer\n")); | 555 | usage4 (_("Delay must be a positive integer")); |
556 | break; | 556 | break; |
557 | case 'D': /* Check SSL cert validity - days 'til certificate expiration */ | 557 | case 'D': /* Check SSL cert validity - days 'til certificate expiration */ |
558 | #ifdef HAVE_SSL | 558 | #ifdef HAVE_SSL |