diff options
Diffstat (limited to 'plugins/utils.c')
-rw-r--r-- | plugins/utils.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/utils.c b/plugins/utils.c index 8827e31a..b57d5e17 100644 --- a/plugins/utils.c +++ b/plugins/utils.c | |||
@@ -22,8 +22,6 @@ | |||
22 | * | 22 | * |
23 | *****************************************************************************/ | 23 | *****************************************************************************/ |
24 | 24 | ||
25 | #define LOCAL_TIMEOUT_ALARM_HANDLER | ||
26 | |||
27 | #include "common.h" | 25 | #include "common.h" |
28 | #include "utils.h" | 26 | #include "utils.h" |
29 | #include "utils_base.h" | 27 | #include "utils_base.h" |
@@ -38,6 +36,11 @@ extern const char *progname; | |||
38 | #define STRLEN 64 | 36 | #define STRLEN 64 |
39 | #define TXTBLK 128 | 37 | #define TXTBLK 128 |
40 | 38 | ||
39 | unsigned int timeout_state = STATE_CRITICAL; | ||
40 | unsigned int timeout_interval = DEFAULT_SOCKET_TIMEOUT; | ||
41 | |||
42 | time_t start_time, end_time; | ||
43 | |||
41 | /* ************************************************************************** | 44 | /* ************************************************************************** |
42 | * max_state(STATE_x, STATE_y) | 45 | * max_state(STATE_x, STATE_y) |
43 | * compares STATE_x to STATE_y and returns result based on the following | 46 | * compares STATE_x to STATE_y and returns result based on the following |