summaryrefslogtreecommitdiffstats
path: root/plugins/check_swap.d/check_swap.h
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2024-11-02 13:37:39 +0100
committerLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2024-11-02 13:37:39 +0100
commit3faeed07c4825d5c3ceb323e814e703d9262cd82 (patch)
treeb6a61e24ffa0fbb4af5f145c137f1f584aaba1bc /plugins/check_swap.d/check_swap.h
parent735b04eff721a28e791714c0da4c8ac5726bfbcf (diff)
parent6d1d1dac32841d5ca6ee51bb09b30a6c604b17e2 (diff)
downloadmonitoring-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.h7
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
10typedef struct { 10typedef struct {
@@ -25,7 +25,6 @@ typedef struct {
25} swap_result; 25} swap_result;
26 26
27typedef struct { 27typedef 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
37swap_config swap_config_init(); 36swap_config swap_config_init(void);
38 37
39swap_result get_swap_data(swap_config config); 38swap_result get_swap_data(swap_config config);
40swap_result getSwapFromProcMeminfo(swap_config config, char path_to_proc_meminfo[]); 39swap_result getSwapFromProcMeminfo(char path_to_proc_meminfo[]);
41swap_result getSwapFromSwapCommand(swap_config config, const char swap_command[], const char swap_format[]); 40swap_result getSwapFromSwapCommand(swap_config config, const char swap_command[], const char swap_format[]);
42swap_result getSwapFromSwapctl_BSD(swap_config config); 41swap_result getSwapFromSwapctl_BSD(swap_config config);
43swap_result getSwapFromSwap_SRV4(swap_config config); 42swap_result getSwapFromSwap_SRV4(swap_config config);