diff options
Diffstat (limited to 'lib/utils_base.h')
| -rw-r--r-- | lib/utils_base.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/utils_base.h b/lib/utils_base.h index 42ae0c09..9cb42767 100644 --- a/lib/utils_base.h +++ b/lib/utils_base.h | |||
| @@ -2,7 +2,9 @@ | |||
| 2 | #define _UTILS_BASE_ | 2 | #define _UTILS_BASE_ |
| 3 | /* Header file for Monitoring Plugins utils_base.c */ | 3 | /* Header file for Monitoring Plugins utils_base.c */ |
| 4 | 4 | ||
| 5 | #include "sha1.h" | 5 | #ifndef USE_OPENSSL |
| 6 | # include "sha256.h" | ||
| 7 | #endif | ||
| 6 | 8 | ||
| 7 | /* This file holds header information for thresholds - use this in preference to | 9 | /* This file holds header information for thresholds - use this in preference to |
| 8 | individual plugin logic */ | 10 | individual plugin logic */ |
| @@ -23,6 +25,7 @@ typedef struct range_struct { | |||
| 23 | double end; | 25 | double end; |
| 24 | int end_infinity; | 26 | int end_infinity; |
| 25 | int alert_on; /* OUTSIDE (default) or INSIDE */ | 27 | int alert_on; /* OUTSIDE (default) or INSIDE */ |
| 28 | char* text; /* original unparsed text input */ | ||
| 26 | } range; | 29 | } range; |
| 27 | 30 | ||
| 28 | typedef struct thresholds_struct { | 31 | typedef struct thresholds_struct { |
| @@ -61,6 +64,10 @@ void print_thresholds(const char *, thresholds *); | |||
| 61 | int check_range(double, range *); | 64 | int check_range(double, range *); |
| 62 | int get_status(double, thresholds *); | 65 | int get_status(double, thresholds *); |
| 63 | 66 | ||
| 67 | /* Handle timeouts */ | ||
| 68 | extern unsigned int timeout_state; | ||
| 69 | extern unsigned int timeout_interval; | ||
| 70 | |||
| 64 | /* All possible characters in a threshold range */ | 71 | /* All possible characters in a threshold range */ |
| 65 | #define NP_THRESHOLDS_CHARS "-0123456789.:@~" | 72 | #define NP_THRESHOLDS_CHARS "-0123456789.:@~" |
| 66 | 73 | ||
| @@ -107,5 +114,6 @@ void np_state_write_string(time_t, char *); | |||
| 107 | void np_init(char *, int argc, char **argv); | 114 | void np_init(char *, int argc, char **argv); |
| 108 | void np_set_args(int argc, char **argv); | 115 | void np_set_args(int argc, char **argv); |
| 109 | void np_cleanup(); | 116 | void np_cleanup(); |
| 117 | const char *state_text (int); | ||
| 110 | 118 | ||
| 111 | #endif /* _UTILS_BASE_ */ | 119 | #endif /* _UTILS_BASE_ */ |
