sensu-plugins-aws 2.4.0 → 2.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NmIxNTU0MzhkZTAzOGNhODc3OWY0ZmY2OTgzZThkMThjYjVhYmZlNw==
4
+ ZGQ3MDRlNGRkNTQzZmRkNDgwYWEyZjA0NDVjM2RmNTA0ZTE5YzU0YQ==
5
5
  data.tar.gz: !binary |-
6
- NzlhNTNkN2ViMWYxMjdhZTQxN2FhNWQ2MTA1NmE5ZTA4ZDlkOGEwYw==
6
+ NTFjNTg3ZTExN2Y4YmUwMGUxZDQzMWJjZmIzYmZmY2UyNGFlOTExMw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YTNmNzc0YWM2ZGYyMTQzYTU0N2UyMGZjZGNiMDNiNzQwMGU3NDE1OWVjOTQx
10
- N2FlMWQwZWY3ZDk0NmFkNjAwZjllMWY1NzU5YTdmZGZhMmRiNDhkZGY1NWFl
11
- NDU5OWZhNTE5Zjg3NWU2N2IyNTVlNTM5Mjg5NzdlYmNiNzExOWY=
9
+ MjdjNDYxZWFkZGE1ZmZjM2Y5MTZjNTM1ZTg5YjBhNTgxMDRhNjJiMjU4MjMy
10
+ MGZkM2RlMzY1YzhhZTBkMmNjYzNlMzdjMGFkYWVjODkyMzU1NTdiNGVlYmZj
11
+ ZDk0MDBlNzIwOGEzM2NjOGRjNWZmMTgzZjI1ZGEyYTQ5M2RmMmM=
12
12
  data.tar.gz: !binary |-
13
- YmM1Njk5YzcxMDZlNGIyNDcxNjc2Nzk1NTkxODlkZDhkMjAyMzVlZjU2MTU1
14
- Y2FhODk3MTJmNzBiMTQ1NjVmMzI5ZDQ3N2U1ODJlMTZiOWRkODBjNjA3NjJh
15
- YzJmYmVjZTZmNDZmMTQwMTM1ZWY2ZjEzMGIwMDBjZjhjZDZjZjQ=
13
+ YmE5MzhkNDIzYTEyOWJjZTg3ODAxNTdhOTE1YTFiOGQwOWFkOWE2NTg2MjRm
14
+ ODYwZDJkZDQwOWQ3MDhmMTk3ZGJkOGY0Nzc1YmI2ZDUyZTJlZjliNDdlZTRj
15
+ YmRhOTIwMDM2ZTQ0YTQ0YmY0ODZmM2RiYzIyYTM3NWY2NTBkM2E=
data/CHANGELOG.md CHANGED
@@ -5,6 +5,10 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [2.4.1] - 2016-04-13
9
+ ### Fixed
10
+ - check-ses-statistics.rb: Make sure inputs are integers
11
+
8
12
  ## [2.4.0] - 2016-04-13
9
13
  ### Added
10
14
  - Added metrics-ses.rb to collect SES metrics from GetSendStatistics
@@ -162,7 +166,8 @@ WARNING: This release contains major breaking changes that will impact all user
162
166
  ### Added
163
167
  - initial release
164
168
 
165
- [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-aws/compare/2.4.0...HEAD
169
+ [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-aws/compare/2.4.1...HEAD
170
+ [2.4.1]: https://github.com/sensu-plugins/sensu-plugins-aws/compare/v2.4.0...2.4.1
166
171
  [2.4.0]: https://github.com/sensu-plugins/sensu-plugins-aws/compare/v2.3.0...2.4.0
167
172
  [2.3.0]: https://github.com/sensu-plugins/sensu-plugins-aws/compare/v2.2.0...2.3.0
168
173
  [2.2.0]: https://github.com/sensu-plugins/sensu-plugins-aws/compare/v2.1.1...2.2.0
@@ -44,61 +44,71 @@ class CheckSesStatistics < Sensu::Plugin::Check::CLI
44
44
  short: '-l COUNT',
45
45
  long: '--low_delivery_warn',
46
46
  description: 'Number of delivery attempts to warn below.',
47
- default: 0
47
+ default: 0,
48
+ proc: proc(&:to_i)
48
49
 
49
50
  option :low_delivery_crit,
50
51
  short: '-L COUNT',
51
52
  long: '--low_delivery_crit',
52
53
  description: 'Number of delivery attempts to alert below.',
53
- default: 0
54
+ default: 0,
55
+ proc: proc(&:to_i)
54
56
 
55
57
  option :delivery_warn,
56
58
  short: '-d COUNT',
57
59
  long: '--delivery_warn',
58
60
  description: 'Number of delivery attempts to warn above.',
59
- default: 0
61
+ default: 0,
62
+ proc: proc(&:to_i)
60
63
 
61
64
  option :delivery_crit,
62
65
  short: '-D COUNT',
63
66
  long: '--delivery_crit',
64
67
  description: 'Number of delivery attempts to alert above.',
65
- default: 0
68
+ default: 0,
69
+ proc: proc(&:to_i)
66
70
 
67
71
  option :complaint_warn,
68
72
  short: '-c COUNT',
69
73
  long: '--complaint_warn',
70
74
  description: 'Number of complaints to warn above.',
71
- default: 0
75
+ default: 0,
76
+ proc: proc(&:to_i)
72
77
 
73
78
  option :complaint_crit,
74
79
  short: '-C COUNT',
75
80
  long: '--complaint_crit',
76
81
  description: 'Number of complaints to alert above.',
77
- default: 0
82
+ default: 0,
83
+ proc: proc(&:to_i)
78
84
 
79
85
  option :reject_warn,
80
86
  short: '-j COUNT',
81
87
  long: '--reject_warn',
82
88
  description: 'Number of rejects to warn above.',
83
- default: 0
89
+ default: 0,
90
+ proc: proc(&:to_i)
84
91
 
85
92
  option :reject_crit,
86
93
  short: '-J COUNT',
87
94
  long: '--reject_crit',
88
95
  description: 'Number of rejects to alert above.',
89
- default: 0
96
+ default: 0,
97
+ proc: proc(&:to_i)
90
98
 
91
99
  option :bounce_warn,
92
100
  short: '-b COUNT',
93
101
  long: '--bounce_warn',
94
102
  description: 'Number of bounces to warn above.',
95
- default: 0
103
+ default: 0,
104
+ proc: proc(&:to_i)
96
105
 
97
106
  option :bounce_crit,
98
107
  short: '-B COUNT',
99
108
  long: '--bounce_crit',
100
109
  description: 'Number of bounces to alert above.',
101
- default: 0
110
+ default: 0,
111
+ proc: proc(&:to_i)
102
112
 
103
113
  def run
104
114
  ses = Aws::SES::Client.new(aws_config)
@@ -2,7 +2,7 @@ module SensuPluginsAWS
2
2
  module Version
3
3
  MAJOR = 2
4
4
  MINOR = 4
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: 2.4.0
4
+ version: 2.4.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-04-13 00:00:00.000000000 Z
11
+ date: 2016-04-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk