sensu-plugins-aws 5.1.0 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 68d4ea876c28d7359360a917eb6208074e95faf7
4
- data.tar.gz: a9e7724749ef0d6d5c8b940287fc1069aed5001c
3
+ metadata.gz: 0d3c5e2004707422af5e589968107c2a8a8e08dc
4
+ data.tar.gz: 70afa3ca1abecb2941ad349e3d7be906e5e02d92
5
5
  SHA512:
6
- metadata.gz: 02fe49c09376fbeddb8a610f6cea37e37a66152d0aad1e41d53f63d79e00ac999ba6bb5d963cabb991b82a40338045060bb447787b786db4b6d810847a802aa7
7
- data.tar.gz: 17c3f83d4a95eca2c3a61350a88beccd3dd93ca057d9a1439cf219b8a73200ca32d579125c37cc4acea6c53237a52c708065d180e5612830ee90b862b48889cd
6
+ metadata.gz: 9002e1780605aa9d9b6b8c341c3ff9249264ed7f0eaee1c5821e774e3ee6102e1cde3daea0aaa67ea963109d2594b6c16e70f3c2d075545af442d16d21e263f5
7
+ data.tar.gz: 38bfa408a0ac64c03477611f8f95af494342204b85a734f82ea98d41edc16edd2f981c7ddf31d014150562eec94feea96c81cd5edf36a1d64915a3fe587188c4
data/CHANGELOG.md CHANGED
@@ -4,6 +4,10 @@ This project adheres to [Semantic Versioning](http://semver.org/).
4
4
  This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachangelog.com/)
5
5
 
6
6
  ## [Unreleased]
7
+ ## 6.0.0
8
+ ### Breaking Change
9
+ - check-elb-nodes.rb returns critical instead of unknown if total number of nodes equals zero (@autarchprinceps)
10
+
7
11
  ## [5.1.0] - 2017-05-09
8
12
  - check-s3-object.rb: Add an option to check a file by his prefix (@julio-ogury)
9
13
 
@@ -299,7 +303,8 @@ WARNING: This release contains major breaking changes that will impact all user
299
303
  ### Added
300
304
  - initial release
301
305
 
302
- [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-aws/compare/5.1.0...HEAD
306
+ [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-aws/compare/6.0.0...HEAD
307
+ [6.0.0]: https://github.com/sensu-plugins/sensu-plugins-aws/compare/5.1.0...6.0.0
303
308
  [5.1.0]: https://github.com/sensu-plugins/sensu-plugins-aws/compare/5.1.0...5.0.0
304
309
  [5.0.0]: https://github.com/sensu-plugins/sensu-plugins-aws/compare/5.0.0...4.1.0
305
310
  [4.1.0]: https://github.com/sensu-plugins/sensu-plugins-aws/compare/4.1.0...4.0.0
@@ -125,7 +125,9 @@ class CheckELBNodes < Sensu::Plugin::Check::CLI
125
125
  message << " (#{state['Unknown'].join(', ')})"
126
126
  end
127
127
 
128
- if state['Unknown'].count == num_instances
128
+ if num_instances.zero?
129
+ critical 'ELB has no nodes'
130
+ elsif state['Unknown'].count == num_instances
129
131
  unknown 'All nodes in unknown state'
130
132
  elsif state['InService'].count == 0
131
133
  critical message
@@ -1,7 +1,7 @@
1
1
  module SensuPluginsAWS
2
2
  module Version
3
- MAJOR = 5
4
- MINOR = 1
3
+ MAJOR = 6
4
+ MINOR = 0
5
5
  PATCH = 0
6
6
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-plugins-aws
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.1.0
4
+ version: 6.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sensu-Plugins and contributors