diff options
| author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2026-01-09 14:57:57 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-09 14:57:57 +0100 |
| commit | da4fb28fca51b180d50608b0c847b1c0927cd8c5 (patch) | |
| tree | d20769e0a61ac2ba76920190050d3e0a3e7c85b7 /lib/thresholds.h | |
| parent | b09a8b530df8a23610889d0b89b148f22db3568a (diff) | |
| parent | f694f4cd4dfead0da6feab04d92335d9bbe185b6 (diff) | |
| download | monitoring-plugins-da4fb28fca51b180d50608b0c847b1c0927cd8c5.tar.gz | |
Merge branch 'master' into refactor/check_ide_smart
Diffstat (limited to 'lib/thresholds.h')
| -rw-r--r-- | lib/thresholds.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/thresholds.h b/lib/thresholds.h index 4e7defee..f8647681 100644 --- a/lib/thresholds.h +++ b/lib/thresholds.h | |||
| @@ -6,12 +6,12 @@ | |||
| 6 | /* | 6 | /* |
| 7 | * Old threshold type using the old range type | 7 | * Old threshold type using the old range type |
| 8 | */ | 8 | */ |
| 9 | typedef struct thresholds_struct { | 9 | typedef struct { |
| 10 | range *warning; | 10 | range *warning; |
| 11 | range *critical; | 11 | range *critical; |
| 12 | } thresholds; | 12 | } thresholds; |
| 13 | 13 | ||
| 14 | typedef struct mp_thresholds_struct { | 14 | typedef struct { |
| 15 | bool warning_is_set; | 15 | bool warning_is_set; |
| 16 | mp_range warning; | 16 | mp_range warning; |
| 17 | bool critical_is_set; | 17 | bool critical_is_set; |
| @@ -24,5 +24,8 @@ mp_perfdata mp_pd_set_thresholds(mp_perfdata /* pd */, mp_thresholds /* th */); | |||
| 24 | 24 | ||
| 25 | mp_state_enum mp_get_pd_status(mp_perfdata /* pd */); | 25 | mp_state_enum mp_get_pd_status(mp_perfdata /* pd */); |
| 26 | 26 | ||
| 27 | mp_thresholds mp_thresholds_set_warn(mp_thresholds thlds, mp_range warn); | ||
| 28 | mp_thresholds mp_thresholds_set_crit(mp_thresholds thlds, mp_range crit); | ||
| 29 | |||
| 27 | char *fmt_threshold_warning(thresholds th); | 30 | char *fmt_threshold_warning(thresholds th); |
| 28 | char *fmt_threshold_critical(thresholds th); | 31 | char *fmt_threshold_critical(thresholds th); |
