summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
6 hoursAdd pkgconf as dependency for rpm buildssthen_pkg_confLorenz Kästle1-0/+1
7 hoursMerge branch 'master' into netsnmp595-fixLorenz Kästle542-3809/+38129
7 hoursMerge pull request #2215 from RincewindsHat/fix/check_snmp_compiler_flagsHEADmasterLorenz Kästle1-1/+1
Add lib math to check_snmp dependencies
7 hoursAdd lib math to check_snmp dependenciesLorenz Kästle1-1/+1
4 daysMerge pull request #2214 from RincewindsHat/fix/fake-changelog-in-spec-filev3.0.0-rc2Lorenz Kästle1-0/+4
Fake changelog in spec file since the rpm build seems to fail
4 daysFake changelog in spec file since the rpm build seems to failLorenz Kästle1-0/+4
5 daysMerge pull request #2210 from sthen/curl_typescoverity/masterLorenz Kästle4-28/+30
fix types for most curl_easy_setopt parameters
5 daysMerge pull request #2198 from ↵Lorenz Kästle2-3/+202
inqrphl/fix/check-curl-append-query-string-on-redirect check_curl: append the query string from parsed uri
5 daysMerge pull request #2213 from RincewindsHat/update/gnulibLorenz Kästle535-3777/+37892
Sync with Gnulib stable-202507 code (a8ac9f9ce5)
5 daysMerge branch 'master' into fix/check-curl-append-query-string-on-redirectLorenz Kästle8-41/+61
5 daysSync with Gnulib stable-202507 code (a8ac9f9ce5)Lorenz Kästle535-3777/+37892
9 daysuse pkg-config XX netsnmp instead of net-snmp-config XXStuart Henderson1-2/+2
net-snmp-config --cflags returns the flags used to build Net-SNMP, which in 5.9.5+ includes -Werror=declaration-after-statement; code in check_snmp.c is not ready for this. "pkg-config --cflags netsnmp" just returns flags needed to build against the library.
10 daysfix types for most curl_easy_setopt parametersStuart Henderson4-28/+30
according to https://curl.se/libcurl/c/curl_easy_setopt.html, parameters are either a long, a function pointer, an object pointer or a curl_off_t, depending on what the option expects; curl 8.16 checks and warns about these.
2025-12-17Merge pull request #2202 from oxzi/fringe-unix-build-fixes-for-v3.0.0-rc1Lorenz Kästle6-37/+53
Fix v3.0.0-rc1 Build on OpenBSD
2025-12-14Merge pull request #2206 from oxzi/check_http_die_not_nullLorenz Kästle1-1/+1
check_http: Abort invalid SSL w/ error
2025-12-14check_curl: --verify-cert / -D in examples (#2204)Alvar1-3/+7
Include the -D flag for certificate verification in the "CHECK CERTIFICATE" examples. Otherwise, only the certificate dates are checked, but not if the certificate matches to the hostname or is signed by a trusted CA. Fixes #2146.
2025-12-12check_curl redirection test improvementsAhmet Oeztuerk1-46/+20
previously, the fragment was sent in the request from client, and the server would parse and increment its value. the incremented value would be set in the redirected URI. this does not work as fragments are meaningless to servers and clients like check_curl strip them in their GET request. rewrite the fragment handling . if client sends a URI parameter with 'fragment' as its key, the server will set its value for its redirected URI. it will come up both as a parameter and the fragment at the end. use this new logic to rewrite the fragment redirection test. remove -p $http_port argument on tests for this endpoint, which was making https tests fail. correct the common test count from 75 to 95, as there are 20 total test assertions in the 8 times it uses the new endpoint. remove unused code on that endpoint as well
2025-12-11check_http: Abort invalid SSL w/ errorAlvar Penning1-1/+1
If a SSL connection cannot be established, check_http bailed out with a die function call with a NULL fmt string. This adds a more meaningful message. The motivation for this patch was to get everything from the OpenBSD ports upstream. It seems like in the old days, this would have resulted in a segfault. https://codeberg.org/OpenBSD/ports/commit/b8a6b3cae57bbfd67e667dca583c621d45ab0d6f However, even if "die" now checks for NULL, a human readable error is nice to have.
2025-12-11lib/utils_cmd: Rename stdout, stderr in cmd_run_resultAlvar Penning3-25/+25
On OpenBSD's "stdio.h", stdin, stdout, and stderr are not directly FILE*, but #defines. Thus, naming the output struct fields stdout and stderr resulted in compiler errors, after replacing the #define. https://codeberg.org/OpenBSD/src/src/commit/a762189c5efbb2811f3c853bc0e5578fd5fb919d/include/stdio.h#L75-L77
2025-12-11plugins-root/check_icmp: Fix build for SIOCGIFADDRAlvar Penning1-4/+4
The refactoring in eafee9c3f91879afa82749fa1d8cd2b0b53a5d5c missed the part within "#if defined(SIOCGIFADDR)" in get_ip_address.
2025-12-11plugins-root/check_icmp: Import sys/ioctl.hAlvar Penning1-0/+3
The ioctl(2) call within "#if defined(SIOCGIFADDR)" requires the include.
2025-12-11plugins/check_smtp: Remove unnecessary glibc-only includeAlvar Penning1-1/+0
This library is glibc-only and not necessary at this point. The getopt_long function is provided by "getopt.h", included via "common.h". Similar to #2159.
2025-12-11configure.ac: Fix PostgreSQL Check for OpenBSDAlvar Penning1-7/+21
On OpenBSD, crypt is named crypto. This diff is a portable version of a patch residing in the OpenBSD ports since ages. https://codeberg.org/OpenBSD/ports/src/commit/1f15238782c26deb728250cbf591f1ffcd10422f/net/monitoring-plugins/patches/patch-configure_ac
2025-12-11clairfy new check_curl testsAhmet Oeztuerk1-10/+24
use the parameters in the last redirected URI that that server returns HTTP OK to. matches the incrementation count of redirection_count from 0 to 3, as they also get incremented three times alongside it. add comments about what is happening in the test cases, no need to understand the endpoint completely
2025-12-10fix typosAhmet Oeztuerk1-4/+4
2025-12-09check_curl add tests for uri field parsingAhmet Oeztuerk1-1/+193
plugins/tests/check_curl.t forks and runs a http(s) server that responds to specific uri endpoints. Added another endpoint under /redirect_with_increment with dynamic redirection points. This endpoint will parse different parts of the uri that come after the path: parameters, query and the fragment. If applicable, seperate elements within each field are parsed into key/value pairs. value is incremented in redirected URI. Tests if check_url redirection logic retains different parts of the url when parsing the uri and building the new redirected URL. Current tests show that it ignores the fragment part.
2025-12-04append the query string from parsed uriAhmet Oeztuerk1-1/+20
Check the UriUriA object, and if query string exists append it to the new_url. Only appends the query part, fragments are still not appended Function redir parses the new location header value using the uriParseUriA function already, which populates the query field. This field was already being printed, but it was not being appended to the new_url during its construction. Redirection chain of check_curl --onredirect=follow now mimics the chain of check_http --onredirect=follow. Tested on the url: mail.google.com/chat
2025-12-04lib: properly separate perfdata from different sub subchecks (#2197)Lorenz 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.
2025-12-04Fix 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.
2025-12-04Remove 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.
2025-12-03Remove 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.
2025-12-02check_snmp: fix offset computation for INTEGER (#2190)Lorenz Kästle1-5/+7
2025-11-29check_dig: add -E/--require-flags and -X/--forbid-flags (#2165)Dennis2-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
2025-11-28Fix/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
2025-11-28check_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
2025-11-28Merge pull request #2183 from RincewindsHat/modern_output/check_mrtgtrafLorenz Kästle2-69/+169
check_mrtgtraf: modern output implementation
2025-11-28Merge pull request #2184 from RincewindsHat/fix/check_mysql_replica_againLorenz Kästle1-31/+17
Look for either replica or slave in replica status
2025-11-27Merge pull request #2185 from RincewindsHat/fix/curl_segfaultLorenz Kästle1-0/+5
check_curl: abort redir if location is not found
2025-11-27Merge pull request #2186 from RincewindsHat/doc/check_curl_usageLorenz Kästle1-3/+6
check_curl: try to be more helpful in check_curls help
2025-11-27Remove some superfluous newlinesLorenz Kästle1-2/+2
2025-11-27check_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.
2025-11-27check_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.
2025-11-27Look for either replica or slave in replica statusLorenz Kästle1-31/+17
2025-11-27check_mrtgtraf: modern output implementationLorenz Kästle2-69/+169
2025-11-26Merge pull request #2182 from RincewindsHat/modern_output/check_mrtgLorenz Kästle2-45/+110
check_mrtg: implement modern output
2025-11-26check_mrtg: implement modern outputLorenz Kästle2-45/+110
2025-11-26Merge pull request #2181 from RincewindsHat/fix/output_argumentsLorenz Kästle5-0/+54
Add output formatting option where they were forgotten
2025-11-26Add output formatting option where they were forgottenLorenz Kästle5-0/+54
2025-11-25Merge pull request #2180 from RincewindsHat/modern_output/check_ldapLorenz Kästle3-135/+236
check_ldap: modern output implementation
2025-11-25check_ldap: fix thresholds for number of entriesLorenz Kästle1-3/+3