Commit graph

4724 commits

Author SHA1 Message Date
waja
04fa8ae9e2
Merge pull request #2136 from waja/ci_dispatch 2025-07-23 15:43:59 +02:00
Jan Wagner
d2bea1d288 CI: Adding workflow_dispatch 2025-07-23 15:22:45 +02:00
Lorenz Kästle
da810e0dbe
Merge pull request #2134 from RincewindsHat/fix/check_ntp_peer_fmt_conv
check_ntp_peer: fix invalid conversion in printf
2025-07-14 10:03:13 +02:00
Lorenz Kästle
c43135a5e5 check_ntp_peer: fix invalid conversion in printf 2025-07-14 09:37:51 +02:00
Lorenz Kästle
55c0bb748e
Merge pull request #2109 from RincewindsHat/refactor/check_load
Refactor/check load
2025-07-06 23:38:59 +02:00
Lorenz Kästle
b191a8a055 check_load: fix tests 2025-07-06 23:16:34 +02:00
Lorenz Kästle
92c7b91002 Merge branch 'master' into refactor/check_load 2025-07-06 22:49:04 +02:00
Lorenz Kästle
bb4ce15997 Make multiline output look better 2025-07-06 22:47:01 +02:00
Lorenz Kästle
351b104894 check_load some number type fixes 2025-07-06 22:46:41 +02:00
Lorenz Kästle
b002a6870b check_load: Add top x functionality to output 2025-07-06 21:58:55 +02:00
Lorenz Kästle
4ef8af0d9a check_load: remove useless code and do some formatting 2025-07-06 21:46:54 +02:00
Lorenz Kästle
e63acdb83d
Merge pull request #2101 from RincewindsHat/refactor/check_procs
Refactor/check procs
2025-06-29 11:15:06 +02:00
Lorenz Kästle
882ef5015f Merge branch 'master' into refactor/check_procs 2025-06-28 09:53:59 +02:00
Lorenz Kästle
f43c52194c
Merge pull request #2116 from RincewindsHat/refactor/check_dhcp
Refactor/check dhcp
2025-06-23 13:31:00 +02:00
Lorenz Kästle
9f776105d4 Reapply "check_dhcp: reduce number of tests for weird reasons"
This reverts commit 612d261cbf.
2025-06-23 13:21:25 +02:00
Lorenz Kästle
612d261cbf Revert "check_dhcp: reduce number of tests for weird reasons"
This reverts commit 52338c3423.
2025-06-23 13:02:52 +02:00
Lorenz Kästle
528d2015d0 Add check_dhcp related files to Makefile 2025-06-23 13:02:41 +02:00
Lorenz Kästle
52338c3423 check_dhcp: reduce number of tests for weird reasons 2025-06-23 12:33:28 +02:00
Lorenz Kästle
bf0b389381 Adapt tests 2025-06-23 12:09:58 +02:00
Lorenz Kästle
d3f22c96bb check_dhcp: little fix to output 2025-06-23 12:09:58 +02:00
Lorenz Kästle
0453d6d1e2 Refactor check_dhcp 2025-06-23 12:09:58 +02:00
Lorenz Kästle
a0d3493f9d check_dhcp: clang-format 2025-06-23 12:09:58 +02:00
Lorenz Kästle
1150082f60
Merge pull request #2130 from RincewindsHat/check_icmp/adjustements
Check icmp/adjustements
2025-06-23 12:00:28 +02:00
Lorenz Kästle
bd55d9cd2d check_icmp: Add missing line ending in help 2025-06-23 11:46:45 +02:00
Lorenz Kästle
8626d22fc5 check_icmp: trigger help before anything important 2025-06-23 11:44:46 +02:00
Lorenz Kästle
6ac0580a10 check_icmp: Add comment to config 2025-06-23 11:42:25 +02:00
Lorenz Kästle
622d7f4c89 check_icmp: add long options to help 2025-06-23 11:41:56 +02:00
Lorenz Kästle
bf67d5cb53 check_icmp: remove dead comment 2025-06-23 11:41:41 +02:00
Lorenz Kästle
771ccfa526 check_icmp: remove unnecessary variable 2025-06-23 11:41:24 +02:00
Lorenz Kästle
7e9519e0ad check_icmp: correct output strings 2025-06-23 10:59:21 +02:00
Lorenz Kästle
b08bafc45c check_icmp: remove paket_interval, was never used anyway 2025-06-23 10:52:56 +02:00
Lorenz Kästle
27d30c3df0 Fix typo 2025-06-23 10:34:12 +02:00
Lorenz Kästle
efba4f7654 check_icmp: cleanup some leftover comments 2025-06-23 10:32:24 +02:00
Lorenz Kästle
cd20cc0632 check_icmp: add long options, add output format option
This commit switches check_icmp from getopt to getopt_long
to provide long options too and (most importantly) homogenize
option parsing between the different plugins.
2025-06-23 10:17:28 +02:00
Lorenz Kästle
8ae415ee4c Improve check_icmp help output 2025-06-23 10:16:42 +02:00
Lorenz Kästle
b8580c18e3
Merge pull request #2125 from RincewindsHat/refactor/check_icmp
Refactor check_icmp:

 - Far less global variables
 - Proper IPv6/legacy IP dual stack functionality (allowed mixed v4/v6 hosts)
 - Improved readability/understandability
 - General cleanup
2025-06-20 11:29:07 +02:00
Lorenz Kästle
d2735eecd4 Fix number of tests 2025-06-20 10:53:46 +02:00
Lorenz Kästle
6bc2e75199 Fix test with weird arguments 2025-06-20 10:28:45 +02:00
Lorenz Kästle
2bea8e9522 check_icmp: Remove signal handling and timeouts
The timeout option was redundant in that the runtime
of check_icmp was always limited by the input parameters
and therefore timeout gets removed with this commit to
avoid that confusion.

The rest of the signal handlings was removed too, since
the added complexity does not provide sufficient returns.
If check_icmp gets a signal, it now dies like most other
programs instead of trying to save some things and return a
(arguably wrong) result.
2025-06-20 10:04:34 +02:00
Lorenz Kästle
20e938bb54 Override state with min_hosts_alive 2025-06-19 01:15:37 +02:00
Lorenz Kästle
b71cb430cb Implement flexible state override functions 2025-06-19 01:15:11 +02:00
Lorenz Kästle
ca954e4f76 Reintroduce min_hosts_alive 2025-06-19 00:55:41 +02:00
Lorenz Kästle
43ae5fbe2d Fix possible multiplication overflow? 2025-06-17 15:44:35 +02:00
Lorenz Kästle
f680cd7b88 Improve error detection for threshold parsers 2025-06-17 15:19:30 +02:00
Lorenz Kästle
916d3a52a0
Merge pull request #2129 from RincewindsHat/check_fping_5.3_options
Add fping 5.2 and 5.3 options to check_fping
2025-06-12 13:45:21 +02:00
Lorenz Kästle
a669b2531d Remove options if fping version is too low and die directly 2025-06-12 13:33:50 +02:00
Lorenz Kästle
19f409ac55 Remove unnecessary newline 2025-06-12 13:26:55 +02:00
Lorenz Kästle
f2c6ce08e3 check_fping: small style improvement 2025-06-12 11:53:06 +02:00
Lorenz Kästle
7247fc656a Implement new fping options for fping 5.2 and 5.3
fping 5.2 and 5.3 add some new useful command line options
which this commit add to check_fping.

These are:

 * --fwmark - sets a firewall mark in the packages to make them
   identifiable (fping 5.2)
 * --icmp-timestamp - fping uses ICMP timestamp instead of ICMP
   Echo (fping 5.2)
 * --check-source - fping discards replies which originate not from
   the target address (fping 5.2)

The fping release notes describe theses options ( https://github.com/schweikert/fping/releases )
in a little bit more detail.
Currently the help display for those options is only shown
when fping was available in the appropriate version during
compilation.
2025-06-12 11:13:59 +02:00
Lorenz Kästle
88683af1da Implement autoconf logic for fping version detection 2025-06-11 17:09:27 +02:00