summaryrefslogtreecommitdiffstats
path: root/plugins/check_swap.d/swap.c
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2024-11-10 01:58:41 +0100
committerLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2024-11-10 01:58:41 +0100
commit651925dffce258bf71a6717fd3d4e0969f29b6a6 (patch)
treea4f36840dfc454b3e9a03810cbe560813efa56de /plugins/check_swap.d/swap.c
parent4b7977b25bda44a9a781d53011b73e71f7167c02 (diff)
downloadmonitoring-plugins-651925dffce258bf71a6717fd3d4e0969f29b6a6.tar.gz
check_swap: Make check_swap work without thresholds
Diffstat (limited to 'plugins/check_swap.d/swap.c')
-rw-r--r--plugins/check_swap.d/swap.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/check_swap.d/swap.c b/plugins/check_swap.d/swap.c
index 18db210c..293fdd71 100644
--- a/plugins/check_swap.d/swap.c
+++ b/plugins/check_swap.d/swap.c
@@ -10,6 +10,9 @@ swap_config swap_config_init(void) {
10 tmp.no_swap_state = STATE_CRITICAL; 10 tmp.no_swap_state = STATE_CRITICAL;
11 tmp.conversion_factor = SWAP_CONVERSION; 11 tmp.conversion_factor = SWAP_CONVERSION;
12 12
13 tmp.warn.is_set = false;
14 tmp.crit.is_set = false;
15
13#ifdef _AIX 16#ifdef _AIX
14 tmp.on_aix = true; 17 tmp.on_aix = true;
15#else 18#else