diff options
Diffstat (limited to 'plugins/check_tcp.c')
-rw-r--r-- | plugins/check_tcp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/check_tcp.c b/plugins/check_tcp.c index 32bdae70..a897d8e8 100644 --- a/plugins/check_tcp.c +++ b/plugins/check_tcp.c | |||
@@ -323,7 +323,7 @@ main (int argc, char **argv) | |||
323 | 323 | ||
324 | /* return a CRITICAL status if we couldn't read any data */ | 324 | /* return a CRITICAL status if we couldn't read any data */ |
325 | if (status == NULL) | 325 | if (status == NULL) |
326 | terminate (STATE_CRITICAL, _("No data received from host\n")); | 326 | die (STATE_CRITICAL, _("No data received from host\n")); |
327 | 327 | ||
328 | strip (status); | 328 | strip (status); |
329 | 329 | ||
@@ -335,7 +335,7 @@ main (int argc, char **argv) | |||
335 | if (verbose) | 335 | if (verbose) |
336 | printf ("%d %d\n", i, server_expect_count); | 336 | printf ("%d %d\n", i, server_expect_count); |
337 | if (i >= server_expect_count) | 337 | if (i >= server_expect_count) |
338 | terminate (STATE_WARNING, _("Invalid response from host\n")); | 338 | die (STATE_WARNING, _("Invalid response from host\n")); |
339 | if (strstr (status, server_expect[i])) | 339 | if (strstr (status, server_expect[i])) |
340 | break; | 340 | break; |
341 | } | 341 | } |
@@ -542,7 +542,7 @@ process_arguments (int argc, char **argv) | |||
542 | break; | 542 | break; |
543 | case 'S': | 543 | case 'S': |
544 | #ifndef HAVE_SSL | 544 | #ifndef HAVE_SSL |
545 | terminate (STATE_UNKNOWN, | 545 | die (STATE_UNKNOWN, |
546 | _("SSL support not available. Install OpenSSL and recompile.")); | 546 | _("SSL support not available. Install OpenSSL and recompile.")); |
547 | #endif | 547 | #endif |
548 | use_ssl = TRUE; | 548 | use_ssl = TRUE; |