summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
3 dayslib: properly separate perfdata from different sub subchecks (#2197)HEADmasterLorenz Kästle1-1/+1
Previously there was a space missing between perfdata from differen sub subchecks which irritated my monitoring system and caused it to interpet two data points as one. This puts the space back in there.
4 daysFix check_ntp_time without a socket (#2196)Lorenz Kästle1-1/+0
In the previous commit I unintentionally introduced an error through symbol shadowing. This should fix check_ntp_time when the target address is a network address.
4 daysRemove check_ntp (#2194)Lorenz Kästle4-963/+1
check_ntp was marked as deprecated for forever (SVN times). In the spirit of cleaning up and removing the dead bodies, this commit removes check_ntp and all its connections.
4 daysRemove check_nt (#2195)Lorenz Kästle8-950/+3
check_nt was used to connect NSclient++ on windows, both the method and the target are pretty much dead. Therefor check_nt gets removed.
6 dayscheck_snmp: fix offset computation for INTEGER (#2190)Lorenz Kästle1-5/+7
8 dayscheck_dig: add -E/--require-flags and -X/--forbid-flags (#2165)coverity/masterDennis2-5/+273
* check_dig: Add feature to require or forbid dig DNS flags -E, -X. Introduced helper functions for flag parsing. -E, --require-flags=LIST Comma-separated dig flags that must be present (e.g. 'aa,qr') -X, --forbid-flags=LIST Comma-separated dig flags that must NOT be present
10 daysFix/check curl sticky redir (#2188)Lorenz Kästle4-8/+21
* check_curl: avoid freeing memory when we don't know where it came from * check_curl: when using -f sticky conserve IPv6 addresses properly When running the check on an ipv6 address with a sticky onredirect policy like in this example: check_curl -6 -H example.com -I ::1 -f sticky It results in a getaddrinfo error: HTTP CRITICAL - Unable to lookup IP address for '[::1]': getaddrinfo returned -3 - Temporary failure in name resolution This happens because in check_http() if the content of server_addr is an ipv6 address enclosing brackets are added and on redirection a subsequent call to check_http() will pass this now bracketed value to getaddrinfo resulting in the error. To work around this, strip the brackets from the address prior to the lookup_host() call. * add Michael Jeanson to thanks
10 dayscheck_ntp_time/check_ntp_peer: unix socket handling (#2187)Lorenz Kästle3-24/+61
* check_ntp_time/check_ntp_peer: unix socket handling * No tests for check_ntp since it is deprecated
10 daysMerge pull request #2183 from RincewindsHat/modern_output/check_mrtgtrafLorenz Kästle2-69/+169
check_mrtgtraf: modern output implementation
10 daysMerge pull request #2184 from RincewindsHat/fix/check_mysql_replica_againLorenz Kästle1-31/+17
Look for either replica or slave in replica status
11 daysMerge pull request #2185 from RincewindsHat/fix/curl_segfaultLorenz Kästle1-0/+5
check_curl: abort redir if location is not found
11 daysMerge pull request #2186 from RincewindsHat/doc/check_curl_usageLorenz Kästle1-3/+6
check_curl: try to be more helpful in check_curls help
11 daysRemove some superfluous newlinesLorenz Kästle1-2/+2
11 dayscheck_curl: try to be more helpful in check_curls helpLorenz Kästle1-2/+5
Trying to be more specific with the check_curl help. The idea is to clarify how the parameters are supposed to be used.
11 dayscheck_curl: abort redir if location is not foundLorenz Kästle1-0/+5
This commit changes the behaviour of check_curl slightly. Previously when the redirection method was set to the old 'check_http' style redirection and there was no "location" header in the original answer 'check_curl' segfaulted. Now, at least it dies properly with a message.
11 daysLook for either replica or slave in replica statusLorenz Kästle1-31/+17
11 dayscheck_mrtgtraf: modern output implementationLorenz Kästle2-69/+169
11 daysMerge pull request #2182 from RincewindsHat/modern_output/check_mrtgLorenz Kästle2-45/+110
check_mrtg: implement modern output
12 dayscheck_mrtg: implement modern outputLorenz Kästle2-45/+110
12 daysMerge pull request #2181 from RincewindsHat/fix/output_argumentsLorenz Kästle5-0/+54
Add output formatting option where they were forgotten
12 daysAdd output formatting option where they were forgottenLorenz Kästle5-0/+54
13 daysMerge pull request #2180 from RincewindsHat/modern_output/check_ldapLorenz Kästle3-135/+236
check_ldap: modern output implementation
13 dayscheck_ldap: fix thresholds for number of entriesLorenz Kästle1-3/+3
13 dayscheck_ldap: add number of entries perfdataLorenz Kästle1-0/+1
13 dayscheck_ldap: implement output format selectionLorenz Kästle2-0/+28
13 dayscheck_ldap: fix typoLorenz Kästle1-1/+1
13 dayscheck_ldap: modern output implementationLorenz Kästle3-135/+207
2025-11-22Merge pull request #2179 from ↵Lorenz Kästle4-6/+6
monitoring-plugins/dependabot-github_actions-actions-checkout-6 build(deps): bump actions/checkout from 5 to 6
2025-11-21build(deps): bump actions/checkout from 5 to 6dependabot[bot]4-6/+6
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v5...v6) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
2025-11-16Merge pull request #2177 from RincewindsHat/modern_output/check_by_sshLorenz Kästle6-96/+477
Modern output/check by ssh
2025-11-16check_by_ssh: fix some testsLorenz Kästle1-25/+25
2025-11-16check_by_ssh: some formattingLorenz Kästle1-3/+2
2025-11-16check_by_ssh: do not incorrectly assume that ssh (1) succeededLorenz Kästle1-21/+2
2025-11-16fix include order errorLorenz Kästle1-1/+2
2025-11-16check_by_ssh: handle errrors of ssh (1) directlyLorenz Kästle1-0/+17
2025-11-16check_by_ssh: Implement modern output functionalityLorenz Kästle2-53/+152
2025-11-16Implement replacement functions for executing commandsLorenz Kästle3-15/+299
This commit implements replacement functions for the previous exec functions. The replacements are implemented in a more "pure" style, the do no longer receive pointer arguments which they will write to, but create the pointers themselves and should therefore be easier to use, since it is more obvious what goes in and what comes out. Also a essentialy unused variable was removed with this.
2025-11-09Merge pull request #2176 from RincewindsHat/modern_output/check_smtpLorenz Kästle5-329/+624
check_smtp: modern output + some tls cert helper functions
2025-11-09check_smtp: certificate check is no longer opt-inLorenz Kästle2-40/+54
This is a breaking change. Testing whether a TLS certificate is still valid (expiration wise) is now the default in check_smtp. The reasoning is, that in most scenarios an expired certificate will effectively mean that the service is not working anymore due to the refusal of other software to talk to it. There is a new cli parameter though to explicitly ignore that.
2025-11-09check_smtp: implement output format cli parameterLorenz Kästle2-1/+27
2025-11-08small test correctionLorenz Kästle1-2/+2
2025-11-08Fix initialisation on old compilersLorenz Kästle1-1/+1
2025-11-08check_smtp: adapt testsLorenz Kästle1-3/+2
2025-11-08check_smtp: modern output + some tls cert helper functionsLorenz Kästle4-294/+550
2025-11-07Merge pull request #2175 from RincewindsHat/modern_output/check_mysql_queryLorenz Kästle3-46/+65
check_mysql_query: implement modern output
2025-11-07Fix typoLorenz Kästle1-1/+1
2025-11-07check_mysql_query: implement modern outputLorenz Kästle3-46/+65
2025-11-07Merge pull request #2174 from RincewindsHat/modern_output/check_mysqlLorenz Kästle3-112/+180
Modern output/check mysql
2025-11-07Merge pull request #2168 from RincewindsHat/refactor/check_dbiLorenz Kästle3-324/+432
check_dbi: new output functionality
2025-11-07check_mysql: implement modern outputLorenz Kästle3-110/+175