summaryrefslogtreecommitdiffstats
path: root/plugins/utils.h
diff options
context:
space:
mode:
authorThomas Guyot-Sionnest <dermoth@aei.ca>2009-03-20 02:19:42 -0400
committerThomas Guyot-Sionnest <dermoth@aei.ca>2009-03-20 02:19:42 -0400
commitc459ca07706ee315da3eac91344c2f1d9a152685 (patch)
treed91659325daad0a7580fbbf6ea6719f84fb9ef2f /plugins/utils.h
parent4142e178403483d6c1a27e765c0a86e77278c2d6 (diff)
downloadmonitoring-plugins-c459ca07706ee315da3eac91344c2f1d9a152685.tar.gz
Make alarm handler customisable
Diffstat (limited to 'plugins/utils.h')
-rw-r--r--plugins/utils.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/utils.h b/plugins/utils.h
index 65e06ebd..d6e9c8f7 100644
--- a/plugins/utils.h
+++ b/plugins/utils.h
@@ -32,9 +32,11 @@ void print_revision (const char *, const char *);
32/* Handle timeouts */ 32/* Handle timeouts */
33 33
34#ifdef LOCAL_TIMEOUT_ALARM_HANDLER 34#ifdef LOCAL_TIMEOUT_ALARM_HANDLER
35extern unsigned int timeout_state;
35extern unsigned int timeout_interval; 36extern unsigned int timeout_interval;
36RETSIGTYPE timeout_alarm_handler (int); 37RETSIGTYPE timeout_alarm_handler (int);
37#else 38#else
39unsigned int timeout_state = STATE_CRITICAL;
38unsigned int timeout_interval = DEFAULT_SOCKET_TIMEOUT; 40unsigned int timeout_interval = DEFAULT_SOCKET_TIMEOUT;
39extern RETSIGTYPE timeout_alarm_handler (int); 41extern RETSIGTYPE timeout_alarm_handler (int);
40#endif 42#endif