Lorenz Kästle
c08e2bc656
Add libmysqlclient-dev to dependencies
2025-02-24 20:28:05 +01:00
Lorenz Kästle
a517dc614e
Add MySQL server version dectection and adaptive replica query
2025-02-24 19:52:08 +01:00
Lorenz Kästle
97894cdd17
Add check-replica option for check_mysql, deprecate check_slave
...
This commit adds an option "check-replica" to check_mysql which
replaces "check-slave" (which still works).
The changes are introduced to follow the naming scheme of
MySQL/MariaDB, since this was changed there in version 8 (MySQL) or
10.5.1 (MariaDB).
2025-02-24 19:50:34 +01:00
Lorenz Kästle
b8f203ace7
Rename variable check_slave to check_replica
2025-02-20 18:05:36 +01:00
Lorenz Kästle
599c137fd3
clang-format
2025-02-20 17:11:06 +01:00
Lorenz Kästle
b38dec3e9b
Merge pull request #2066 from RincewindsHat/remove_roadmap
...
Remove ROADMAP
2025-02-20 17:03:33 +01:00
Lorenz Kästle
c2919d5fa7
Remove ROADMAP
...
The roadmap file in this repository has not been used for decades.
This commit removes it to avoid confusion.
2025-02-20 16:53:27 +01:00
Lorenz Kästle
a7b3bb968a
Merge pull request #2065 from RincewindsHat/opttest_tool
...
Opttest tool
2025-02-20 16:38:34 +01:00
Lorenz Kästle
0d0f4ee7e3
Add a comment to opttest to explain the purpose
2025-02-19 19:46:37 +01:00
Lorenz Kästle
faacf5525b
Fix wrong exit codes
2025-02-19 19:44:17 +01:00
Lorenz Kästle
b982e12ecf
Fix opttest script
2025-02-19 19:43:40 +01:00
Lorenz Kästle
cb5abf1981
opttest.pl: Move to tools
2025-02-19 14:36:37 +01:00
Lorenz Kästle
73bd77ef84
opttest.pl Fix Perl complaints
2025-02-19 14:36:05 +01:00
Lorenz Kästle
99a978b669
Merge pull request #2062 from orlitzky/snmpgetnext
...
Require snmpgetnext to build check_snmp
2025-02-17 23:28:54 +01:00
Michael Orlitzky
e6086f597b
configure.ac: require snmpgetnext for check_snmp
...
PATH_TO_SNMPGETNEXT is used unconditionally in plugins/check_snmp.c,
and the build will fail if it is left undefined (that is, if we are
building check_snmp but snmpgetnext was neither found on the user's
PATH or supplied manually).
To avoid this build failure, we now test for snmpgetnext inside the
case for snmpget, and skip check_snmp unless BOTH are found.
2025-02-15 22:58:07 -05:00
Michael Orlitzky
df03c12a2b
configure.ac: use AS_IF in net-snmp tests
...
Not strictly required here, but the AS_IF macro is generally safer
because it handles (often unintentional) AC_REQUIRE calls.
2025-02-15 22:57:55 -05:00
Michael Orlitzky
69296300f6
configure.ac: update net-snmp homepage
2025-02-15 22:57:51 -05:00
Lorenz Kästle
e23325f7c3
Merge pull request #2056 from monitoring-plugins/fix_check_http_state_regex
...
check_http: fix documentation for --state-regex
2025-01-07 11:36:08 +01:00
Lorenz Kästle
558aca48ed
Merge branch 'master' into fix_check_http_state_regex
2025-01-07 11:25:47 +01:00
Lorenz Kästle
a8ac865e67
Merge pull request #2058 from weiss/update-autoconf
...
Update configure.ac to Autoconf 2.71 syntax
2025-01-01 23:25:15 +01:00
Holger Weiss
29396a397e
configure.ac: Lower required Autoconf version
...
Revert the bump to requiring Autoconf 2.71, as some of our CI images
don't offer that version yet. Keep the remaining changes though, as
they should be compatible with Autoconf 2.64.
2024-12-31 12:38:40 +01:00
Holger Weiss
d1455e4e0c
Add new Gnulib file to .gitignore
2024-12-31 11:34:01 +01:00
Holger Weiss
b709a4d858
Don't check for TIME_WITH_SYS_TIME
...
Follow the suggestion made by the autoupdate(1) tool:
| All current systems provide time.h; it need not be checked for. Not
| all systems provide sys/time.h, but those that do, all allow you to
| include it and time.h simultaneously.
Therefore, include sys/time.h if available, and include time.h
unconditionally.
2024-12-31 11:13:01 +01:00
Holger Weiss
28b4f8dde4
configure.ac: Bump Autoconf to version 2.71
...
Apply all changes suggested by the autoupdate(1) tool.
2024-12-31 11:07:00 +01:00
Lorenz Kästle
39680498ee
Merge pull request #1976 from RincewindsHat/check_swap_again
...
Refactor check_swap
2024-12-29 21:23:38 +01:00
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
Andreas Baumann
e445a386f8
check_http: fix documentation for --state-regex
2024-12-27 15:32:24 +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