sensu-plugins-elasticsearch 1.5.2 → 1.5.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
  SHA1:
3
- metadata.gz: 006634a93bb47a27e9fe55204fef9c6b347c7ce7
4
- data.tar.gz: ca2839e73ce925d31cb0b19eaab84f5c77637cb8
3
+ metadata.gz: 4c7ade9ede1e2715cb933aea04162f5f9bbe281d
4
+ data.tar.gz: d44a555d474eb50d94a0c50befff77aff242f5e9
5
5
  SHA512:
6
- metadata.gz: 8bf7de52696f427738a2385ddbb982025a26bb96a7a8b2a2411dd256478662475bacc4bf7d21ff8bfba5b18afb81aa4d6a6b8a7c51731808c1c1ce18e1b725a4
7
- data.tar.gz: 45e61b866a04019d531af3796b923f1826ff5a13316ea9f9300837147924e1dca497ba0a6f62d6cbd856a8f747bfc34546ac1438347762d4d1880518f8f19e28
6
+ metadata.gz: 9b33664bd870d93535587c5389a6c4f03edd73cfdeaeb8f22d81c4a70b67bfccb476892abac957c18aa4f038f881c3159ebc39a1d0d2155b33a07904da2b1d05
7
+ data.tar.gz: 9ccb0dc7dfdb2703da8d6cc71c984bf17c4d3922e0b72e836113c302a1b4aa886401a30bc564ef0a58839911b578e98c8ed60a3edfb1e887a18c5a5d6ef1d480
data/CHANGELOG.md CHANGED
@@ -5,6 +5,11 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+
9
+ ## [1.5.3] - 2017-08-17
10
+ ### Fixed
11
+ - bin/check-es-query-ratio.rb: ratio is performed by a float division, instead of integer division (@cgarciaarano)
12
+
8
13
  ## [1.5.2] - 2017-08-12
9
14
  ### Fixed
10
15
  - check-es-query-ratio.rb: Fix when divisor = 0 (@cgarciaarano)
@@ -175,7 +180,9 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
175
180
  ### Added
176
181
  - initial release
177
182
 
183
+
178
184
  [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-elasticsearch/compare/1.5.2...HEAD
185
+ [1.5.3]: https://github.com/sensu-plugins/sensu-plugins-elasticsearch/compare/1.5.2...1.5.3
179
186
  [1.5.2]: https://github.com/sensu-plugins/sensu-plugins-elasticsearch/compare/1.5.1...1.5.2
180
187
  [1.5.1]: https://github.com/sensu-plugins/sensu-plugins-elasticsearch/compare/1.5.0...1.5.1
181
188
  [1.5.0]: https://github.com/sensu-plugins/sensu-plugins-elasticsearch/compare/1.4.1...1.5.0
@@ -257,7 +257,7 @@ class ESQueryRatio < Sensu::Plugin::Check::CLI
257
257
  critical 'Divisor is 0, ratio check cannot be performed, raising an alert'
258
258
  else
259
259
  response = {}
260
- response['count'] = (dividend['count'] / divisor['count']).round
260
+ response['count'] = (dividend['count'].to_f / divisor['count'])
261
261
  end
262
262
  if config[:invert]
263
263
  if response['count'] < config[:crit]
@@ -2,7 +2,7 @@ module SensuPluginsElasticsearch
2
2
  module Version
3
3
  MAJOR = 1
4
4
  MINOR = 5
5
- PATCH = 2
5
+ PATCH = 3
6
6
 
7
7
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-plugins-elasticsearch
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.2
4
+ version: 1.5.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: 2017-08-12 00:00:00.000000000 Z
11
+ date: 2017-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client