diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-11-10 01:58:41 +0100 |
---|---|---|
committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-11-10 01:58:41 +0100 |
commit | 651925dffce258bf71a6717fd3d4e0969f29b6a6 (patch) | |
tree | a4f36840dfc454b3e9a03810cbe560813efa56de /plugins/check_swap.d/check_swap.h | |
parent | 4b7977b25bda44a9a781d53011b73e71f7167c02 (diff) | |
download | monitoring-plugins-651925dffce258bf71a6717fd3d4e0969f29b6a6.tar.gz |
check_swap: Make check_swap work without thresholds
Diffstat (limited to 'plugins/check_swap.d/check_swap.h')
-rw-r--r-- | plugins/check_swap.d/check_swap.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/check_swap.d/check_swap.h b/plugins/check_swap.d/check_swap.h index 9e8be75f..e3e350c5 100644 --- a/plugins/check_swap.d/check_swap.h +++ b/plugins/check_swap.d/check_swap.h | |||
@@ -8,9 +8,10 @@ | |||
8 | #endif | 8 | #endif |
9 | 9 | ||
10 | typedef struct { | 10 | typedef struct { |
11 | bool is_set; | ||
11 | bool is_percentage; | 12 | bool is_percentage; |
12 | uint64_t value; | 13 | uint64_t value; |
13 | } threshold; | 14 | } check_swap_threshold; |
14 | 15 | ||
15 | typedef struct { | 16 | typedef struct { |
16 | unsigned long long free; // Free swap in Bytes! | 17 | unsigned long long free; // Free swap in Bytes! |
@@ -27,8 +28,8 @@ typedef struct { | |||
27 | typedef struct { | 28 | typedef struct { |
28 | bool allswaps; | 29 | bool allswaps; |
29 | int no_swap_state; | 30 | int no_swap_state; |
30 | threshold warn; | 31 | check_swap_threshold warn; |
31 | threshold crit; | 32 | check_swap_threshold crit; |
32 | bool on_aix; | 33 | bool on_aix; |
33 | int conversion_factor; | 34 | int conversion_factor; |
34 | } swap_config; | 35 | } swap_config; |