diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-08-01 14:29:08 +0200 |
---|---|---|
committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-08-01 14:29:08 +0200 |
commit | 4966b920a2392484a6ae83a4a499c24a2942c832 (patch) | |
tree | e6c6dd287c723e4724b3991ac502f7d8d839617f /lib/utils_base.h | |
parent | e570ce63634b57573aa84b12d84e7651d466a761 (diff) | |
download | monitoring-plugins-4966b920a2392484a6ae83a4a499c24a2942c832.tar.gz |
General smal improvements to the lib logic
Diffstat (limited to 'lib/utils_base.h')
-rw-r--r-- | lib/utils_base.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/utils_base.h b/lib/utils_base.h index 123066f8..8fb114c2 100644 --- a/lib/utils_base.h +++ b/lib/utils_base.h | |||
@@ -7,6 +7,7 @@ | |||
7 | 7 | ||
8 | #include "./perfdata.h" | 8 | #include "./perfdata.h" |
9 | #include "./thresholds.h" | 9 | #include "./thresholds.h" |
10 | #include "states.h" | ||
10 | 11 | ||
11 | 12 | ||
12 | #ifndef USE_OPENSSL | 13 | #ifndef USE_OPENSSL |
@@ -55,7 +56,7 @@ void set_thresholds(thresholds **, char *, char *); | |||
55 | void print_thresholds(const char *, thresholds *); | 56 | void print_thresholds(const char *, thresholds *); |
56 | bool check_range(double, range *); | 57 | bool check_range(double, range *); |
57 | bool mp_check_range(mp_perfdata_value, mp_range); | 58 | bool mp_check_range(mp_perfdata_value, mp_range); |
58 | int get_status(double, thresholds *); | 59 | mp_state_enum get_status(double, thresholds *); |
59 | 60 | ||
60 | /* Handle timeouts */ | 61 | /* Handle timeouts */ |
61 | extern int timeout_state; | 62 | extern int timeout_state; |
@@ -107,6 +108,6 @@ void np_state_write_string(time_t, char *); | |||
107 | void np_init(char *, int argc, char **argv); | 108 | void np_init(char *, int argc, char **argv); |
108 | void np_set_args(int argc, char **argv); | 109 | void np_set_args(int argc, char **argv); |
109 | void np_cleanup(void); | 110 | void np_cleanup(void); |
110 | const char *state_text(int); | 111 | const char *state_text(mp_state_enum); |
111 | 112 | ||
112 | #endif /* _UTILS_BASE_ */ | 113 | #endif /* _UTILS_BASE_ */ |