Commit graph

2150 commits

Author SHA1 Message Date
RincewindsHat
5275f81e38 check_snmp: Remove unused variable 2023-12-29 00:47:29 +01:00
RincewindsHat
ad864430b0 check_http: Remove self assignment of a variable and add some comments 2023-12-29 00:45:54 +01:00
RincewindsHat
c1c9abbfca Change iritating NULL assignment 2023-12-29 00:45:14 +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
RincewindsHat
00d58ad187 check_tcp: Use C99 booleans 2023-10-18 20:29:31 +02:00
RincewindsHat
51db32cc1d check_ssh: Use C99 booleans 2023-10-18 20:24:13 +02:00
RincewindsHat
d4539f8662 check_snmp: Use C99 booleans 2023-10-18 20:22:06 +02:00
RincewindsHat
9ccb98aeb5 check_real: Use C99 booleans 2023-10-18 20:19:35 +02:00
RincewindsHat
555902bf76 check_radius: Use C99 booleans 2023-10-18 20:15:30 +02:00
RincewindsHat
47d3e156c5 check_ping: Use C99 booleans 2023-10-18 17:29:43 +02:00
RincewindsHat
9274b6db8b check_pgsql: Use C99 booleans 2023-10-18 17:26:43 +02:00
RincewindsHat
e3cc83f6ae check_overcr: Use C99 booleans 2023-10-18 17:21:35 +02:00
RincewindsHat
03dfd8f5b6 check_nwstat: Use C99 booleans 2023-10-18 17:18:53 +02:00
RincewindsHat
c849536609 check_ntp_time: Use C99 booleans 2023-10-18 17:15:19 +02:00
RincewindsHat
a7e494192d check_ntp_peer: Use C99 booleans 2023-10-18 17:11:21 +02:00