sensu-plugins-http 2.8.2 → 2.8.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5f02860fe2659d64cefcdaa75867ca0e79021982d6273da3fb08595936ab0a0f
4
- data.tar.gz: 1f3a6fb949128a57e1aa5f4de067fd3d6033cc76d3793c6496db7bebe8890078
3
+ metadata.gz: 6d4b05d835f38905ae48705e33f61119ea2ae24f9b3d530570713a648427c2a4
4
+ data.tar.gz: f108572cfcce11191b29b43a705480175ceee7cd3a215a70d44ee94ae5a7a594
5
5
  SHA512:
6
- metadata.gz: aa6ede25c1712143cf4c1e3745bc48c48d1453883f31735b1000386897668f52d16958b3ae747abe147a0498f43cc8510f7406b6886360a2b88f4eba33aed786
7
- data.tar.gz: 3b4d86dc21f5296491406b51094980006a847a610d28802a951b19cab361e83e52a00693d66c1d86a7c67e2c7e4d9c4a780b63a886acc73d8c08feeda2916130
6
+ metadata.gz: 5304a47a130bd885cc27b87be59aaae0cd194ae37ed3319b75606b5f23afe4751611cde89a8befa5b26883cd988418419acc18cdf8fea662412db1bc6822faff
7
+ data.tar.gz: 89e3a57bfa330abbc3305a760a283e7db2e9fcfc0ec5942c412d98a9a5ebec44f115f25e62f185f3a13f47d43a0762f8c49d88bb0fca042c11710e6f71a75af0
data/CHANGELOG.md CHANGED
@@ -5,6 +5,10 @@ This CHANGELOG follows the format listed [here](https://github.com/sensu-plugins
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [2.8.3] - 2018-03-14
9
+ ### Fixed
10
+ - `metrics-curl.rb`: fix shell quoting problem at execution and parse correctly curl metrics on non-C locale. (@multani)
11
+
8
12
  ## [2.8.2] - 2018-03-13
9
13
  ### Fixed
10
14
  - most of the scripts failed when `# frozen_string_literal: true` was set because `mixlib-cli` does not support this. This reverts the old behavior in the checks but leaves libs which were unaffected alone (@majormoses)
@@ -177,7 +181,8 @@ This CHANGELOG follows the format listed [here](https://github.com/sensu-plugins
177
181
  ### Added
178
182
  - Initial release
179
183
 
180
- [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-http/compare/2.8.2...HEAD
184
+ [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-http/compare/2.8.3...HEAD
185
+ [2.8.3]: https://github.com/sensu-plugins/sensu-plugins-http/compare/2.8.2...2.8.3
181
186
  [2.8.2]: https://github.com/sensu-plugins/sensu-plugins-http/compare/2.8.1...2.8.2
182
187
  [2.8.1]: https://github.com/sensu-plugins/sensu-plugins-http/compare/2.8.0...2.8.1
183
188
  [2.8.0]: https://github.com/sensu-plugins/sensu-plugins-http/compare/2.7.0...2.8.0
data/bin/metrics-curl.rb CHANGED
@@ -58,8 +58,8 @@ class CurlMetrics < Sensu::Plugin::Metric::CLI::Graphite
58
58
  default: "#{Socket.gethostname}.curl_timings"
59
59
 
60
60
  def run
61
- cmd = "curl --silent --output /dev/null #{config[:curl_args]} "
62
- cmd += '-w %{time_total},%{time_namelookup},%{time_connect},%{time_pretransfer},%{time_redirect},%{time_starttransfer},%{http_code}" '
61
+ cmd = "LC_NUMERIC=C curl --silent --output /dev/null #{config[:curl_args]} "
62
+ cmd += '-w "%{time_total},%{time_namelookup},%{time_connect},%{time_pretransfer},%{time_redirect},%{time_starttransfer},%{http_code}" '
63
63
  cmd += config[:url]
64
64
 
65
65
  output = `#{cmd}`
@@ -4,7 +4,7 @@ module SensuPluginsHttp
4
4
  module Version
5
5
  MAJOR = 2
6
6
  MINOR = 8
7
- PATCH = 2
7
+ PATCH = 3
8
8
 
9
9
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
10
10
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-plugins-http
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.8.2
4
+ version: 2.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sensu-Plugins and contributors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-13 00:00:00.000000000 Z
11
+ date: 2018-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sensu-plugin