Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2018-12-07 | check_icmp: Correctly set address_family on lookup | Jacob Hansen | 1 | -1/+2 | |
If a hostname is supplied instead of an IP address, the automatic address family detection would fail to correctly set the IP protocol version (it would always be IPv6). We now supply AF_UNSPEC to getaddrinfo, which should then return the correct address family in the result. Signed-off-by: Jacob Hansen <jhansen@op5.com> | |||||
2018-12-07 | check_icmp: removed outcommented code | Jacob Hansen | 1 | -7/+0 | |
Signed-off-by: Jacob Hansen <jhansen@op5.com> | |||||
2018-12-07 | check_icmp: process protocol version args first | Jacob Hansen | 1 | -10/+22 | |
Detection of protocol version is in the previous patch implemented in the add_target() function, which is called when adding the -H command line argument. That means that if a protocal version argument (-4, -6) is added after the -H then the protocol version might be incorrectly set. This patch ensures that we first process the protocol version arguments, and then we process the rest of the arguments. Signed-off-by: Jacob Hansen <jhansen@op5.com> | |||||
2018-12-07 | check_icmp: Automatically detect IP protocol | Jacob Hansen | 1 | -26/+45 | |
This patch automatically detects whether the protocol version is IPv4 or IPv6 All credits to: https://github.com/ghciv6 Signed-off-by: Jacob Hansen <jhansen@op5.com> | |||||
2018-12-07 | Fixed parameter handling after 01efbb2183d49c5082598d4799788fc385342f28 | Lars Michelsen | 1 | -38/+38 | |
2018-12-07 | check_icmp: Add IPv6 support | Lars Michelsen | 1 | -161/+330 | |
This commit adds IPv6 capabilities to check_icmp. It is now possible to specify the address family using the arguments -4 (default) or -6. To make the change possible we had to move the argument parsing previous to creating the socket to be able to create it with the correct address family. This commit also fixes some gcc 4.9.2 compiler warnings. It has been tested with several current linux distributions (debian, ubuntu, rh, sles). This commit fixes monitoring-plugins/monitoring-plugins#1291 | |||||
2018-12-07 | Merge pull request #1565 from sni/travis_run_plugin_root_tests | Sven Nierlein | 18 | -438/+212 | |
Travis run plugin root tests | |||||
2018-12-04 | tests: rework test parameters | Sven Nierlein | 16 | -303/+107 | |
there were 2 variants of calling getTestParameter: - parameter, description, default value - parameter, env value, default value, description, scope While scope was never actually used and having 2 names for the same value led to having 2 different entries in the cache file for the same configuration. This commit removes the variants and simplifies tests parameters by only using the first 3 parameter variant. | |||||
2018-12-04 | NPTest: unify whitespace | Sven Nierlein | 1 | -73/+73 | |
2018-12-04 | tests: skip some tests if Monitoring::Plugin::Range isn't available | Sven Nierlein | 1 | -67/+36 | |
The check_file_age uses Monitoring::Plugin::Range internally. Skip thoses tests if the module isn't available. | |||||
2018-12-04 | tests: enable plugins-root tests | Sven Nierlein | 1 | -0/+1 | |
2018-11-29 | check_cluster.c: Added data argument validation. | Kostyantyn Hushchyn | 1 | -0/+10 | |
Signed-off-by: Kostyantyn Hushchyn <kgushtin@op5.com> | |||||
2018-11-12 | set hostname in for CURLOPT_CURL to virtual hostname in case of SSL (for SNI ↵ | Andreas Baumann | 1 | -1/+1 | |
to work) | |||||
2018-11-10 | Merge remote-tracking branch 'monitoring-plugins/pr/1560' | Holger Weiss | 1 | -1/+11 | |
* monitoring-plugins/pr/1560: Add new flag --show-body/-B to print body | |||||
2018-11-09 | Add new flag --show-body/-B to print body | Tobias Wolf | 1 | -1/+11 | |
This should help with figuring out ia problem at a glance when enabled for healthz endpoints on web APIs, for example. The content of the body can point to what the problem is and help with diagnostics. Fixes #1559 | |||||
2018-11-06 | Merge remote-tracking branch 'monitoring-plugins/pr/1476' | Holger Weiss | 5 | -5/+8023 | |
* monitoring-plugins/pr/1476: test: Add proxy tests via proxy Allow user to specify HTTP method after proxy CONNECT | |||||
2018-11-06 | test: Add proxy tests via proxy | Markus Frosch | 4 | -2/+8009 | |
On Travis with a local squid | |||||
2018-11-06 | Allow user to specify HTTP method after proxy CONNECT | Markus Frosch | 1 | -3/+14 | |
Simple format, avoids refactoring the CONNECT feature. | |||||
2018-10-29 | check_curl: code cleanup | Sven Nierlein | 1 | -11/+0 | |
CURLOPT_RESOLVE is not required, since we do not verify certificates in any way. | |||||
2018-10-25 | check_curl: rewrite connect_to / host headers | Sven Nierlein | 2 | -28/+35 | |
since CURLOPT_CONNECT_TO is only available in later curl versions, we do it the other way round now and set the url from the address we want to connect to and then set the host header accordingly. | |||||
2018-10-24 | check_curl: code cleanup | Sven Nierlein | 1 | -1/+2 | |
2018-10-24 | check_curl: handle supplied port correctly | Sven Nierlein | 1 | -4/+6 | |
if a port was given by -p, it should not be overruled by the port extracted from -H. | |||||
2018-10-24 | check_curl: fix builds if curl is not enabled | Sven Nierlein | 2 | -2/+2 | |
2018-10-24 | travis: --enable-check-curl is no longer required | Sven Nierlein | 1 | -1/+1 | |
2018-10-24 | cleanup gitignore | Sven Nierlein | 1 | -6/+0 | |
these files have been removed meanwhile | |||||
2018-10-24 | builds: alway put picohttpparser into the dist tarball | Sven Nierlein | 2 | -4/+1 | |
substituting PICOHTTPPARSER_DIR only when curl gets build, leads to different dist tarballs depending on wether libcurl was available or not. This then breaks later builds from this tarball because of the missing files. | |||||
2018-10-24 | check_curl: do not build check_curl if curllibs are missing | Sven Nierlein | 1 | -4/+3 | |
2018-10-23 | uriparser: do not reset flags if already set | Sven Nierlein | 1 | -3/+5 | |
2018-10-23 | picohttpparser: add header to final tarball | Sven Nierlein | 1 | -1/+1 | |
2018-10-23 | check_curl: do not use pkg-config if --with-uriparser was supplied by ↵ | Sven Nierlein | 1 | -7/+4 | |
commandline if we run configure with --with-uriparser=... it should use that path or fail. | |||||
2018-10-23 | check_curl: enable by default if all requirements are met | Sven Nierlein | 1 | -25/+15 | |
2018-10-22 | check_curl: unify performance data | Sven Nierlein | 1 | -23/+61 | |
and align them with check_http | |||||
2018-10-22 | check_curl: use same page length in performance data and text output | Sven Nierlein | 1 | -5/+5 | |
2018-10-22 | added some advanced tests for check_curl | Christopher Odenbach | 1 | -19/+61 | |
2018-10-22 | Modified virtual host and port behaviour to match check_http. | Christopher Odenbach | 1 | -15/+28 | |
2018-10-22 | check_curl: changed name of plugin in user-agent and added curl_version() to it | Andreas Baumann | 1 | -3/+3 | |
2018-10-22 | check_curl: removed some dead code | Andreas Baumann | 1 | -10/+0 | |
2018-10-22 | check_curl: removed die in redirect with relative paths, simple cases (same ↵ | Andreas Baumann | 1 | -2/+0 | |
protocol, same host) actually work | |||||
2018-10-22 | ..I should really not test in test code :-) | Andreas Baumann | 1 | -1/+0 | |
2018-10-22 | check_curl: made HTTP message optional | Andreas Baumann | 2 | -3/+4 | |
2018-10-22 | check-curl: have some fallbacks ready if pkg-config is missing for uriparser ↵ | Andreas Baumann | 1 | -0/+4 | |
tests | |||||
2018-10-22 | Avoid working with free'ed memory | Jean-François Rameau | 1 | -2/+2 | |
2018-10-22 | fixed typo in check_curl error message (unparsable) | Andreas Baumann | 1 | -1/+1 | |
2018-10-22 | removed embedded uriparser library, added --with-uriparser configure option | Andreas Baumann | 30 | -8325/+175 | |
to use uriparser library from the system | |||||
2018-10-22 | bumped coyright to 2018 in check_curl.c | Andreas Baumann | 1 | -2/+2 | |
2018-10-22 | updated bundled version of uriparser to 0.8.5 | Andreas Baumann | 21 | -34/+38 | |
2018-10-22 | fixed initialization of server_url (freeing non-pointer in case of redirects) | Andreas Baumann | 1 | -1/+3 | |
2018-10-22 | check_curl: cleanup | Sven Nierlein | 1 | -18/+2 | |
- remove obsolete todos - change exit code to unknown if regex exectute fails Signed-off-by: Sven Nierlein <sven@nierlein.de> | |||||
2018-10-22 | set ssl_version to CURL_SSLVERSION_DEFAULT and not CURL_SSLVERSION_TLSv1_0 | Andreas Baumann | 1 | -2/+2 | |
(since curl 7.56.1 we get an illegal argument error otherwise) | |||||
2018-10-22 | added -b <proxy_auth> to print_usage | Andreas Baumann | 1 | -1/+1 | |