diff options
author | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2021-12-02 15:42:05 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-02 15:42:05 (GMT) |
commit | 911e44045d7291f5ede22739fd176ef55dd3de4a (patch) | |
tree | cf36b95a4a964b03d6ecf75770ced2cb3a2ac3a9 /lib/utils_base.h | |
parent | 8294af907bd8482a86df749f562b7ec09e3faeed (diff) | |
parent | ed7cdf82a42f16532801ea4f118870ce9a130fcf (diff) | |
download | monitoring-plugins-911e44045d7291f5ede22739fd176ef55dd3de4a.tar.gz |
Merge branch 'master' into fix/shellcheckrefs/pull/1459/head
Diffstat (limited to 'lib/utils_base.h')
-rw-r--r-- | lib/utils_base.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/utils_base.h b/lib/utils_base.h index 42ae0c0..9482f23 100644 --- a/lib/utils_base.h +++ b/lib/utils_base.h | |||
@@ -23,6 +23,7 @@ typedef struct range_struct { | |||
23 | double end; | 23 | double end; |
24 | int end_infinity; | 24 | int end_infinity; |
25 | int alert_on; /* OUTSIDE (default) or INSIDE */ | 25 | int alert_on; /* OUTSIDE (default) or INSIDE */ |
26 | char* text; /* original unparsed text input */ | ||
26 | } range; | 27 | } range; |
27 | 28 | ||
28 | typedef struct thresholds_struct { | 29 | typedef struct thresholds_struct { |
@@ -61,6 +62,10 @@ void print_thresholds(const char *, thresholds *); | |||
61 | int check_range(double, range *); | 62 | int check_range(double, range *); |
62 | int get_status(double, thresholds *); | 63 | int get_status(double, thresholds *); |
63 | 64 | ||
65 | /* Handle timeouts */ | ||
66 | extern unsigned int timeout_state; | ||
67 | extern unsigned int timeout_interval; | ||
68 | |||
64 | /* All possible characters in a threshold range */ | 69 | /* All possible characters in a threshold range */ |
65 | #define NP_THRESHOLDS_CHARS "-0123456789.:@~" | 70 | #define NP_THRESHOLDS_CHARS "-0123456789.:@~" |
66 | 71 | ||
@@ -107,5 +112,6 @@ void np_state_write_string(time_t, char *); | |||
107 | void np_init(char *, int argc, char **argv); | 112 | void np_init(char *, int argc, char **argv); |
108 | void np_set_args(int argc, char **argv); | 113 | void np_set_args(int argc, char **argv); |
109 | void np_cleanup(); | 114 | void np_cleanup(); |
115 | const char *state_text (int); | ||
110 | 116 | ||
111 | #endif /* _UTILS_BASE_ */ | 117 | #endif /* _UTILS_BASE_ */ |