sensu-plugins-aws 3.2.0 → 3.2.1

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: 65a658312741eaa7884c4c1c12cad191fa918902
4
- data.tar.gz: 79db3d111315f8eeb145ddfefb975851f0c6e3b7
3
+ metadata.gz: f76b3d361f86aba6404b7feec0fb0a539c905ee1
4
+ data.tar.gz: d4c41a184fbceac2538a6b74e055c672342b0916
5
5
  SHA512:
6
- metadata.gz: 72da4039f685bf1ec8f5a95f8fccd88c827a0a0e225089224627334bbf0646cd2c290aee3b3ed5947dac99ecc76aac1bfcaaeab7a2318170540c4908337064fb
7
- data.tar.gz: 04324188dc9b85f734b8928c845d6bb4acad5c66e9e8932697395a99d6361f937968f12c66fd06e596f69a64e3efcf75aab3d606b84b318a4efd2aa92fde5a50
6
+ metadata.gz: a1508eaa5d15d324188474c38bb248f57dd58f413913e8e39975648416347d809e4b3de01f6c39c45695d7b72fd5fe4285289f6f8e42bf99b94a96da61c4465a
7
+ data.tar.gz: 899da9812e7855ae89f970a27447d0d89f0ba5eb13d478e4c7201ab7fdbc1ecbaba34118c395714ee72fb548ec4e3952f76b85e1bed327c6962c7b12287bc7f8
data/CHANGELOG.md CHANGED
@@ -5,6 +5,12 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [3.2.1] - 2016-08-10
9
+ ### Fixed
10
+ - check-instance-health.rb: fixed remediated events not working after resolving it (@oba11)
11
+ - Fixed bugs in check-emr-steps.rb (@babsher)
12
+ - check-elb-certs.rb: Fix error introduced by rubocop cleanup (#125 @eheydrick)
13
+
8
14
  ## [3.2.0] - 2016-08-03
9
15
  ### Fixed
10
16
  - metrics-emr-steps.rb: fixed typo in variable name (@babsher)
@@ -226,7 +232,8 @@ WARNING: This release contains major breaking changes that will impact all user
226
232
  ### Added
227
233
  - initial release
228
234
 
229
- [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-aws/compare/3.2.0...HEAD
235
+ [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-aws/compare/3.2.1..HEAD
236
+ [3.2.1]: https://github.com/sensu-plugins/sensu-plugins-aws/compare/3.2.0...3.2.1
230
237
  [3.2.0]: https://github.com/sensu-plugins/sensu-plugins-aws/compare/3.1.0...3.2.0
231
238
  [3.1.0]: https://github.com/sensu-plugins/sensu-plugins-aws/compare/3.0.0...3.1.0
232
239
  [3.0.0]: https://github.com/sensu-plugins/sensu-plugins-aws/compare/2.4.3...3.0.0
@@ -127,7 +127,7 @@ class CheckELBCerts < Sensu::Plugin::Check::CLI
127
127
  unknown "An error occurred processing AWS ELB API: #{e.message}"
128
128
  end
129
129
 
130
- if !critical_message.length.empty?
130
+ if !critical_message.empty?
131
131
  message = cert_message(critical_message.length, 'expiring within', config[:crit_under])
132
132
  message += ': ' + critical_message.sort.join(' ')
133
133
  critical message
@@ -59,6 +59,7 @@ class CheckEMRSteps < Sensu::Plugin::Check::CLI
59
59
  short: '-c COUNT',
60
60
  long: '--count',
61
61
  description: 'Max number of steps with this status.',
62
+ proc: proc(&:to_i),
62
63
  default: 0
63
64
 
64
65
  def run
@@ -71,7 +72,7 @@ class CheckEMRSteps < Sensu::Plugin::Check::CLI
71
72
 
72
73
  steps = emr.list_steps(
73
74
  cluster_id: cluster.id,
74
- step_states: config[:status]
75
+ step_states: [config[:status]]
75
76
  ).steps
76
77
 
77
78
  messages = []
@@ -41,7 +41,7 @@ class CheckInstanceEvents < Sensu::Plugin::Check::CLI
41
41
  default: 'us-east-1'
42
42
 
43
43
  def gather_events(events)
44
- useful_events = events.reject { |x| x[:code] == 'system-reboot' && x[:description] =~ /\[Completed\]/ }
44
+ useful_events = events.reject { |x| (x[:code] =~ /system-reboot|instance-stop|system-maintenance/) && (x[:description] =~ /\[Completed\]|\[Canceled\]/) }
45
45
  !useful_events.empty?
46
46
  end
47
47
 
@@ -2,7 +2,7 @@ module SensuPluginsAWS
2
2
  module Version
3
3
  MAJOR = 3
4
4
  MINOR = 2
5
- PATCH = 0
5
+ PATCH = 1
6
6
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-plugins-aws
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.0
4
+ version: 3.2.1
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: 2016-08-03 00:00:00.000000000 Z
11
+ date: 2016-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk