RincewindsHat
08c3f0f737
Add test proc/meminfo file and corresponding test
2023-12-20 10:02:47 +01:00
Lorenz Kästle
9083896d9c
Include new directory and contents into distribution
2023-12-20 10:02:47 +01:00
Lorenz Kästle
fc9caba617
Hopefully fix build
2023-12-20 10:02:47 +01:00
RincewindsHat
442f50987c
Add missing includes in plugins/check_swap.d/swap.c
2023-12-20 10:02:47 +01:00
RincewindsHat
6fcbbaafc4
Implement first unit test for check_swap
2023-12-20 10:02:47 +01:00
RincewindsHat
2dec5182c5
check_swap: refactor to improve readability
2023-12-20 10:02:47 +01:00
RincewindsHat
2289d094ae
check_swap: Hopefully fix stuff on BSD
2023-12-20 10:02:47 +01:00
RincewindsHat
6011cdf554
check_swap: hopefully fix SRV4 stuff
2023-12-20 10:02:47 +01:00
RincewindsHat
8cdcb1a8ad
Update copyright
2023-12-20 10:02:47 +01:00
RincewindsHat
06c3393963
check_swap: clang-format + minor cosmetics/debugging/etc
2023-12-20 10:02:47 +01:00
RincewindsHat
22a423ad5d
check_swap: Return byte number (in linux) and simplify code after that
2023-12-20 10:02:47 +01:00
RincewindsHat
3a10773c09
check_swap: Heavily refactored linux part
2023-12-20 10:02:47 +01:00
RincewindsHat
b32d7421ee
check_swap: Rename type since *_t is reserved for C standard types
2023-12-20 10:02:47 +01:00
RincewindsHat
42f5f16578
check_swap: Change another fake boolen to a real one
2023-12-20 10:02:47 +01:00
Sven Hartge
c3ab362f87
check_procs: Generalise wording, remove mentioning of nrpe
2023-12-04 16:40:34 +01:00
Sven Hartge
45f633ef23
check_procs: Improve help text, mentioning excluded processes
...
Also reindent the code, converting stray tabs to 2 spaces.
2023-12-04 14:33:36 +01:00
Sven Hartge
897e4a8409
check_procs: ignore our own children
...
On systems with higher core counts check_procs will occasionally see
its own "ps" child process with a high CPU percentage and raise a
false alarm.
Ignoring the child processes of check_procs prevents this from happening.
2023-11-28 13:21:05 +01:00
Sven Nierlein
579db5a930
check_disk: fix ignore-missing in combination with includes ( fixes #1963 )
...
Using --ignore-missing together with regex matching and ignore option lead
to a wrong error message.
./check_disk -n -w 10% -c 5% -W 10% -r /dummy -i /dummy2
DISK UNKNOWN: Paths need to be selected before using -i/-I. Use -A to select all paths explicitly
The use case here is a cluster with fail-over mounts. So it is a valid situation that
the regex match does not find anything in addtition with a ignore which also does not exist.
After this patch:
./check_disk -n -w 10% -c 5% -W 10% -r /dummy -i /dummy2
DISK OK - No disks were found for provided parameters|
2023-11-27 13:04:10 +01:00
Sven Nierlein
f59c516011
check_disk: add -n short option for --ignore-missing
...
Signed-off-by: Sven Nierlein <sven@consol.de>
2023-11-27 13:04:10 +01:00
RincewindsHat
4f4fb3d9af
check_dns: Remove unused variable
2023-11-23 00:12:49 +01:00
RincewindsHat
479ff15249
check_ntp_peer: Fixes for Wmaybe-unitialized and some restructuring
2023-11-23 00:11:39 +01:00
RincewindsHat
1b06060cbc
Fix logic in is_uint64_t to fix type-limit warning
2023-11-23 00:07:02 +01:00
Lorenz Kästle
53a15f0c2c
Merge pull request #1951 from RincewindsHat/compiler_warnings_maybe_unused
...
Fix compiler warning for uninitialized variable
2023-11-22 23:34:59 +01:00
Lorenz Kästle
f1e91405c3
Merge pull request #1958 from RincewindsHat/check_users_fix_segfault
...
check_users: fix segfault
2023-11-12 02:31:24 +01:00
Louis Sautier
eebb280ca3
check_ups: output ups.realpower if supported
2023-11-10 00:08:49 +01:00
RincewindsHat
a9d77ac545
check_users: Update help to properly show that thresholds are ranges
2023-10-31 01:51:27 +01:00
RincewindsHat
d9a999de7b
Enhance tests to check wheter the option validation works
2023-10-31 01:50:46 +01:00
RincewindsHat
cff821257b
check_users: Change option for sanity checking arguments to avoid segfault
2023-10-31 01:47:26 +01:00
Lorenz Kästle
77e38ac1c0
Merge pull request #1953 from RincewindsHat/compiler_warnings-sign-compare
...
Fixes for -Wsign-compare
2023-10-29 11:09:00 +01:00
RincewindsHat
eead88edda
check_tcp: Fixes an error with using the wrong type for a variable
2023-10-19 13:47:21 +02:00
RincewindsHat
81f3b41651
Fix fallout of the previous changes
2023-10-19 12:20:27 +02:00
RincewindsHat
07f9c438f3
Fixes for -Wsign-compare
2023-10-19 12:10:55 +02:00
RincewindsHat
7ba8463506
check_ntp: Initialize intermediate results in any case
2023-10-19 11:59:43 +02:00
RincewindsHat
0ab5e10d9b
check_curl: Initialize pointer before usage
2023-10-19 11:55:11 +02:00
RincewindsHat
decca6d290
check_smtp: Restore behaviour pre ead5526efa regarding -D and TLS
2023-10-19 11:31:28 +02:00
RincewindsHat
0c92b39083
check_dbi: Fix compiler warning for uninitialized variable
2023-10-19 11:14:23 +02:00
RincewindsHat
efe79595d3
check_ntp: Use C99 booleans
2023-10-19 10:22:40 +02:00
RincewindsHat
93a4bae90d
Revert "check_ntp: Use C99 booleans"
...
This reverts commit ca5af12f94 .
2023-10-19 10:18:12 +02:00
RincewindsHat
d820929dd8
check_smtp: little fix for C99 booleans missed earlier
2023-10-19 10:17:28 +02:00
RincewindsHat
531e0f9427
check_ntp_time: Use C99 booleans
2023-10-19 10:04:24 +02:00
RincewindsHat
a3d76fed02
Revert "check_ntp_time: Use C99 booleans"
...
This reverts commit c849536609 .
2023-10-19 09:53:37 +02:00
RincewindsHat
0722dbfb8a
check_swap: Use C99 booleans
2023-10-18 20:58:18 +02:00
RincewindsHat
163ad151b9
check_smtp: Use C99 booleans
2023-10-18 20:55:22 +02:00
RincewindsHat
369d98cc36
plugins/utils: Use C99 booleans
2023-10-18 20:51:23 +02:00
RincewindsHat
a51e8f82e7
plugins/netutils: Use C99 booleans
2023-10-18 20:46:16 +02:00
RincewindsHat
c2ceefd783
check_negate: Use C99 booleans
2023-10-18 20:42:25 +02:00
RincewindsHat
fd67d1e344
check_users: Use C99 booleans
2023-10-18 20:40:24 +02:00
RincewindsHat
6d62fea757
plugins/common.h: Remove superflous TRUE/FALSE definitions
2023-10-18 20:38:34 +02:00
RincewindsHat
bbd2bd2fa7
check_ups: Use C99 booleans
2023-10-18 20:37:17 +02:00
RincewindsHat
3aff9c8d13
check_time: Use C99 booleans
2023-10-18 20:33:06 +02:00