Commit graph

2481 commits

Author SHA1 Message Date
Lorenz Kästle
4f4966220b check_fping: clang-format 2025-03-11 02:05:13 +01:00
Lorenz Kästle
2a0943a761 Merge branch 'master' into refactor/check_dig 2025-03-10 21:39:11 +01:00
Lorenz Kästle
6cd097921f Allow setting of port independent of argument position again 2025-03-10 21:27:50 +01:00
Lorenz Kästle
3420d88a9c Merge branch 'master' into refactor/check_smtp 2025-03-10 21:07:55 +01:00
Lorenz Kästle
5cf53de34f check_smtp: fix positional host logic 2025-03-10 20:56:09 +01:00
Lorenz Kästle
897fef9370 check_smtp: small improvements 2025-03-10 20:54:52 +01:00
Lorenz Kästle
920d2e0873 Refactor check_dig 2025-03-10 16:44:17 +01:00
Lorenz Kästle
58f0834420 check_dig: clang-format 2025-03-10 16:43:30 +01:00
Lorenz Kästle
bd3ec036c7 Refactor check_by_ssh 2025-03-10 15:56:34 +01:00
Lorenz Kästle
cda3906b12 Refactor check_apt 2025-03-10 10:45:50 +01:00
Lorenz Kästle
3cadfa2dbe Merge branch 'master' into refactor/check_smtp 2025-03-10 09:58:27 +01:00
Lorenz Kästle
c5f873aa7b check_smtp: small style fixes 2025-03-10 09:56:05 +01:00
Lorenz Kästle
acf57dba52 check_smtp: Remove unused enum 2025-03-10 01:32:49 +01:00
Lorenz Kästle
883fcb607f Refactor check_smtp 2025-03-10 01:31:52 +01:00
Lorenz Kästle
0867319268 check_smtp: clang-format 2025-03-09 23:40:05 +01:00
Lorenz Kästle
809cd6a2f9 Merge branch 'master' into refactor/check_game 2025-03-09 23:27:53 +01:00
Lorenz Kästle
16cb24807d ignore CNAMEs in RDNS-mode #1460
Suppose your provider uses RFC 2317 (or RFC 4183 for that matter). The output of nslookup could look like the following:
2.120.22.172.in-addr.arpa	canonical name = 2.0/26.120.22.172.in-addr.arpa.
2.0/26.120.22.172.in-addr.arpa	name = rajesh.intern.prauscher.de.
Without this filter, check_dns would check the string against "2.0/26.120.22.172.in-addr.arpa., rajesh.intern.prauscher.de." which will fail for obvious reasons.
In forward DNS, this is achieved in line 165, as nslookup will print the address separate from the CNAME-resolving.

Original commit by Patrick Rauscher (prauscher@prauscher.de), adapted
here.
2025-03-09 15:43:06 +01:00
Lorenz Kästle
8a415c3c09 Add check_dns to distribution files 2025-03-09 12:45:15 +01:00
Lorenz Kästle
66b1997e05 Merge branch 'master' into refactor/check_dns 2025-03-09 12:44:44 +01:00
Lorenz Kästle
8b8ce8a605 Remove redundant NULL checks and replace deprecated index function 2025-03-09 12:41:13 +01:00
Lorenz Kästle
c0d9580dac check_dns: some comments, small improvements 2025-03-09 12:11:02 +01:00
Lorenz Kästle
65794e3137 Refactor check_dns 2025-03-09 12:04:40 +01:00
Lorenz Kästle
95311d2e2c Merge branch 'master' into refactor/check_game 2025-03-09 11:35:03 +01:00
Lorenz Kästle
0426b8947d Add check_ssh config to distributable files 2025-03-09 11:04:32 +01:00
Lorenz Kästle
9d5774aede Adapt number of tests 2025-03-09 10:25:01 +01:00
Lorenz Kästle
69819d8c95 Adapt test regex to new output 2025-03-09 10:24:28 +01:00
Lorenz Kästle
809e79c745 Remove failing test 2025-03-09 00:30:33 +01:00
Lorenz Kästle
fea6a662bd fix accidently remove parentheses in test 2025-03-09 00:12:37 +01:00
Lorenz Kästle
b6c2e8b258 Merge branch 'master' into refactor/check_ssh 2025-03-09 00:04:14 +01:00
Lorenz Kästle
f63d249984 Adapt further test to changed output 2025-03-09 00:03:18 +01:00
Lorenz Kästle
230054f94d clang-format 2025-03-08 10:55:21 +01:00
Lorenz Kästle
72fd885f4f Transform output format to a global state
This commit removes the format parameter from the mp_check
object and creates a module global variable instead.
This prevents thread safe usage of different mp_check objects
which should likely not present a big problem for now.
The reason for this change is effectively the very same,
the format was lost if an exit was triggered by a signal
handler (timeout in this example).
2025-03-07 23:38:50 +01:00
Lorenz Kästle
3cbd84ce75 Switch timeout handler to new output infrastructure 2025-03-07 23:38:50 +01:00
Lorenz Kästle
d35c43e95f Revert "Migrate check_users to new ouput infrastructure"
This reverts commit 10086edbf03fd807794bcfb3fff626da69a9fdb2.
2025-03-07 23:38:50 +01:00
Lorenz Kästle
53247ae748 netutils.c: clang-format + do NOT print here 2025-03-07 23:38:50 +01:00
Lorenz Kästle
1ba8110da7 check_ssh: adapt tests 2025-03-07 23:38:50 +01:00
Lorenz Kästle
2e9f9ebf7d check_ssh.c: clang-format 2025-03-07 23:38:50 +01:00
Lorenz Kästle
6428696f31 check_ssh: exit properly if TCP connection fails 2025-03-07 23:38:50 +01:00
Lorenz Kästle
92fb0ec662 check_ssh: add missing break statement 2025-03-07 23:38:50 +01:00
Lorenz Kästle
46683da7b7 check_ssh: fix typo 2025-03-07 23:38:50 +01:00
Lorenz Kästle
ce3eff0908 check_ssh: no more implicit conversion 2025-03-07 23:38:50 +01:00
Lorenz Kästle
b48ec884be check_ssh: Verify that timeout is a positive integer 2025-03-07 23:38:50 +01:00
Lorenz Kästle
9ea4dbc253 check_ssh: move only time relevant stuff in timeout area 2025-03-07 23:38:50 +01:00
Lorenz Kästle
add5bfb1e4 check_ssh: Move default SSH constant around a bit 2025-03-07 23:38:50 +01:00
Lorenz Kästle
5ee9a5eadd check_ssh: modify usage string to avoid old call syntax 2025-03-07 23:38:50 +01:00
Lorenz Kästle
ed06df7f34 check_ssh: Migrate to new output infrastructure 2025-03-07 23:38:50 +01:00
Lorenz Kästle
c87bc7eee4 check_ssh: centralize configuration in external header 2025-03-07 23:38:50 +01:00
Lorenz Kästle
fb4f46f93d Migrate check_users to new ouput infrastructure 2025-03-07 23:38:50 +01:00
Lorenz Kästle
665e2f9130 clang-format 2025-03-07 23:38:50 +01:00
Lorenz Kästle
1d55c22797
Merge pull request #2075 from RincewindsHat/refactor/check_dbi
Refactor/check dbi
2025-03-07 23:38:04 +01:00