summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
8 daysMerge pull request #2157 from sthen/fix_without_utmpxHEADmastercoverity/masterLorenz Kästle2-3/+1
fixes check_users build on OpenBSD (without utmpx)
8 daysfixes check_users build on OpenBSD (without utmpx)Stuart Henderson2-3/+1
8 daysMerge pull request #2156 from RincewindsHat/check_mysql_server_infoLorenz Kästle1-5/+2
check_mysql: Assume MySQL server by default (in replica check)
8 dayscheck_mysql: Assume MySQL server by default (in replica check)Lorenz Kästle1-5/+2
In the Debian Bug tracker (and then Github) a person pointed out, that a MySQL server does not respond with a hint that is indeed the MySQL software but only with the version string. Which makes sense if one assumes to be the only implementation. This commit changes the behaviour of the Replica check to assume that the counterpart is a MySQL server if there are not hints that it is a MariaDB server.
2025-09-17Merge pull request #2154 from RincewindsHat/new-output/check_clusterLorenz Kästle2-19/+60
check_cluster: new output functionality
2025-09-17check_cluster: new output functionalityLorenz Kästle2-19/+60
2025-09-17Merge pull request #2151 from oxzi/check_by_ssh-ignore-stderrLorenz Kästle2-8/+17
check_by_ssh: Ignore output on stderr by default
2025-09-16Merge pull request #2148 from RincewindsHat/refactor/check_aptLorenz Kästle3-86/+188
Refactor/check apt: implement new output functionality
2025-09-16fix default check stateLorenz Kästle1-1/+1
2025-09-16Fix check_apt testsLorenz Kästle1-6/+8
2025-09-16Merge pull request #2153 from oxzi/check_swap-fix-bsd-svr4Lorenz Kästle1-2/+2
check_swap: Fix Build At Least For OpenBSD
2025-09-16check_swap: Fix Build At Least For OpenBSDAlvar Penning1-2/+2
Fix build of check_swap for both CHECK_SWAP_SWAPCTL_SVR4 and CHECK_SWAP_SWAPCTL_BSD build guards. > $ make check_swap > CC check_swap.d/swap.o > check_swap.d/swap.c:58:32: error: too few arguments to function call, single argument 'config' was not specified > 58 | return getSwapFromSwapctl_BSD(); > | ~~~~~~~~~~~~~~~~~~~~~~ ^ > ././check_swap.d/check_swap.h:48:13: note: 'getSwapFromSwapctl_BSD' declared here > 48 | swap_result getSwapFromSwapctl_BSD(swap_config config); > | ^ ~~~~~~~~~~~~~~~~~~ > 1 error generated. > *** Error 1 in [...]/monitoring-plugins/plugins (Makefile:2869 'check_swap.d/swap.o': @echo " CC ...)
2025-09-15check_by_ssh: Ignore output on stderr by defaultAlvar Penning2-8/+17
check_by_ssh no longer returns UNKNOWN if ssh(1) returns data on stderr. But it can be enforced again by the new "--unknown-on-stderr" option. --- The default logic of check_by_ssh results in an UNKNOWN state if the ssh(1) process produces output on stderr. Using the "--skip-stderr=[n]" option allows ignoring a certain amount of lines or disabling this check altogether. Furthermore, passing the "--warn-on-stderr" option reduces the exit code to WARNING. The "--help" output does not document this behavior, only states that "--warn-on-stderr" will result in the WARNING, but does not mention the UNKNOWN by default. The man page of ssh(1) mentions that debug information is logged to stderr. This conflicts with the described logic, resulting in check_by_ssh to go UNKNOWN, unless additional options are set. Starting with OpenSSH version 10.1, ssh(1) will report warnings to stderr if the opposite server does not support post-quantum cryptography, <https://www.openssh.com/pq.html>. This change, slowly being rolled out throughout the next months/years, might result in mass-breakages of check_by_ssh. By introducing a new "--unknown-on-stderr" option, enforcing the prior default logic of an UNKNOWN state for data on stderr, and ignoring output on stderr by default, check_by_ssh will continue to work. One might even argue that this change converges actual implementation and the documented behavior, as argued above. --- $ ssh example '/usr/lib/nagios/plugins/check_dummy 0 demo' ** WARNING: connection is not using a post-quantum key exchange algorithm. ** This session may be vulnerable to "store now, decrypt later" attacks. ** The server may need to be upgraded. See https://openssh.com/pq.html OK: demo $ echo $? 0 $ ./check_by_ssh -H example -C '/usr/lib/nagios/plugins/check_dummy 0 demo' OK: demo $ echo $? 0 $ ./check_by_ssh -H example -C '/usr/lib/nagios/plugins/check_dummy 0 demo' --warn-on-stderr Remote command execution failed: ** WARNING: connection is not using a post-quantum key exchange algorithm. $ echo $? 1 $ ./check_by_ssh -H example -C '/usr/lib/nagios/plugins/check_dummy 0 demo' --unknown-on-stderr Remote command execution failed: ** WARNING: connection is not using a post-quantum key exchange algorithm. $ echo $? 3 --- Fixes #2147.
2025-09-15Merge branch 'master' into refactor/check_aptLorenz Kästle80-2533/+3615
2025-09-15Merge pull request #2150 from RincewindsHat/refactor/libLorenz Kästle18-309/+339
general refactorin in lib, more local variables, real booleans
2025-09-15Fix types in check_aptLorenz Kästle1-4/+4
2025-09-15More refactoringLorenz Kästle4-125/+139
2025-09-15general refactorin in lib, more local variables, real booleansLorenz Kästle13-180/+196
2025-09-15Merge pull request #2149 from RincewindsHat/clang-formatLorenz Kästle75-2248/+3300
Clang format
2025-09-15Ignore some more built time filesLorenz Kästle1-0/+10
2025-09-15Run clang-format againLorenz Kästle74-2248/+3290
2025-09-15check_apt: implement new outputLorenz Kästle2-72/+172
2025-09-15check_apt: improve some variable types to make the linter happyLorenz Kästle2-12/+12
2025-09-15Merge pull request #2085 from RincewindsHat/refactor/check_curlLorenz Kästle13-2037/+2953
Refactor/check curl and introduce new output formatting
2025-09-15Add output formatting optionLorenz Kästle3-1/+26
2025-09-15fix number of testsLorenz Kästle1-1/+1
2025-09-15Adapt test to new error messageLorenz Kästle1-1/+1
2025-09-15Fix typo in error messageLorenz Kästle1-1/+1
2025-09-15Fix typosLorenz Kästle1-4/+4
2025-09-15Fix/adapt testsLorenz Kästle2-18/+29
2025-09-15check_curl: use new cert check functionLorenz Kästle1-3/+5
2025-09-15Add new cert check functionLorenz Kästle3-2/+139
2025-09-15check_curl: fix perfdata labelLorenz Kästle1-1/+1
2025-09-15check_curl: finish after cert without continue paramLorenz Kästle1-1/+1
2025-09-15Fix regex matchingLorenz Kästle1-5/+11
2025-09-15Improve error messageLorenz Kästle1-3/+2
2025-09-13check_curl: test adaption and output adaptionLorenz Kästle3-63/+69
2025-09-13check_curl: remove display-html optionLorenz Kästle3-26/+11
2025-09-12check_curl: implement new output mechanismLorenz Kästle4-398/+443
2025-09-12lib: some formatting + remove some unnecessary stuffLorenz Kästle2-25/+25
2025-09-12check_curl: fix default redirect settingLorenz Kästle1-1/+1
2025-09-12Fix struct accessLorenz Kästle2-2/+2
2025-09-12check_curl: create outsourced helpers in extra filesLorenz Kästle5-1335/+1397
2025-09-11check_curl: http3 is only available with libcurl 7.66 or laterLorenz Kästle1-1/+4
2025-09-11check_curl: refactoring to modularize codeLorenz Kästle2-539/+594
2025-09-11check_curl: improve option handling a bitLorenz Kästle2-9/+14
2025-09-11check_curl: fix function signatureLorenz Kästle1-1/+2
2025-09-11check_curl: less global stateLorenz Kästle1-31/+41
2025-09-10sslutils: some refactoring to improve readabilityLorenz Kästle1-36/+28
2025-09-10plugins-netutils: return proper state from test functionsLorenz Kästle2-2/+3