summaryrefslogtreecommitdiffstats
path: root/plugins/check_real.c
diff options
context:
space:
mode:
authorKarl DeBisschop <kdebisschop@users.sourceforge.net>2003-08-07 11:51:12 +0000
committerKarl DeBisschop <kdebisschop@users.sourceforge.net>2003-08-07 11:51:12 +0000
commit9e17dab6c3e4b4e7142f3ea5b2a60fcd488dc709 (patch)
treecb5831f4c018edc441686b2fe7715eb91de4ffee /plugins/check_real.c
parent7f1bb2a782a008b55b0ef657ec01d7fbdb637fd4 (diff)
downloadmonitoring-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.c4
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)
91 91
92 /* try to connect to the host at the given port number */ 92 /* try to connect to the host at the given port number */
93 if (my_tcp_connect (server_address, server_port, &sd) != STATE_OK) 93 if (my_tcp_connect (server_address, server_port, &sd) != STATE_OK)
94 terminate (STATE_CRITICAL, "Unable to connect to %s on port %d\n", 94 die (STATE_CRITICAL, "Unable to connect to %s on port %d\n",
95 server_address, server_port); 95 server_address, server_port);
96 96
97 /* Part I - Server Check */ 97 /* Part I - Server Check */
@@ -113,7 +113,7 @@ main (int argc, char **argv)
113 113
114 /* return a CRITICAL status if we couldn't read any data */ 114 /* return a CRITICAL status if we couldn't read any data */
115 if (result == -1) 115 if (result == -1)
116 terminate (STATE_CRITICAL, "No data received from %s\n", host_name); 116 die (STATE_CRITICAL, "No data received from %s\n", host_name);
117 117
118 /* make sure we find the response we are looking for */ 118 /* make sure we find the response we are looking for */
119 if (!strstr (buffer, server_expect)) { 119 if (!strstr (buffer, server_expect)) {