summaryrefslogtreecommitdiffstats
path: root/plugins/check_real.c
diff options
context:
space:
mode:
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)) {