Commit graph

4815 commits

Author SHA1 Message Date
Lorenz Kästle
ab66b41d23 check_curl: create outsourced helpers in extra files 2025-09-12 01:14:14 +02:00
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
f69aba3129
Merge pull request #2145 from RincewindsHat/check_http_improvements
check_http: formatting + no-brainer linter fixes
2025-09-09 15:28:49 +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
615fec347c
Merge pull request #2144 from RincewindsHat/refactor/check_snmp
Refactor check snmp:
 - Switch from executing `snmpget`/`snmpgetnext` to linking directly agains net-snmp
 - Refactor to use test abstraction -> allows for JSON output
2025-09-09 01:57:25 +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
76e1a1fa8c Activate mib parsing in Debian CI pipeline 2025-09-09 01:18:21 +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
be9db2e02f lib: code formatting, perfdata label sanity checking and so on 2025-09-08 15:59:20 +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
28bb2fa0a4 lib/utils_base.c: small refactoring 2025-09-01 11:57:36 +02:00
Lorenz Kästle
888cd29202 lib/utils_base.c: clang-format 2025-09-01 11:24:44 +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
b65f94fe0e Remove testing for SNMPGETNEXT from autotools stuff 2025-08-28 11:24:16 +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
d3e1c0314d Fix Specfile requires 2025-08-27 19:29:56 +02:00
Lorenz Kästle
334c7e3e13 Add libsnmp-dev dependency to codeql gh action 2025-08-27 19:27:07 +02:00
Lorenz Kästle
f1104f49a4 Fix one more typo 2025-08-27 19:20:41 +02:00
Lorenz Kästle
776c51a66f Add netsnmp lib to specfile 2025-08-27 19:18:15 +02:00
Lorenz Kästle
7ff0e518e4 Add libsnmp-dev to github action dependencies 2025-08-27 19:14:51 +02:00
Lorenz Kästle
78cb7b2288 check_snmp: fix typos 2025-08-27 19:12:56 +02:00