aboutsummaryrefslogtreecommitdiff
path: root/plugins/check_tcp.c
diff options
context:
space:
mode:
authorGravatar Sven Nierlein <sven@nierlein.org> 2015-10-02 19:54:31 +0200
committerGravatar Sven Nierlein <sven@nierlein.org> 2015-10-02 19:54:31 +0200
commit0be10c669ec6d0b5338a274e59f1f964ec702edc (patch)
tree614c47ba80421bbcb5feb16cbf4ece5357b9e39d /plugins/check_tcp.c
parent9c32acf5bbb00e1073fba44745fa1d7aee94c8b2 (diff)
parent4273dd06ff3e52094d6b267d00e8c51dd74de364 (diff)
downloadmonitoring-plugins-0be10c669ec6d0b5338a274e59f1f964ec702edc.tar.gz
Merge pull request #1257 from gcoxmoz/master
check_tcp: Fixing to return desired exit code
Diffstat (limited to 'plugins/check_tcp.c')
-rw-r--r--plugins/check_tcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_tcp.c b/plugins/check_tcp.c
index a18c37ae..5c563d80 100644
--- a/plugins/check_tcp.c
+++ b/plugins/check_tcp.c
@@ -237,7 +237,7 @@ main (int argc, char **argv)
gettimeofday (&tv, NULL);
result = np_net_connect (server_address, server_port, &sd, PROTOCOL);
- if (result == STATE_CRITICAL) return STATE_CRITICAL;
+ if (result == STATE_CRITICAL) return econn_refuse_state;
#ifdef HAVE_SSL
if (flags & FLAG_SSL){