diff options
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-08-07 11:51:12 +0000 |
---|---|---|
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-08-07 11:51:12 +0000 |
commit | 9e17dab6c3e4b4e7142f3ea5b2a60fcd488dc709 (patch) | |
tree | cb5831f4c018edc441686b2fe7715eb91de4ffee /plugins/check_tcp.c | |
parent | 7f1bb2a782a008b55b0ef657ec01d7fbdb637fd4 (diff) | |
download | monitoring-plugins-9e17dab6c3e4b4e7142f3ea5b2a60fcd488dc709.tar.gz |
replace "terminate" with "die" for shorter name and better readability
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@656 f882894a-f735-0410-b71e-b25c423dba1c
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) /* return a CRITICAL status if we couldn't read any data */ if (status == NULL) - terminate (STATE_CRITICAL, _("No data received from host\n")); + die (STATE_CRITICAL, _("No data received from host\n")); strip (status); @@ -335,7 +335,7 @@ main (int argc, char **argv) if (verbose) printf ("%d %d\n", i, server_expect_count); if (i >= server_expect_count) - terminate (STATE_WARNING, _("Invalid response from host\n")); + die (STATE_WARNING, _("Invalid response from host\n")); if (strstr (status, server_expect[i])) break; } @@ -542,7 +542,7 @@ process_arguments (int argc, char **argv) break; case 'S': #ifndef HAVE_SSL - terminate (STATE_UNKNOWN, + die (STATE_UNKNOWN, _("SSL support not available. Install OpenSSL and recompile.")); #endif use_ssl = TRUE; |