sensu-plugins-elasticsearch 1.5.1 → 1.5.2

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: ce52bb7bcbc764e650d3007f02ff61680cfcb4ab
4
- data.tar.gz: 064d9d43f19b4605a4538b120acfffa55ac1cfe8
3
+ metadata.gz: 006634a93bb47a27e9fe55204fef9c6b347c7ce7
4
+ data.tar.gz: ca2839e73ce925d31cb0b19eaab84f5c77637cb8
5
5
  SHA512:
6
- metadata.gz: 511b53d7dda414ea7dbbe20a61eb667a92f9a785788c8ec6d1ad259b89dddb3360e1cbb9eac447c58ebc2f7437c4979810f53f78b1c89083b3378be24a8c1456
7
- data.tar.gz: 9cb2e6147b1346d5e161f060258abfb5786acbbbc3eec7675b33ec2f4cf038a01a271bfb390ecf837e499dd420947177bd611230bcddbbb8c65ce741673b368c
6
+ metadata.gz: 8bf7de52696f427738a2385ddbb982025a26bb96a7a8b2a2411dd256478662475bacc4bf7d21ff8bfba5b18afb81aa4d6a6b8a7c51731808c1c1ce18e1b725a4
7
+ data.tar.gz: 45e61b866a04019d531af3796b923f1826ff5a13316ea9f9300837147924e1dca497ba0a6f62d6cbd856a8f747bfc34546ac1438347762d4d1880518f8f19e28
data/CHANGELOG.md CHANGED
@@ -5,6 +5,9 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [1.5.2] - 2017-08-12
9
+ ### Fixed
10
+ - check-es-query-ratio.rb: Fix when divisor = 0 (@cgarciaarano)
8
11
  ## [1.5.1] - 2017-08-03
9
12
  ### Fixed
10
13
  - bin/metrics-es-cluster.rb: missing data no longer causes invalid metrics by defaulting to 0 (@TheKevJames)
@@ -172,7 +175,8 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
172
175
  ### Added
173
176
  - initial release
174
177
 
175
- [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-elasticsearch/compare/1.5.1...HEAD
178
+ [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-elasticsearch/compare/1.5.2...HEAD
179
+ [1.5.2]: https://github.com/sensu-plugins/sensu-plugins-elasticsearch/compare/1.5.1...1.5.2
176
180
  [1.5.1]: https://github.com/sensu-plugins/sensu-plugins-elasticsearch/compare/1.5.0...1.5.1
177
181
  [1.5.0]: https://github.com/sensu-plugins/sensu-plugins-elasticsearch/compare/1.4.1...1.5.0
178
182
  [1.4.1]: https://github.com/sensu-plugins/sensu-plugins-elasticsearch/compare/1.4.0...1.4.1
@@ -253,7 +253,7 @@ class ESQueryRatio < Sensu::Plugin::Check::CLI
253
253
  dividend = client.count(build_request_options)
254
254
  config[:query] = divisor_query
255
255
  divisor = client.count(build_request_options)
256
- if divisor == 0
256
+ if divisor['count'] == 0
257
257
  critical 'Divisor is 0, ratio check cannot be performed, raising an alert'
258
258
  else
259
259
  response = {}
@@ -2,7 +2,7 @@ module SensuPluginsElasticsearch
2
2
  module Version
3
3
  MAJOR = 1
4
4
  MINOR = 5
5
- PATCH = 1
5
+ PATCH = 2
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.1
4
+ version: 1.5.2
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-04 00:00:00.000000000 Z
11
+ date: 2017-08-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client