| Age | Commit message (Collapse) | Author | Files | Lines | |
|---|---|---|---|---|---|
| 21 hours | add proxy argument and improve dns cache usage (#2209) | inqrphl | 1 | -1/+114 | |
| * add proxy argument and improve dns cache usage add proxy argument that useing the -x and --proxy argument. add it to the static curl config struct, command usage and help outputs of the cli. parse these argument together with the environment variables like http_proxy before setting the CURLOPT_PROXY in the curl configuration option. this is required, as there is no easy way to ascertain/get what the CURLOPT_PROXY that libcurl will use. by the point it is set by libcurl, we have no control over it anymore, and need it for the other steps in the configuration. if the CURLOPT_PROXY is set, skip the DNS cache population which would set the CURLOPT_RESOLVE. this is currently not perfect however. if a proxy is set with socks4 or socks5 scheme, the host should be resolving the hostname. * codespell, clang-format and hints fixes * add curl version and ssl enabelement macro checks might fix rocky linux 8 compilation issues. * add proxy_resolves_hostname, determined by proxy scheme leave the functions that print out an curl_easyoption, but dont use it. organize the code slightly, print out the final CURLOPT_PROXY and proxy_resolves_hostname flag on verbose mode, add comments * remove unused handle_curl_easyoption and format_curl_easyoption functions * fix typo in the proxy argument * fix typo with proxy scheme socks5a->socks5h * improve proxy environment parsing add another argument: --no-proxy , which is used when setting CURL_NOPROXY additionally parse all_proxy, ALL_PROXY, no_proxy and NO_PROXY environment variables in the correct order. set the curlopt_proxy and curlopt_noproxy of libcurl, and additionally save them in check_curl_working_state. add function determine_hostname_resolver, uses the working state and static config. it can tokenize the no_proxy variable and check for exact matches, but cannot determine subnet matches for ip addresses yet. * document proxy cli arguments clarify and add more examples of proxy environment variables and their behavior when multiple are specified, overriden etc. add single wildcard '*' checking for no_proxy to determine_hostname_resolver, special case per curlopt_noproxy documentation * check curlopt_noproxy before accessing it * switch argument from --no-proxy to --noproxy like curl cli * check if host name is a subdomain of an noproxy item * use strdup where destination working_state.curlopt_proxy may be NULL * add disclaimer about uppercase HTTP_PROXY * add subdomain checks for each item in the no_proxy, if the target host is a subdomain proxy wont resolve it add function ip_addr_inside_cidr, use it for checking possible cidr ranges given in the no_proxy * wip tests that work on local perl http/https server * wip tests that work on the live debian image * fix subnet definition * make apache2 listen on [::1] for ipv6 tests * remove squid certificate * rewrite ip_addr_inside_cidr, split ipv4 and ipv6 parsing path and copy them to a shared buffer later on for prefix check * Adapt tests for the squid sever, disable checking return code for socks 4/5 proxies. Squid does not support it, and we do not install a capable proxy for these schemes. * specify localhost acl and allow it through the proxy. used in check_curl tests * typo in comment * move function comments to header * fix failing tests * handle case where proxy is set as empty string * removed duplicate tests, corrected wrong comments * corrected some annotations * move docker apache subdomain setup files to /tools/subdomain1 * add a newline before dying in handle_curl_option_return_code * fix the -ssl better, now does not segfault on empty --ssl argument as well. --------- Co-authored-by: Ahmet Oeztuerk <Ahmet.Oeztuerk@consol.de> | |||||
| 2026-01-16 | check_disk: compare inode thresholds against the correct value (#2223) | Lorenz Kästle | 1 | -2/+13 | |
| * check_disk: compare inode thresholds against the correct value * check_disk: Detect free inode number correctly in tests --------- Co-authored-by: Lorenz Kästle <lorenz.kaestle@netways.de> | |||||
| 2025-11-28 | check_ntp_time/check_ntp_peer: unix socket handling (#2187) | Lorenz Kästle | 1 | -1/+1 | |
| * check_ntp_time/check_ntp_peer: unix socket handling * No tests for check_ntp since it is deprecated | |||||
| 2025-11-25 | check_ldap: modern output implementation | Lorenz Kästle | 1 | -7/+7 | |
| 2025-11-16 | check_by_ssh: fix some tests | Lorenz Kästle | 1 | -25/+25 | |
| 2025-11-08 | small test correction | Lorenz Kästle | 1 | -2/+2 | |
| 2025-11-08 | check_smtp: adapt tests | Lorenz Kästle | 1 | -3/+2 | |
| 2025-11-07 | check_mysql_query: implement modern output | Lorenz Kästle | 1 | -1/+1 | |
| 2025-11-07 | Merge pull request #2174 from RincewindsHat/modern_output/check_mysql | Lorenz Kästle | 1 | -3/+4 | |
| Modern output/check mysql | |||||
| 2025-11-07 | Merge pull request #2168 from RincewindsHat/refactor/check_dbi | Lorenz Kästle | 1 | -5/+5 | |
| check_dbi: new output functionality | |||||
| 2025-11-07 | check_mysql: implement modern output | Lorenz Kästle | 1 | -3/+4 | |
| 2025-10-29 | check_dbi: new output functionality | Lorenz Kästle | 1 | -5/+5 | |
| 2025-09-16 | Fix check_apt tests | Lorenz Kästle | 1 | -6/+8 | |
| 2025-09-15 | fix number of tests | Lorenz Kästle | 1 | -1/+1 | |
| 2025-09-15 | Adapt test to new error message | Lorenz Kästle | 1 | -1/+1 | |
| 2025-09-15 | Fix typos | Lorenz Kästle | 1 | -4/+4 | |
| 2025-09-15 | Fix/adapt tests | Lorenz Kästle | 1 | -16/+27 | |
| 2025-09-13 | check_curl: test adaption and output adaption | Lorenz Kästle | 1 | -2/+2 | |
| 2025-09-09 | Adjust number of tests | Lorenz Kästle | 1 | -1/+1 | |
| 2025-08-27 | check_snmp: fix/adapt tests | Lorenz Kästle | 1 | -62/+41 | |
| 2025-08-11 | Merge branch 'master' into refactor/check_users | Lorenz Kästle | 6 | -108/+152 | |
| 2025-07-06 | check_load: fix tests | Lorenz Kästle | 1 | -3/+3 | |
| 2025-07-06 | Merge branch 'master' into refactor/check_load | Lorenz Kästle | 1 | -88/+132 | |
| 2025-03-31 | Try fixing some tests | Lorenz Kästle | 1 | -8/+9 | |
| 2025-03-31 | check_disk: decrease precision to avoid false negatives with small ↵ | Lorenz Kästle | 1 | -1/+8 | |
| measurement changes | |||||
| 2025-03-30 | Add debugging to tests for CI | Lorenz Kästle | 1 | -0/+3 | |
| 2025-03-30 | Codespell fixes | Lorenz Kästle | 1 | -2/+2 | |
| 2025-03-30 | Address check_disk changes in tests | Lorenz Kästle | 1 | -86/+119 | |
| 2025-03-13 | check_load: Remove output formatting test and adapt others | Lorenz Kästle | 1 | -9/+9 | |
| 2025-03-13 | Update more tests to current output | Lorenz Kästle | 1 | -1/+1 | |
| 2025-03-13 | Adapt tests more | Lorenz Kästle | 3 | -5/+5 | |
| 2025-03-13 | Merge branch 'master' into refactor/check_tcp | Lorenz Kästle | 8 | -74/+118 | |
| 2025-03-13 | Adapt tests | Lorenz Kästle | 1 | -6/+6 | |
| 2025-03-12 | Adapt tests | Lorenz Kästle | 1 | -2/+2 | |
| 2025-03-09 | Adapt number of tests | Lorenz Kästle | 1 | -1/+1 | |
| 2025-03-09 | Adapt test regex to new output | Lorenz Kästle | 1 | -1/+1 | |
| 2025-03-09 | Remove failing test | Lorenz Kästle | 1 | -1/+0 | |
| 2025-03-09 | fix accidently remove parentheses in test | Lorenz Kästle | 1 | -1/+1 | |
| 2025-03-09 | Adapt further test to changed output | Lorenz Kästle | 4 | -4/+4 | |
| 2025-03-07 | check_ssh: adapt tests | Lorenz Kästle | 1 | -31/+83 | |
| 2025-03-07 | Merge pull request #2076 from RincewindsHat/feature/json_parsing_in_tests | Lorenz Kästle | 1 | -21/+14 | |
| Implement JSON output parsing for tests | |||||
| 2025-03-07 | Implement JSON output parsing for tests | Lorenz Kästle | 1 | -21/+14 | |
| 2025-03-07 | Merge pull request #2068 from RincewindsHat/check_mysql_replica_check | Lorenz Kästle | 1 | -16/+16 | |
| Check mysql replica check | |||||
| 2025-02-24 | check_mysql tests: Also exchange slave for replica | Lorenz Kästle | 1 | -16/+16 | |
| 2025-02-21 | Remove check_swap tests with one-line format | Lorenz Kästle | 1 | -37/+2 | |
| 2025-02-19 | Add tests for check_swap with JSON output | Lorenz Kästle | 1 | -1/+49 | |
| 2025-02-19 | Fix previous check_swap tests | Lorenz Kästle | 1 | -10/+12 | |
| 2024-11-10 | check_swap: Fix text in old school tests | Lorenz Kästle | 1 | -3/+3 | |
| 2024-07-23 | check_http: replace www.mozilla.com with monitoring-plugins.org | Sven Nierlein | 2 | -4/+4 | |
| this makes tests more reliable if we test our own sites instead some 3rd party site. Signed-off-by: Sven Nierlein <sven@consol.de> | |||||
| 2024-04-12 | Adjust check_swap tests | Napsty | 1 | -1/+1 | |
