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_real.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_real.c')
-rw-r--r-- | plugins/check_real.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_real.c b/plugins/check_real.c index 1744b329..875f9c40 100644 --- a/plugins/check_real.c +++ b/plugins/check_real.c @@ -91,7 +91,7 @@ main (int argc, char **argv) /* try to connect to the host at the given port number */ if (my_tcp_connect (server_address, server_port, &sd) != STATE_OK) - terminate (STATE_CRITICAL, "Unable to connect to %s on port %d\n", + die (STATE_CRITICAL, "Unable to connect to %s on port %d\n", server_address, server_port); /* Part I - Server Check */ @@ -113,7 +113,7 @@ main (int argc, char **argv) /* return a CRITICAL status if we couldn't read any data */ if (result == -1) - terminate (STATE_CRITICAL, "No data received from %s\n", host_name); + die (STATE_CRITICAL, "No data received from %s\n", host_name); /* make sure we find the response we are looking for */ if (!strstr (buffer, server_expect)) { |