diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-11-02 13:37:39 +0100 |
---|---|---|
committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-11-02 13:37:39 +0100 |
commit | 3faeed07c4825d5c3ceb323e814e703d9262cd82 (patch) | |
tree | b6a61e24ffa0fbb4af5f145c137f1f584aaba1bc /plugins/check_swap.d/check_swap.h | |
parent | 735b04eff721a28e791714c0da4c8ac5726bfbcf (diff) | |
parent | 6d1d1dac32841d5ca6ee51bb09b30a6c604b17e2 (diff) | |
download | monitoring-plugins-3faeed07c4825d5c3ceb323e814e703d9262cd82.tar.gz |
Merge branch 'master' into check_swap_again
Diffstat (limited to 'plugins/check_swap.d/check_swap.h')
-rw-r--r-- | plugins/check_swap.d/check_swap.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/check_swap.d/check_swap.h b/plugins/check_swap.d/check_swap.h index bad52917..9e8be75f 100644 --- a/plugins/check_swap.d/check_swap.h +++ b/plugins/check_swap.d/check_swap.h | |||
@@ -4,7 +4,7 @@ | |||
4 | #include "../common.h" | 4 | #include "../common.h" |
5 | 5 | ||
6 | #ifndef SWAP_CONVERSION | 6 | #ifndef SWAP_CONVERSION |
7 | #define SWAP_CONVERSION 1 | 7 | # define SWAP_CONVERSION 1 |
8 | #endif | 8 | #endif |
9 | 9 | ||
10 | typedef struct { | 10 | typedef struct { |
@@ -25,7 +25,6 @@ typedef struct { | |||
25 | } swap_result; | 25 | } swap_result; |
26 | 26 | ||
27 | typedef struct { | 27 | typedef struct { |
28 | int verbose; | ||
29 | bool allswaps; | 28 | bool allswaps; |
30 | int no_swap_state; | 29 | int no_swap_state; |
31 | threshold warn; | 30 | threshold warn; |
@@ -34,10 +33,10 @@ typedef struct { | |||
34 | int conversion_factor; | 33 | int conversion_factor; |
35 | } swap_config; | 34 | } swap_config; |
36 | 35 | ||
37 | swap_config swap_config_init(); | 36 | swap_config swap_config_init(void); |
38 | 37 | ||
39 | swap_result get_swap_data(swap_config config); | 38 | swap_result get_swap_data(swap_config config); |
40 | swap_result getSwapFromProcMeminfo(swap_config config, char path_to_proc_meminfo[]); | 39 | swap_result getSwapFromProcMeminfo(char path_to_proc_meminfo[]); |
41 | swap_result getSwapFromSwapCommand(swap_config config, const char swap_command[], const char swap_format[]); | 40 | swap_result getSwapFromSwapCommand(swap_config config, const char swap_command[], const char swap_format[]); |
42 | swap_result getSwapFromSwapctl_BSD(swap_config config); | 41 | swap_result getSwapFromSwapctl_BSD(swap_config config); |
43 | swap_result getSwapFromSwap_SRV4(swap_config config); | 42 | swap_result getSwapFromSwap_SRV4(swap_config config); |