summaryrefslogtreecommitdiffstats
path: root/plugins/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/utils.c')
0 files changed, 0 insertions, 0 deletions
diff --git a/plugins/netutils.c b/plugins/netutils.c
index 6082cae..1d6100a 100644
--- a/plugins/netutils.c
+++ b/plugins/netutils.c
@@ -32,7 +32,6 @@
32#include "common.h" 32#include "common.h"
33#include "netutils.h" 33#include "netutils.h"
34 34
35unsigned int socket_timeout = DEFAULT_SOCKET_TIMEOUT;
36int econn_refuse_state = STATE_CRITICAL; 35int econn_refuse_state = STATE_CRITICAL;
37int was_refused = FALSE; 36int was_refused = FALSE;
38#if USE_IPV6 37#if USE_IPV6
@@ -46,11 +45,11 @@ void
46socket_timeout_alarm_handler (int sig) 45socket_timeout_alarm_handler (int sig)
47{ 46{
48 if (sig == SIGALRM) 47 if (sig == SIGALRM)
49 printf (_("CRITICAL - Socket timeout after %d seconds\n"), socket_timeout); 48 printf (_("%s - Socket timeout after %d seconds\n"), state_text(socket_timeout_state), socket_timeout);
50 else 49 else
51 printf (_("CRITICAL - Abnormal timeout after %d seconds\n"), socket_timeout); 50 printf (_("%s - Abnormal timeout after %d seconds\n"), state_text(socket_timeout_state), socket_timeout);
52 51
53 exit (STATE_CRITICAL); 52 exit (socket_timeout_state);
54} 53}
55 54
56 55