[monitoring-plugins] Patch against issue 1062
gcoxmoz
git at monitoring-plugins.org
Fri Oct 2 20:00:12 CEST 2015
Module: monitoring-plugins
Branch: master
Commit: f05e7016320f4671fbf86cc5abc277efea20f79e
Author: gcoxmoz <gcox at mozilla.com>
Date: Sat May 17 01:16:12 2014 -0400
URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=f05e701
Patch against issue 1062
---
plugins/netutils.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/plugins/netutils.c b/plugins/netutils.c
index f5e7dff..7ae9722 100644
--- a/plugins/netutils.c
+++ b/plugins/netutils.c
@@ -253,9 +253,7 @@ np_net_connect (const char *host_name, int port, int *sd, int proto)
else if (was_refused) {
switch (econn_refuse_state) { /* a user-defined expected outcome */
case STATE_OK:
- case STATE_WARNING: /* user wants WARN or OK on refusal, stay quiet */
- return STATE_CRITICAL;
- break;
+ case STATE_WARNING: /* user wants WARN or OK on refusal, or... */
case STATE_CRITICAL: /* user did not set econn_refuse_state, or wanted critical */
printf ("%s\n", strerror(errno));
return STATE_CRITICAL;
More information about the Commits
mailing list