blob: 4e7defee522647256cbb64f5ee1887a2ef1dee99 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#pragma once
#include "./perfdata.h"
#include "states.h"
/*
* Old threshold type using the old range type
*/
typedef struct thresholds_struct {
range *warning;
range *critical;
} thresholds;
typedef struct mp_thresholds_struct {
bool warning_is_set;
mp_range warning;
bool critical_is_set;
mp_range critical;
} mp_thresholds;
mp_thresholds mp_thresholds_init(void);
mp_perfdata mp_pd_set_thresholds(mp_perfdata /* pd */, mp_thresholds /* th */);
mp_state_enum mp_get_pd_status(mp_perfdata /* pd */);
char *fmt_threshold_warning(thresholds th);
char *fmt_threshold_critical(thresholds th);
|