Commit graph

4373 commits

Author SHA1 Message Date
Lorenz Kästle
54529b6013 Merge branch 'master' into check_swap_again 2024-12-29 20:10:05 +01:00
Lorenz Kästle
e301a9410d
Merge pull request #2057 from RincewindsHat/fix/test_rpm_build
Fix breakage in rpm build test due to changes in mock
2024-12-29 19:42:47 +01:00
Lorenz Kästle
908c2e7b24 Fix breakage in rpm build test due to changes in mock 2024-12-29 19:34:17 +01:00
Andre Klärner
e7dbfd4223 check_curl: enable internal cookie handling
This enables us to enable curl cookie engine by specifying an empty
filename as the cookie jar file.

This works, since curl's CURLOPT_COOKIEFILE option allows passing an
empty string as filename, which it interprets as a request to enable the
cookie processing. But since CURLOPT_COOKIEJAR would now attempt to
write to a file named by an empty filename, it would break again (or at
least produce a warning in verbose output).

Overall this is allows to handle checking URLs with cookie based
sessions without persisting the cookies to disk, by using the
curl-internal redirect following.
2024-12-02 20:48:24 +01:00
Lorenz Kästle
afb1734ec4
Merge pull request #2053 from klaernie/support
fix typo in SUPPORT
2024-11-28 23:14:51 +01:00
Andre Klaerner
28e7fe3372
fix typo in SUPPORT 2024-11-28 22:52:41 +01:00
Lorenz Kästle
89f79cf2d2 check_icmp: set rtmin initially 2024-11-28 09:02:29 +01:00
Lorenz Kästle
714fd1aceb check_icmp: Add some lines to introduce some readability 2024-11-28 09:02:29 +01:00
Lorenz Kästle
eb9f9cf8c4 check_icmp: clang-format 2024-11-28 09:02:29 +01:00
Lorenz Kästle
5a5d7537a2
Merge pull request #2050 from RincewindsHat/fix/ssl_version_documentation
check_curl: update TLS notification notes, mention deprecation of TLSv1.0 and TLSv1.1
2024-11-27 14:58:09 +01:00
Lorenz Kästle
8de299308c check_curl: update TLS notification notes 2024-11-27 14:22:02 +01:00
Lorenz Kästle
bb88e38a34 check_swap stuff: Error out if meminfo file can not be opened 2024-11-15 15:10:50 +01:00
Lorenz Kästle
16075bd285 check_swap stuff: make type casts explicit instead of implicit 2024-11-15 15:05:52 +01:00
Lorenz Kästle
72676bdc14 check_swap stuff: improve error handling 2024-11-15 15:05:28 +01:00
Lorenz Kästle
23970766e7 check_swap stuff: Add comments to ifdef stuff to improve readability 2024-11-15 15:04:57 +01:00
Lorenz Kästle
a581465ca9 check_swap stuff: Use pragma once instead of include guard 2024-11-15 15:03:16 +01:00
Lorenz Kästle
152cdcf3e4 check_swap: change threshold handling again 2024-11-10 10:42:17 +01:00
Lorenz Kästle
9679551b20 check_swap: stricter error handling 2024-11-10 10:37:19 +01:00
Lorenz Kästle
77c0913f75 check_swap: Use sscanf more precisely to avoid false matches 2024-11-10 10:36:46 +01:00
Lorenz Kästle
651925dffc check_swap: Make check_swap work without thresholds 2024-11-10 01:58:41 +01:00
Lorenz Kästle
4b7977b25b check_swap: Fix text in old school tests 2024-11-10 01:40:29 +01:00
Lorenz Kästle
ecbd9e9cb3 test_check_swap: declare verbose in tests for now 2024-11-10 01:30:40 +01:00
Lorenz Kästle
801d0faf45 test_check_swap: improvements and updates to unit test code 2024-11-10 01:28:52 +01:00
Lorenz Kästle
14342ac87a check_swap: Small improvements 2024-11-10 00:19:03 +01:00
Lorenz Kästle
21c3951590 Merge branch 'master' into check_swap_again 2024-11-10 00:06:06 +01:00
Lorenz Kästle
5d7d620903
Merge pull request #2046 from RincewindsHat/fix/format_string
Fix false formatting directive in printf
2024-11-09 11:37:46 +01:00
Lorenz Kästle
ed52a7dbb7
Merge pull request #2045 from RincewindsHat/fix/calloc_argument_order
Fix argument order of calloc on several occasions
2024-11-09 11:31:48 +01:00
Lorenz Kästle
f1dae44075 Fix false formatting directive in printf 2024-11-09 11:26:09 +01:00
Lorenz Kästle
6eb5be9e30 Fix argument order of calloc on several occasions 2024-11-09 10:49:21 +01:00
Lorenz Kästle
b370072a5a
Merge pull request #2043 from RincewindsHat/cleanup/leftovers
Cleanup/leftovers
2024-11-08 23:04:19 +01:00
Lorenz Kästle
ef39064f51
Merge pull request #2032 from RincewindsHat/cleanup/check_apt
Cleanup/check apt
2024-11-08 22:59:54 +01:00
Lorenz Kästle
82f1a167f6
Merge branch 'master' into cleanup/check_apt 2024-11-08 19:45:04 +01:00
Lorenz Kästle
e8905c9e9c
Merge branch 'master' into cleanup/leftovers 2024-11-08 13:55:57 +01:00
Lorenz Kästle
14aad851bc
Merge pull request #2044 from RincewindsHat/fix/fedora-rpm-build
Fix RPM build tests
2024-11-08 13:55:13 +01:00
Lorenz Kästle
e5a825de74 Fix RPM build tests 2024-11-08 13:46:35 +01:00
Lorenz Kästle
bd5608b9fc check_ups: do not declare print_usage static 2024-11-08 12:51:39 +01:00
Lorenz Kästle
b830c7a3e0 check_smtp: delare previously missed file local variables static 2024-11-08 12:51:14 +01:00
Lorenz Kästle
6848e618c0 check_ups: delare file local variables static 2024-11-08 12:49:37 +01:00
Lorenz Kästle
d330b975b3 check_smtp: delare file local variables static 2024-11-08 12:47:32 +01:00
Lorenz Kästle
6644a81c57 check_radius: delare file local variables static 2024-11-08 12:46:08 +01:00
Lorenz Kästle
0c592fa860 check_ide_smart: fix misleading static declaration 2024-11-08 12:44:21 +01:00
Lorenz Kästle
54042ac52f check_procs: use proper escape for % 2024-11-08 12:39:44 +01:00
Lorenz Kästle
99bb7dd0f8 check_procs: delare file local variables static 2024-11-08 12:39:08 +01:00
Lorenz Kästle
5130e5b0d3 check_nwstat: delare file local variables static 2024-11-08 12:36:41 +01:00
Lorenz Kästle
e3efbb796a check_ntp: delare file local variables static 2024-11-08 12:35:27 +01:00
Lorenz Kästle
c7124379cd check_nt: delare file local variables static 2024-11-08 12:34:24 +01:00
Lorenz Kästle
458af51688 check_mysql: delare file local variables static 2024-11-08 12:32:45 +01:00
Lorenz Kästle
b7b8abb853 check_ldap: delare file local variables static 2024-11-08 12:30:38 +01:00
Lorenz Kästle
2031a5aceb check_overcr: delare file local variables static 2024-11-08 12:20:03 +01:00
Lorenz Kästle
4079ba3c47 check_apt: Purify run_upgrade function 2024-11-08 11:37:30 +01:00