This project adheres to Semantic Versioning.
This CHANGELOG follows the format listed here
6.1.0 - 2020-04-03
metrics-http-json.rb: Added-H/--headerflag to pass custom HTTP headers. (@mblaettler)
6.0.1 - 2020-01-30
metrics-curl.rb: improved platform support for detectingcurlusingwhichdue to inconsistent options across non bash shells, tested onbashanddashshells (@elfranne)
6.0.0 - 2020-01-17
- New metrics-libcurl.rb metrics check that works directly with libcurl and does not need curl executable on system. Very useful as an asset in containerized Sensu Agent installs.
check-http.rb: AddHEADto method optionscheck-http.rbAdded option to include file with multiple headers, useful for long list of headers.
- Updated asset build automation for Alpine target to ensure curl and libcurl based metrics work.
check-http.rb: An empty response body when using-wno longer creates a potentially confusingno implicit conversion of nil into Stringerror
- Updated bundler development dependancy to '~> 2.1'
- Make rake Kitchen tasks conditional on ability to load kitchen module in development env. kitchen module will not load on hosts without docker runtime.
- Update asset build definitions to match targets supported by ruby-runtime
- Updated test-kitchen development dependancy from '
> 1.23.5' to '> 1.25.0' - Updated rubocop requirement 'from
> 0.51.0' to '> 0.79.0' - Updated rake requirement from '
> 12.3' to '> 13.0' - Updated rest-client runtime requirement from '
> 2.0.2' to '> 2.1' - Make rdoc a development requirement for ruby installations that package rdoc as a gem instead of as part of base ruby
- Updated metrics-curl.rb to check for existance of curl executable in PATH. If not found, reports critical error with message.
- Updated json requirement from '< 2.0.0' to '~> 2.3'
- Updated oj requirement from '
> 2.18' to '> 3.10'
5.1.1 - 2019-06-21
- Fix issue with JSON.parse referencing sensu-plugin subclass instead of top level ::JSON module as intended
- Fix missing runtime dependancy on oj needed for metrics-http-json-deep.rb
5.1.0 - 2019-05-06
metrics-http-json.rb: Added the option to disable ssl cert verification metrics-http-json.rb: Added debug option to see the processing of json data
5.0.0 - 2019-04-18
- Bump
sensu-plugindependency from~> 3.0to~> 4.0you can read the changelog entries for 4.0 - Disable kitchen tests
- Travis build automation to generate Sensu Asset tarballs that can be used n conjunction with Sensu provided ruby runtime assets and the Bonsai Asset Index
4.1.0 - 2019-02-17
check-http.rb: Add options to set--open-timeoutand--read-timeoutfor Net:HTTP. Additionally rescueNet::OpenTimeoutandNet::ReadTimeoutexception classes (@johanek)check-http.rb: exposed--dns-timeoutfor Ruby DNS Resolver. (@johanek)
check-http.rb: switched to using rubies DNS resolver to allow catching DNS failures when Net::HTTP establishes connection. (@johanek)
- removed codeclimate (@tmonk42)
4.0.0 - 2018-12-17
- bumped dependency of
sensu-pluginto~> 3.0(@dependabot) @majormoses
3.0.1 - 2018-09-04
metrics-http-json-deep.rb: properly filter out non numeric values (@CosmoPennypacker)
3.0.0 - 2018-08-19
- removed ruby
< 2.3support as they are EOL per our support policy (@majormoses) - bumped dependency of
sensu-pluginto 2.x you can read about it here (@majormoses)
metrics-http-json-deep.rb: add option--floatsto control the number of decimal places (default to 4), for use with--number(@CosmoPennypacker)
2.11.0 - 2018-06-04
check-http-json.rb: add option--response-codefor checking the HTTP response codecheck-http.rb: modify option--response-codeto accept a regex
2.10.0 - 2018-05-23
check-http.rb: add option--min-bytesto check if a response is greater than minimum specified value (@lisfo4ka)
2.9.0 - 2018-05-03
check-http-json.rb: add option--post-bodyto include a post body (@andy-s-clark)
2.8.4 - 2018-03-27
- updated yard dependency to
~> 0.9.11per: https://nvd.nist.gov/vuln/detail/CVE-2017-17042 (@majormoses)
2.8.3 - 2018-03-14
metrics-curl.rb: fix shell quoting problem at execution and parse correctly curl metrics on non-C locale. (@multani)
2.8.2 - 2018-03-13
- most of the scripts failed when
# frozen_string_literal: truewas set becausemixlib-clidoes not support this. This reverts the old behavior in the checks but leaves libs which were unaffected alone (@majormoses)
- integration testing skel and added some tests (@majormoses)
2.8.1 - 2018-03-07
- updated rubocop dependency to
~> 0.51.0per: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-8418. (@majormoses)
- appeased the cops, updated cop config, and created TODOs for refactoring (@majormoses)
2.8.0 - 2018-02-17
- Add new options
--dump-jsonto dump json response on failure when enable. default: false (@jplindquist) - Add new
--prettyoption for pretty format json response when--dump-jsonis enabled. default: false (@jplindquist)
2.7.0 - 2018-02-15
check-http: Added ability to use username and password in proxy url (@mclarkson)
- updated changelog location guidelines (@majormoses)
2.6.0 - 2017-07-31
- ruby 2.4 testing (@majormoses)
- spelling in PR template (@majormoses)
- use rest-client 2.0 to fix issue with OpenSSL 1.1.0 (@ushis)
2.5.0 - 2017-07-06
check-http: Added ability to sign requests with AWS V4 authentication (@ajmath)
2.4.0 - 2017-06-19
- Initial set of tests for
check-https-cert.rb(@pgporada) check-https-cert.rb: Allow checking for a successfully expired certificate (@pgporada)
2.3.0 - 2017-06-01
- check-http.rb: support PUT requests (@majormoses)
- check-http.rb: added examples per GH issues (@majormoses)
2.2.0 - 2017-05-31
check-http-json: add --value-greater-than and --value-less-than options (@dave-handy)
check-http-json: fix error when check fails and --whole-response is enabled (@ushis)
check-http: add checksum check- documentation on ssl issues (@majormoses @pgporada)
2.0.2 - 2017-03-13
metrics-http-json-deep: fix Regexp error (@nevins-b)
2.0.1 - 2017-02-21
check-http-json: fix incorrect "key not found" error when key value is null (@marktheunissen)
2.0.0 - 2017-02-20
- Support for Ruby < 2.1 removed. Ruby 2.0 and older are EOL.
- The
-boption incheck-httpto send a data body with the request has been changed to-dto avoid conflicting with the-boption to print the bytes of the response.
- Revert rest-client to 1.8 as 2.0 requires ruby >= 2.0 (@sstarcher)
check-http: change conflicting body short argument letter to-dfor data (@rmkbow)
metrics-http-json: fix behavior when a root object key is not specified (@mrooney)- Fix CI tests (@RoboticCheese)
check-http-json: add an option to return response body (@obazoud)check-http-json: support nested hash/array paths in key (@parisholley)
- Support for Ruby < 2.1 (@eheydrick)
1.0.0 - 2016-07-27
- Don't send basic auth when no password is supplied
- Add default thresholds to check-https-cert.rb
- check-http: fix default port selection for https
- Add
rest-clientdependency formetrics-http-json - Add
check-head-redirectthat checks that redirection links can be followed in a set number of requests - Add
check-http-corsthat checks CORS headers - check-http-json: add
cert-keyparameter to allow specifying a separate cert file - Add
--negquerytocheck-http.rbfor query text that should not exist
- Support for Ruby 1.9.3
- Upgrade to Rubocop 0.40 and cleanup
- Pin to
json < 2.0.0to workaround test failures on Ruby 2.3.0
0.4.0 - 2016-04-26
- Rename http-json-graphite -> metrics-json-graphite
0.3.0 - 2016-04-08
- Add
metrics-http-json-deepplugin that generates metrics from a JSON endpoint - Support POST requests in
check-http.rb - Support comma+space-separated headers in
check-http.rb - Add a Test Kitchen config and BATS tests for CI
metrics-curlnow returns the http_code from the requestmetrics-curlwill now exit with a warning if the curl call returns non zero- Add Ruby 2.3 to travis tests
- Add usage examples for
check-http
- Fix Ruby 2.3 deprecation warning on use of timeout (#35)
- Update to rubocop 0.37 and resolve issues
- Remove Ruby 2.0 from travis tests
0.2.1 - 2015-12-14
- Added validation check for proxy url option in check-http.rb
- Fixed SSL verification error raised erroneously when using -e flag with check-http.rb
0.2.0- 2015-11-17
- check-http.rb will no longer fail if the plugin timeout is longer than the net/http default timeout
- check-http-json.rb will no longer fail when comparing strings
- updated Rubocop to
0.32.1 - put deps in alpha order
- update documentation links
- Added a check for last modified time in HTTP headers
- POST mode for check-http-json.rb
- Output a message when check-https-cert.rb cannot establish a connection
- insecure option for check-https-cert.rb to skip SSL cert check
0.1.1 - 2015-07-14
- updated sensu-plugin gem to 1.2.0
0.1.0 - 2015-06-18
- A new non-breaking feature - the ability to print the whole response from the http call done in the check-http.rb check to the sensu alert. This can be done by specifying the
-wor--whole-responseparameters. - Gitignore was updated with more files from Intellij IDEA
0.0.2 - 2015-06-03
- Fix the build
- Initial release