mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-03-24 11:23:12 -04:00
Patch against issue 1062
This commit is contained in:
parent
0a89db746d
commit
f05e701632
1 changed files with 1 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue