Commit graph

2686 commits

Author SHA1 Message Date
Lorenz Kästle
684602ddec check_curl: http3 is only available with libcurl 7.66 or later 2025-09-11 14:44:17 +02:00
Lorenz Kästle
99206dab7a check_curl: refactoring to modularize code 2025-09-11 13:44:55 +02:00
Lorenz Kästle
6969f57192 check_curl: improve option handling a bit 2025-09-11 11:24:16 +02:00
Lorenz Kästle
977e0a7f8b check_curl: fix function signature 2025-09-11 11:14:29 +02:00
Lorenz Kästle
b44cbae7fb check_curl: less global state 2025-09-11 11:11:44 +02:00
Lorenz Kästle
a2ca373e2d sslutils: some refactoring to improve readability 2025-09-10 13:41:46 +02:00
Lorenz Kästle
572ad994b1 plugins-netutils: return proper state from test functions 2025-09-10 13:41:22 +02:00
Lorenz Kästle
c7274d5627 netutils.h: clang-format 2025-09-10 13:40:21 +02:00
Lorenz Kästle
0926e73e0e sslutils.c: clang-format 2025-09-10 13:32:50 +02:00
Lorenz Kästle
4b19852dcc check_curl: remove the other gotos 2025-09-10 12:22:46 +02:00
Lorenz Kästle
2c81d1257b check_curl: remove goto logic 2025-09-10 12:06:48 +02:00
Lorenz Kästle
669441d16c check_curl: set http port to 80 by default 2025-09-10 11:39:42 +02:00
Lorenz Kästle
c06ea4e44c check_curl: pre compile regex for string matching 2025-09-10 11:08:52 +02:00
Lorenz Kästle
01f3532284 check_curl: remove another global variable 2025-09-10 11:07:55 +02:00
Lorenz Kästle
e77bddb2e6 Merge branch 'master' into refactor/check_curl 2025-09-10 09:49:17 +02:00
Lorenz Kästle
75f04ab4b0 check_http: formatting + no-brainer linter fixes 2025-09-09 15:20:29 +02:00
Lorenz Kästle
40b062f1bd check_curl: more refactoring 2025-09-09 15:12:03 +02:00
Lorenz Kästle
94ae1eccbc Fix some include paths 2025-09-09 02:07:55 +02:00
Lorenz Kästle
fbd60d6a9d Merge branch 'master' into refactor/check_curl 2025-09-09 02:07:32 +02:00
Lorenz Kästle
c43f845c22 Adjust number of tests 2025-09-09 01:43:27 +02:00
Lorenz Kästle
2192c6a8a1 Add break statement to switch path 2025-09-09 01:27:27 +02:00
Lorenz Kästle
c382768530 Little adaptions for old compilers 2025-09-08 16:35:02 +02:00
Lorenz Kästle
2aabc4d490 Fix spelling ... 2025-09-08 16:04:23 +02:00
Lorenz Kästle
87195f5511 check_snmp: refactoring + fixes
This commit moves the state retention logic to check_snmp as it is only
used there and I do not want it to be used at all, so it doesn't get a
place in the lib.

Otherwise this adapts tests and fixes the rate computing in the
refactored version of check_snmp.
Also fixes some bugs detected with the tests
2025-09-08 15:57:06 +02:00
Lorenz Kästle
1aefb1f9df snmp: fix complaint of snmpd about paths 2025-09-08 15:54:08 +02:00
Lorenz Kästle
41d309d438 check_snmp: improve string quoting in result 2025-09-01 11:22:58 +02:00
Lorenz Kästle
a7c6760cfe check_snmp: Small improvements + fix dereference bug 2025-08-30 14:19:06 +02:00
Lorenz Kästle
7f1877f760 check_snmp: Fix number processing (offset + multiplier) 2025-08-30 14:18:42 +02:00
Lorenz Kästle
77a5db04d7 check_snmp: implement output format setting 2025-08-30 14:16:36 +02:00
Lorenz Kästle
1ca5a6040a check_snmp: Make linter happy 2025-08-29 10:50:53 +02:00
Lorenz Kästle
b4d84ebfee check_snmp: Remove options description for input delimiter 2025-08-29 10:42:19 +02:00
Lorenz Kästle
e4c59440f0 Build check_snmp unconditionally 2025-08-28 15:22:04 +02:00
Lorenz Kästle
ebc2415330 check_snmp: fix DES availability detection(?) 2025-08-28 13:14:29 +02:00
Lorenz Kästle
553a230a28 check_snmp: formatting 2025-08-28 11:52:15 +02:00
Lorenz Kästle
f5ad4275ff check_snmp: Test for availability of DES privacy protocol 2025-08-28 11:52:03 +02:00
Lorenz Kästle
bd6cff7f9c check_snmp: use snmp v2c if community is given 2025-08-27 19:54:09 +02:00
Lorenz Kästle
f1104f49a4 Fix one more typo 2025-08-27 19:20:41 +02:00
Lorenz Kästle
78cb7b2288 check_snmp: fix typos 2025-08-27 19:12:56 +02:00
Lorenz Kästle
75f792bc6b check_snmp: declare internal functions static 2025-08-27 16:43:32 +02:00
Lorenz Kästle
faf794b401 check_snmp: remove leftover multiply function 2025-08-27 16:43:11 +02:00
Lorenz Kästle
015e4c0986 check_snmp: fix/adapt tests 2025-08-27 16:42:06 +02:00
Lorenz Kästle
e490c5f969 check_snmp: hopefully fix helpers 2025-08-27 16:41:46 +02:00
Lorenz Kästle
f976155863 check_snmp: Improve error handling 2025-08-27 16:41:02 +02:00
Lorenz Kästle
a27862a9c7 check_snmp: rebuild threshold parsing 2025-08-27 12:17:46 +02:00
Lorenz Kästle
7fe6ac8d08 rebuild check_snmp 2025-08-25 15:28:04 +02:00
Lorenz Kästle
7382fa90f8 Merge branch 'master' into refactor/check_users 2025-08-11 21:54:05 +02:00
Lorenz Kästle
fb39f96ac6 check_users: Use sd_get_uids instead of sd_get_session
Previously check_users in combination with systemd used
sd_get_sessions (3) to aquire the number of users, probably
with the idea that every users opens a session.
Turns out, that a user can have multiple sessions and we only really
want to know how many users there are.

This commit changes to sd_get_uids (3) to achieve that target.
2025-08-11 21:49:20 +02:00
Lorenz Kästle
2757550558 clang-format 2025-08-01 14:35:23 +02:00
Lorenz Kästle
a69dff1522 check_ssh: Put variable in the correct scope 2025-08-01 14:35:13 +02:00
Lorenz Kästle
3c53bf623d check_ssh: Fix format expression 2025-08-01 14:34:29 +02:00