Commit graph

19 commits

Author SHA1 Message Date
Alvar Penning
88036425d5
check_swap: Fix Build At Least For OpenBSD
Fix build of check_swap for both CHECK_SWAP_SWAPCTL_SVR4 and
CHECK_SWAP_SWAPCTL_BSD build guards.

> $ make check_swap
>   CC       check_swap.d/swap.o
> check_swap.d/swap.c:58:32: error: too few arguments to function call, single argument 'config' was not specified
>    58 |         return getSwapFromSwapctl_BSD();
>       |                ~~~~~~~~~~~~~~~~~~~~~~ ^
> ././check_swap.d/check_swap.h:48:13: note: 'getSwapFromSwapctl_BSD' declared here
>    48 | swap_result getSwapFromSwapctl_BSD(swap_config config);
>       |             ^                      ~~~~~~~~~~~~~~~~~~
> 1 error generated.
> *** Error 1 in [...]/monitoring-plugins/plugins (Makefile:2869 'check_swap.d/swap.o': @echo "  CC   ...)
2025-09-16 00:19:04 +02:00
Lorenz Kästle
802e46f8ea Run clang-format again 2025-09-15 12:59:37 +02:00
Lorenz Kästle
e04d2ec8c6 check_swap: Fixes on NetBSD 2025-03-17 12:58:12 +01:00
Lorenz Kästle
5acd14fcfb Implement new output functionality for check_swap 2025-02-18 21:58:59 +01:00
Lorenz Kästle
bb88e38a34 check_swap stuff: Error out if meminfo file can not be opened 2024-11-15 15:10:50 +01:00
Lorenz Kästle
16075bd285 check_swap stuff: make type casts explicit instead of implicit 2024-11-15 15:05:52 +01:00
Lorenz Kästle
72676bdc14 check_swap stuff: improve error handling 2024-11-15 15:05:28 +01:00
Lorenz Kästle
23970766e7 check_swap stuff: Add comments to ifdef stuff to improve readability 2024-11-15 15:04:57 +01:00
Lorenz Kästle
a581465ca9 check_swap stuff: Use pragma once instead of include guard 2024-11-15 15:03:16 +01:00
Lorenz Kästle
152cdcf3e4 check_swap: change threshold handling again 2024-11-10 10:42:17 +01:00
Lorenz Kästle
9679551b20 check_swap: stricter error handling 2024-11-10 10:37:19 +01:00
Lorenz Kästle
77c0913f75 check_swap: Use sscanf more precisely to avoid false matches 2024-11-10 10:36:46 +01:00
Lorenz Kästle
651925dffc check_swap: Make check_swap work without thresholds 2024-11-10 01:58:41 +01:00
Lorenz Kästle
ed01d53447 Small fixes to check_swap stuff 2024-11-02 13:53:33 +01:00
Lorenz Kästle
3faeed07c4 Merge branch 'master' into check_swap_again 2024-11-02 13:37:39 +01:00
RincewindsHat
946d2f4b8f Implement stub functionality for SRV4 swapctl stuff 2024-01-04 02:11:48 +01:00
RincewindsHat
79d606abc1 Implement stub functionality for BSD swapctl stuff 2024-01-04 01:48:16 +01:00
RincewindsHat
442f50987c Add missing includes in plugins/check_swap.d/swap.c 2023-12-20 10:02:47 +01:00
RincewindsHat
2dec5182c5 check_swap: refactor to improve readability 2023-12-20 10:02:47 +01:00