summaryrefslogtreecommitdiffstats
path: root/plugins
AgeCommit message (Collapse)AuthorFilesLines
28 hoursFix/check curl sticky redir (#2188)Lorenz Kästle3-8/+20
* 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
29 hourscheck_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
39 hoursMerge pull request #2183 from RincewindsHat/modern_output/check_mrtgtrafLorenz Kästle2-69/+169
check_mrtgtraf: modern output implementation
39 hoursMerge pull request #2184 from RincewindsHat/fix/check_mysql_replica_againLorenz Kästle1-31/+17
Look for either replica or slave in replica status
2 daysMerge pull request #2185 from RincewindsHat/fix/curl_segfaultLorenz Kästle1-0/+5
check_curl: abort redir if location is not found
2 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
2 daysRemove some superfluous newlinesLorenz Kästle1-2/+2
2 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.
2 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.
2 daysLook for either replica or slave in replica statusLorenz Kästle1-31/+17
2 dayscheck_mrtgtraf: modern output implementationLorenz Kästle2-69/+169
3 dayscheck_mrtg: implement modern outputLorenz Kästle2-45/+110
3 daysAdd output formatting option where they were forgottenLorenz Kästle5-0/+54
4 dayscheck_ldap: fix thresholds for number of entriesLorenz Kästle1-3/+3
4 dayscheck_ldap: add number of entries perfdataLorenz Kästle1-0/+1
4 dayscheck_ldap: implement output format selectionLorenz Kästle2-0/+28
4 dayscheck_ldap: fix typoLorenz Kästle1-1/+1
4 dayscheck_ldap: modern output implementationLorenz Kästle3-135/+207
13 dayscheck_by_ssh: fix some testsLorenz Kästle1-25/+25
13 dayscheck_by_ssh: some formattingLorenz Kästle1-3/+2
13 dayscheck_by_ssh: do not incorrectly assume that ssh (1) succeededLorenz Kästle1-21/+2
13 dayscheck_by_ssh: handle errrors of ssh (1) directlyLorenz Kästle1-0/+17
13 dayscheck_by_ssh: Implement modern output functionalityLorenz Kästle2-53/+152
13 daysImplement replacement functions for executing commandsLorenz Kästle1-5/+0
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-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-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
2025-11-06check_mysql: replace cpp constant with a proper enumLorenz Kästle1-2/+5
2025-11-05fix typosLorenz Kästle1-2/+2
2025-11-05check_pgsql: implement cli params for output formatLorenz Kästle2-2/+22
2025-11-05check_pgsql: cleanup leftover codeLorenz Kästle1-15/+0
2025-11-05Merge branch 'master' into modern_output/check_pgsqlLorenz Kästle5-256/+394
2025-11-05check_pgsql: implement modern outputLorenz Kästle2-90/+206
2025-11-05check_ntp_time: add cli option for output formatLorenz Kästle2-0/+28
2025-11-05Merge pull request #2170 from RincewindsHat/modern_output/check_ntp_peerLorenz Kästle2-172/+251
Modern output/check ntp peer
2025-11-05check_ntp_peer: add cli param to set output formatLorenz Kästle2-10/+46
2025-11-05check_ntp_peer: fix several missing things and errorsLorenz Kästle2-4/+17
2025-11-05Merge pull request #2171 from RincewindsHat/modern_output/check_ntp_timeLorenz Kästle2-82/+97
check_ntp_time: implement modern output
2025-11-05check_ntp_time: reduce number of significant bits a bitLorenz Kästle1-1/+2
2025-11-05check_ntp_time: fix time-offset argument and descriptionLorenz Kästle1-2/+2
2025-11-05check_ntp_time: actually accept offset if knownLorenz Kästle1-0/+1
2025-11-04put includes before any declarationsLorenz Kästle1-5/+4