sensu-plugins-aws 2.1.0 → 2.1.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.
Files changed (41) hide show
  1. checksums.yaml +13 -5
  2. checksums.yaml.gz.sig +0 -0
  3. data/CHANGELOG.md +26 -1
  4. data/README.md +4 -1
  5. data/bin/check-autoscaling-cpucredits.rb +21 -21
  6. data/bin/check-beanstalk-elb-metric.rb +3 -3
  7. data/bin/check-certificate-expiry.rb +5 -5
  8. data/bin/check-cloudwatch-metric.rb +2 -2
  9. data/bin/check-dynamodb-capacity.rb +29 -18
  10. data/bin/check-dynamodb-throttle.rb +28 -17
  11. data/bin/check-ec2-cpu_balance.rb +107 -0
  12. data/bin/check-ec2-filter.rb +5 -5
  13. data/bin/check-ec2-network.rb +19 -15
  14. data/bin/check-elb-certs.rb +2 -2
  15. data/bin/check-elb-health-fog.rb +3 -5
  16. data/bin/check-elb-health-sdk.rb +5 -5
  17. data/bin/check-elb-latency.rb +1 -1
  18. data/bin/check-elb-sum-requests.rb +1 -1
  19. data/bin/check-emr-cluster.rb +3 -5
  20. data/bin/check-instance-events.rb +2 -4
  21. data/bin/check-instance-health.rb +80 -0
  22. data/bin/check-rds-events.rb +18 -7
  23. data/bin/check-rds.rb +30 -27
  24. data/bin/check-s3-bucket.rb +2 -4
  25. data/bin/check-s3-object.rb +2 -4
  26. data/bin/check-vpc-vpn.rb +4 -6
  27. data/bin/handler-ec2_node.rb +6 -15
  28. data/bin/handler-ses.rb +5 -5
  29. data/bin/handler-sns.rb +12 -14
  30. data/bin/metrics-autoscaling-instance-count.rb +5 -5
  31. data/bin/metrics-ec2-count.rb +10 -10
  32. data/bin/metrics-elasticache.rb +5 -5
  33. data/bin/metrics-elb-full.rb +5 -5
  34. data/bin/metrics-sqs.rb +5 -5
  35. data/lib/sensu-plugins-aws/cloudwatch-common.rb +9 -8
  36. data/lib/sensu-plugins-aws/common.rb +1 -3
  37. data/lib/sensu-plugins-aws/filter.rb +2 -2
  38. data/lib/sensu-plugins-aws/version.rb +1 -1
  39. data.tar.gz.sig +0 -0
  40. metadata +139 -125
  41. metadata.gz.sig +0 -0
data/bin/check-vpc-vpn.rb CHANGED
@@ -13,7 +13,7 @@
13
13
  #
14
14
  # DEPENDENCIES:
15
15
  # gem: sensu-plugin
16
- # gem: aws-sdk
16
+ # gem: aws-sdk-v1
17
17
  #
18
18
  # USAGE:
19
19
  # ./check-vpc-vpn.rb --aws-region us-east-1 --vpn-connection-id vpn-abc1234
@@ -28,7 +28,7 @@
28
28
  #
29
29
 
30
30
  require 'sensu-plugin/check/cli'
31
- require 'aws-sdk'
31
+ require 'aws-sdk-v1'
32
32
 
33
33
  class CheckAwsVpcVpnConnections < Sensu::Plugin::Check::CLI
34
34
  @aws_config = {}
@@ -65,10 +65,8 @@ class CheckAwsVpcVpnConnections < Sensu::Plugin::Check::CLI
65
65
  def aws_config
66
66
  aws_connection_config = { region: config[:aws_region] }
67
67
  if config[:use_iam_role].nil?
68
- aws_connection_config.merge!(
69
- access_key_id: config[:access_key],
70
- secret_access_key: config[:secret_key]
71
- )
68
+ aws_connection_config[:access_key_id] = config[:access_key]
69
+ aws_connection_config[:secret_access_key] = config[:secret_key]
72
70
  end
73
71
  aws_connection_config
74
72
  end
@@ -154,13 +154,9 @@ class Ec2Node < Sensu::Handler
154
154
  def ec2_node_should_be_deleted?
155
155
  # Defining region for aws SDK object
156
156
  ec2 = Aws::EC2::Client.new(region: region)
157
- # Check if attributes or json objects are not defined
158
- if @event['client']['ec2_states'].nil? && settings['ec2_node']['ec2_states'].nil?
159
- puts 'ec2_states is not define, please add the attributes or create a json config file with valid states keys'
160
- else
161
- # Asigning valid states
162
- instance_states = @event['client']['ec2_states'] || settings['ec2_node']['ec2_states'] || ['shutting-down', 'terminated', 'stopping', 'stopped']
163
- end
157
+ settings['ec2_node'] = {} unless settings['ec2_node']
158
+ instance_states = @event['client']['ec2_states'] || settings['ec2_node']['ec2_states'] || ['shutting-down', 'terminated', 'stopping', 'stopped']
159
+ instance_reasons = @event['client']['ec2_state_reasons'] || settings['ec2_node']['ec2_state_reasons'] || %w(Client.UserInitiatedShutdown Server.SpotInstanceTermination Client.InstanceInitiatedShutdown)
164
160
 
165
161
  begin
166
162
  # Finding the instance
@@ -172,16 +168,11 @@ class Ec2Node < Sensu::Handler
172
168
  # Checking for instance state and reason, and if matches any of the user defined or default reasons then
173
169
  # method returns True
174
170
 
175
- # Returns Instance object
176
- instance_obj = instances.instances[0]
177
171
  # Returns instance state reason in AWS i.e: "Client.UserInitiatedShutdown"
178
- instance_state_reason = instance_obj.state_reason.code
172
+ instance_state_reason = instances.instances[0].state_reason.code
179
173
  # Returns the instance state i.e: "terminated"
180
- instance_state = instance_obj.state.name
181
- # Defining the default reasons why an instance could be deleted or not
182
- instance_default_reasons = %w(Client.UserInitiatedShutdown Server.SpotInstanceTermination Client.InstanceInitiatedShutdown)
183
- # If user specified a reason use those otherwise use default
184
- instance_reasons = @event['client']['ec2_state_reasons'] || settings['ec2_node']['ec2_state_reasons'] || instance_default_reasons
174
+ instance_state = instances.instances[0].state.name
175
+
185
176
  # Return true is instance state and instance reason is valid
186
177
  instance_states.include?(instance_state) && instance_reasons.include?(instance_state_reason)
187
178
  end
data/bin/handler-ses.rb CHANGED
@@ -82,11 +82,11 @@ class SESNotifier < Sensu::Handler
82
82
  Occurrences: #{@event['occurrences']}
83
83
  BODY
84
84
 
85
- if @event['check']['notification'].nil?
86
- subject = "#{action_to_string} - #{event_name}: #{status_to_string}"
87
- else
88
- subject = "#{action_to_string} - #{event_name}: #{@event['check']['notification']}"
89
- end
85
+ subject = if @event['check']['notification'].nil?
86
+ "#{action_to_string} - #{event_name}: #{status_to_string}"
87
+ else
88
+ "#{action_to_string} - #{event_name}: #{@event['check']['notification']}"
89
+ end
90
90
 
91
91
  if use_ami_role
92
92
  AWS.config(region: region)
data/bin/handler-sns.rb CHANGED
@@ -44,13 +44,13 @@ class SnsNotifier < Sensu::Handler
44
44
  end
45
45
 
46
46
  def message
47
- if template_file && File.readable?(template_file)
48
- template = File.read(template_file)
49
- else
50
- template = <<-BODY.gsub(/^\s+/, '')
47
+ template = if template_file && File.readable?(template_file)
48
+ File.read(template_file)
49
+ else
50
+ <<-BODY.gsub(/^\s+/, '')
51
51
  <%= @event['check']['notification'] || @event['check']['output'] %>
52
52
  BODY
53
- end
53
+ end
54
54
  eruby = Erubis::Eruby.new(template)
55
55
  eruby.result(binding)
56
56
  end
@@ -72,15 +72,13 @@ class SnsNotifier < Sensu::Handler
72
72
 
73
73
  t = sns.topics[topic_arn]
74
74
 
75
- if @event['action'].eql?('resolve')
76
- subject = "RESOLVED - [#{event_name}]"
77
- options = { subject: subject }
78
- t.publish("#{subject} - #{message}", options)
79
- else
80
- subject = "ALERT - [#{event_name}]"
81
- options = { subject: subject }
82
- t.publish("#{subject} - #{message}", options)
83
- end
75
+ subject = if @event['action'].eql?('resolve')
76
+ "RESOLVED - [#{event_name}]"
77
+ else
78
+ "ALERT - [#{event_name}]"
79
+ end
80
+ options = { subject: subject }
81
+ t.publish("#{subject} - #{message}", options)
84
82
  rescue => e
85
83
  puts "Exception occured in SnsNotifier: #{e.message}", e.backtrace
86
84
  end
@@ -68,11 +68,11 @@ class AutoScalingInstanceCountMetrics < Sensu::Plugin::Metric::CLI::Graphite
68
68
  end
69
69
 
70
70
  def run
71
- if config[:scheme] == ''
72
- graphitepath = "#{config[:groupname]}.autoscaling.instance_count"
73
- else
74
- graphitepath = config[:scheme]
75
- end
71
+ graphitepath = if config[:scheme] == ''
72
+ "#{config[:groupname]}.autoscaling.instance_count"
73
+ else
74
+ config[:scheme]
75
+ end
76
76
  begin
77
77
  as = AWS::AutoScaling.new aws_config
78
78
  count = as.groups[config[:groupname]].auto_scaling_instances.map(&:lifecycle_state).count('InService')
@@ -81,11 +81,11 @@ class EC2Metrics < Sensu::Plugin::Metric::CLI::Graphite
81
81
  unless total.nil?
82
82
  data[:instance_status_set].each do |value|
83
83
  stat = value[:instance_state][:name]
84
- if status[stat].nil?
85
- status[stat] = 1
86
- else
87
- status[stat] = status[stat] + 1
88
- end
84
+ status[stat] = if status[stat].nil?
85
+ 1
86
+ else
87
+ status[stat] + 1
88
+ end
89
89
  end
90
90
  end
91
91
 
@@ -109,11 +109,11 @@ class EC2Metrics < Sensu::Plugin::Metric::CLI::Graphite
109
109
  instances[:reservation_set].each do |i|
110
110
  i[:instances_set].each do |instance|
111
111
  type = instance[:instance_type]
112
- if data[type].nil?
113
- data[type] = 1
114
- else
115
- data[type] = data[type] + 1
116
- end
112
+ data[type] = if data[type].nil?
113
+ 1
114
+ else
115
+ data[type] + 1
116
+ end
117
117
  end
118
118
  end
119
119
 
@@ -92,11 +92,11 @@ class ElastiCacheMetrics < Sensu::Plugin::Metric::CLI::Graphite
92
92
  end
93
93
 
94
94
  def run
95
- if config[:scheme] == ''
96
- graphitepath = "elasticache.#{config[:cacheclusterid]}"
97
- else
98
- graphitepath = config[:scheme]
99
- end
95
+ graphitepath = if config[:scheme] == ''
96
+ "elasticache.#{config[:cacheclusterid]}"
97
+ else
98
+ config[:scheme]
99
+ end
100
100
 
101
101
  statistic_type = {
102
102
  'redis' => {
@@ -117,11 +117,11 @@ class ELBMetrics < Sensu::Plugin::Metric::CLI::Graphite
117
117
  'period' => 60
118
118
  }
119
119
  config[:elbname].split(',').each do |elbname|
120
- if config[:scheme] == ''
121
- graphitepath = "#{elbname}"
122
- else
123
- graphitepath = "#{config[:scheme]}.#{elbname}"
124
- end
120
+ graphitepath = if config[:scheme] == ''
121
+ elbname.to_s
122
+ else
123
+ "#{config[:scheme]}.#{elbname}"
124
+ end
125
125
  result = {}
126
126
  statistic_type.each do |key, value|
127
127
  options['metric_name'] = key
data/bin/metrics-sqs.rb CHANGED
@@ -68,11 +68,11 @@ class SQSMetrics < Sensu::Plugin::Metric::CLI::Graphite
68
68
  end
69
69
 
70
70
  def run
71
- if config[:scheme] == ''
72
- scheme = "aws.sqs.queue.#{config[:queue].tr('-', '_')}.message_count"
73
- else
74
- scheme = config[:scheme]
75
- end
71
+ scheme = if config[:scheme] == ''
72
+ "aws.sqs.queue.#{config[:queue].tr('-', '_')}.message_count"
73
+ else
74
+ config[:scheme]
75
+ end
76
76
 
77
77
  begin
78
78
  sqs = AWS::SQS.new aws_config
@@ -10,18 +10,19 @@ module CloudwatchCommon
10
10
  end
11
11
 
12
12
  def resp_has_no_data(resp, stats)
13
- resp.datapoints.nil? || resp.datapoints.length == 0 || resp.datapoints.first.nil? || read_value(resp, stats).nil?
13
+ resp.datapoints.nil? || resp.datapoints.length.empty? || resp.datapoints.first.nil? || read_value(resp, stats).nil?
14
14
  end
15
15
 
16
16
  def compare(value, threshold, compare_method)
17
- if compare_method == 'greater'
18
- return value > threshold
19
- elsif compare_method == 'less'
20
- return value < threshold
21
- elsif compare_method == 'not'
22
- return value != threshold
17
+ case compare_method
18
+ when 'greater'
19
+ value > threshold
20
+ when 'less'
21
+ value < threshold
22
+ when 'not'
23
+ value != threshold
23
24
  else
24
- return value == threshold
25
+ value == threshold
25
26
  end
26
27
  end
27
28
 
@@ -23,9 +23,7 @@ module Common
23
23
  end
24
24
 
25
25
  def aws_config
26
- Aws.config.update(
27
- credentials: Aws::Credentials.new(config[:aws_access_key], config[:aws_secret_access_key])
28
- ) if config[:aws_access_key] && config[:aws_secret_access_key]
26
+ Aws.config[:credentials] = Aws::Credentials.new(config[:aws_access_key], config[:aws_secret_access_key]) if config[:aws_access_key] && config[:aws_secret_access_key]
29
27
 
30
28
  Aws.config.update(
31
29
  region: config[:aws_region]
@@ -27,7 +27,7 @@ module Filter
27
27
 
28
28
  items.each do |item|
29
29
  if item.strip.empty?
30
- fail 'Invalid filter syntax'
30
+ raise 'Invalid filter syntax'
31
31
  end
32
32
 
33
33
  entry = {}
@@ -35,7 +35,7 @@ module Filter
35
35
  value = item.scan(/values:\[(.*?)\]/)
36
36
 
37
37
  if name.nil? || name.empty? || value.nil? || value.empty?
38
- fail 'Unable to parse filter entry'
38
+ raise 'Unable to parse filter entry'
39
39
  end
40
40
 
41
41
  entry[:name] = name[0][0].strip
@@ -2,7 +2,7 @@ module SensuPluginsAWS
2
2
  module Version
3
3
  MAJOR = 2
4
4
  MINOR = 1
5
- PATCH = 0
5
+ PATCH = 1
6
6
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
7
7
  end
8
8
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,36 +1,45 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-plugins-aws
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.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
- - |
12
- -----BEGIN CERTIFICATE-----
13
- MIIDgDCCAmigAwIBAgIBATANBgkqhkiG9w0BAQUFADBDMRIwEAYDVQQDDAltYXR0
14
- am9uZXMxGDAWBgoJkiaJk/IsZAEZFgh5aWVsZGJvdDETMBEGCgmSJomT8ixkARkW
15
- A2NvbTAeFw0xNTAxMjgyMTAyNTFaFw0xNjAxMjgyMTAyNTFaMEMxEjAQBgNVBAMM
16
- CW1hdHRqb25lczEYMBYGCgmSJomT8ixkARkWCHlpZWxkYm90MRMwEQYKCZImiZPy
17
- LGQBGRYDY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAyTSzVYnO
18
- CLgyrIyT1mBQakArQyW8xhi6MlDqyzXHJGeERT790U6EgoBVeS4XoK0ptFZNR8Tf
19
- zko0w+Nv47TarSCgkPOaxY+mxWnAVR10dOmfeLr7huiMyps+YD56/EF2FqQ3jf/+
20
- qohENfKD91qy1ieEy+Fn7Pf74ltbNKUdkb9a9eFXQ0DQ4ip5vik7DzjQkUTj4lca
21
- k6ArwnmHX4YDhZoYtrQJ8jVktN0/+NtA40M5qkCYHNe5tUW25b/tKVYuioxG6b2Z
22
- oIzaZxRLxf6HVAWpCVRT/F5+/yjigkX4u++eYacfLGleXQzoK7BL65vHGMJygWEE
23
- 0TKGqFOrl/L0AQIDAQABo38wfTAJBgNVHRMEAjAAMAsGA1UdDwQEAwIEsDAdBgNV
24
- HQ4EFgQUEf6a8Td7MrSZc8ImbLFZAENPbz0wIQYDVR0RBBowGIEWbWF0dGpvbmVz
25
- QHlpZWxkYm90LmNvbTAhBgNVHRIEGjAYgRZtYXR0am9uZXNAeWllbGRib3QuY29t
26
- MA0GCSqGSIb3DQEBBQUAA4IBAQBbzXAYA3BVGw8DZ0YYoY1VHPNEcH5qPIApmHO8
27
- rvSmuUT0yMEi7u00H/5uHRFf4LleGT/+sTdyXKsNPGT9kdRuQEgwi+vf7Zfvd8aX
28
- UF/+4VkEYf/8rV8Ere6u2QaWPgApdMV6JjKr1fAwCTd8AuGXNaWItiPPMseSQzLJ
29
- JKP4hVvbc1d+oS925B1lcBiqn2aYvElbyNAVmQPywNNqkWmvtlqj9ZVJfV5HQLdu
30
- 8sHuVruarogxxKPBzlL2is4EUb6oN/RdpGx2l4254+nyR+abg//Ed27Ym0PkB4lk
31
- HP0m8WSjZmFr109pE/sVsM5jtOCvogyujQOjNVGN4gz1wwPr
32
- -----END CERTIFICATE-----
33
- date: 2016-01-16 00:00:00.000000000 Z
11
+ - !binary |-
12
+ LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURuakNDQW9hZ0F3SUJB
13
+ Z0lCQVRBTkJna3Foa2lHOXcwQkFRVUZBREJLTVJVd0V3WURWUVFEREF4elpX
14
+ NXoKZFMxd2JIVm5hVzR4SFRBYkJnb0praWFKay9Jc1pBRVpGZzF6Wlc1emRT
15
+ MXdiSFZuYVc1ek1SSXdFQVlLQ1pJbQppWlB5TEdRQkdSWUNhVzh3SGhjTk1U
16
+ WXdNakEwTWpNeU1qRTNXaGNOTVRjd01qQXpNak15TWpFM1dqQktNUlV3CkV3
17
+ WURWUVFEREF4elpXNXpkUzF3YkhWbmFXNHhIVEFiQmdvSmtpYUprL0lzWkFF
18
+ WkZnMXpaVzV6ZFMxd2JIVm4KYVc1ek1SSXdFQVlLQ1pJbWlaUHlMR1FCR1JZ
19
+ Q2FXOHdnZ0VpTUEwR0NTcUdTSWIzRFFFQkFRVUFBNElCRHdBdwpnZ0VLQW9J
20
+ QkFRQy9VUzNmdEkyUmQrOWQzS3JIQUw0bERsOGxhN2s2ZHA3K1RPY210VHd3
21
+ YzRiMUwzV0NyeEFoClpDWms1Q3k2aUpvWUd4VHVoNittSDJZZ3ExbHZGRE4v
22
+ NTh5YVRHTVFINzNRYVJjZjVnak9IMkJSQTlkUWRzWUgKYTNZYnMrbGxwVlYv
23
+ ZC9kMklaYyt2RU9tc21rTFpVeEhzZFdQSTZsWTBuYXJwU2RxNHNML0lXWWZP
24
+ aW1ocFFTWgpTV0t5WHg5cjM4UFpZZ0Q3djIydjloNTZkcUpQZFFPY29OODhF
25
+ NkE4YTdQWTcvL1RweWdTREtuSldudkFwS1JxCjNCN0xMaFNkOTRQMHdRcGow
26
+ MS9sb05Nd0FCMytGQjRRQ0UrdG1QeFYxZ1Q2ZWE4VW1SNjQrcGZKTFN0NGl5
27
+ N0gKVGc5OTdCZFZqaURJdG5SYzhCSXNjVFl4S2JRai9wTEhBZ01CQUFHamdZ
28
+ NHdnWXN3Q1FZRFZSMFRCQUl3QURBTApCZ05WSFE4RUJBTUNCTEF3SFFZRFZS
29
+ ME9CQllFRk5McjBmZ1BmdnlWK0VneEVGRHhVcVFhU2xScE1DZ0dBMVVkCkVR
30
+ UWhNQitCSFhObGJuTjFMWEJzZFdkcGJrQnpaVzV6ZFMxd2JIVm5hVzV6TG1s
31
+ dk1DZ0dBMVVkRWdRaE1CK0IKSFhObGJuTjFMWEJzZFdkcGJrQnpaVzV6ZFMx
32
+ d2JIVm5hVzV6TG1sdk1BMEdDU3FHU0liM0RRRUJCUVVBQTRJQgpBUUNQZTZ0
33
+ RUJ0NS9uQzk1aFhvS2VLRmhrWVc5bTE2aU5YdWRKeEorZGRYcnpDc2tEMXk2
34
+ ajZjQXY0a1FlUDFmClBIbDE4aDVrOWtKeElQU1IrcUkrK2JJbDE3ZUVPU096
35
+ YXNMbXdzdGFNU25NN3U1UWZMcFdFWTJldVZXQkRzdGQKMmhrcG80VSswSzVT
36
+ d3ptZEphMFdLQXRmS3ZkdENROGk5MllJUCtIODNFdXZDU0xwZ29aaDYzRXJx
37
+ dVFVY25lbgphZmg1bHVUQkExaTFjcUJHNEFNSjBmTFdHeU9xSmFYOFA5WnN4
38
+ RERXUEVCbk5TaVd2WGIrSUttSkFWTzF1VzRrClFOODNielZXU1d1bFk4Qlk2
39
+ a1grSVFNd1lhelpBbEIvMTNkN2E4VTBoN0NyYjM2Sm5TUGF0aHVSemU0cUtY
40
+ RlEKM2YzVFVaV3d2UmZ0Y1N1K3Z0Y0JSa00wCi0tLS0tRU5EIENFUlRJRklD
41
+ QVRFLS0tLS0K
42
+ date: 2016-02-07 00:00:00.000000000 Z
34
43
  dependencies:
35
44
  - !ruby/object:Gem::Dependency
36
45
  name: aws-sdk
@@ -38,28 +47,28 @@ dependencies:
38
47
  requirements:
39
48
  - - '='
40
49
  - !ruby/object:Gem::Version
41
- version: 2.1.7
50
+ version: 2.2.11
42
51
  type: :runtime
43
52
  prerelease: false
44
53
  version_requirements: !ruby/object:Gem::Requirement
45
54
  requirements:
46
55
  - - '='
47
56
  - !ruby/object:Gem::Version
48
- version: 2.1.7
57
+ version: 2.2.11
49
58
  - !ruby/object:Gem::Dependency
50
59
  name: aws-sdk-v1
51
60
  requirement: !ruby/object:Gem::Requirement
52
61
  requirements:
53
62
  - - '='
54
63
  - !ruby/object:Gem::Version
55
- version: 1.64.0
64
+ version: 1.66.0
56
65
  type: :runtime
57
66
  prerelease: false
58
67
  version_requirements: !ruby/object:Gem::Requirement
59
68
  requirements:
60
69
  - - '='
61
70
  - !ruby/object:Gem::Version
62
- version: 1.64.0
71
+ version: 1.66.0
63
72
  - !ruby/object:Gem::Dependency
64
73
  name: fog
65
74
  requirement: !ruby/object:Gem::Requirement
@@ -92,16 +101,16 @@ dependencies:
92
101
  name: sensu-plugin
93
102
  requirement: !ruby/object:Gem::Requirement
94
103
  requirements:
95
- - - '='
104
+ - - ~>
96
105
  - !ruby/object:Gem::Version
97
- version: 1.2.0
106
+ version: '1.2'
98
107
  type: :runtime
99
108
  prerelease: false
100
109
  version_requirements: !ruby/object:Gem::Requirement
101
110
  requirements:
102
- - - '='
111
+ - - ~>
103
112
  - !ruby/object:Gem::Version
104
- version: 1.2.0
113
+ version: '1.2'
105
114
  - !ruby/object:Gem::Dependency
106
115
  name: erubis
107
116
  requirement: !ruby/object:Gem::Requirement
@@ -117,179 +126,180 @@ dependencies:
117
126
  - !ruby/object:Gem::Version
118
127
  version: 2.7.0
119
128
  - !ruby/object:Gem::Dependency
120
- name: codeclimate-test-reporter
129
+ name: bundler
121
130
  requirement: !ruby/object:Gem::Requirement
122
131
  requirements:
123
- - - "~>"
132
+ - - ~>
124
133
  - !ruby/object:Gem::Version
125
- version: '0.4'
134
+ version: '1.7'
126
135
  type: :development
127
136
  prerelease: false
128
137
  version_requirements: !ruby/object:Gem::Requirement
129
138
  requirements:
130
- - - "~>"
139
+ - - ~>
131
140
  - !ruby/object:Gem::Version
132
- version: '0.4'
141
+ version: '1.7'
133
142
  - !ruby/object:Gem::Dependency
134
- name: rubocop
143
+ name: codeclimate-test-reporter
135
144
  requirement: !ruby/object:Gem::Requirement
136
145
  requirements:
137
- - - '='
146
+ - - ~>
138
147
  - !ruby/object:Gem::Version
139
- version: 0.32.1
148
+ version: '0.4'
140
149
  type: :development
141
150
  prerelease: false
142
151
  version_requirements: !ruby/object:Gem::Requirement
143
152
  requirements:
144
- - - '='
153
+ - - ~>
145
154
  - !ruby/object:Gem::Version
146
- version: 0.32.1
155
+ version: '0.4'
147
156
  - !ruby/object:Gem::Dependency
148
- name: rspec
157
+ name: github-markup
149
158
  requirement: !ruby/object:Gem::Requirement
150
159
  requirements:
151
- - - "~>"
160
+ - - ~>
152
161
  - !ruby/object:Gem::Version
153
- version: '3.1'
162
+ version: '1.3'
154
163
  type: :development
155
164
  prerelease: false
156
165
  version_requirements: !ruby/object:Gem::Requirement
157
166
  requirements:
158
- - - "~>"
167
+ - - ~>
159
168
  - !ruby/object:Gem::Version
160
- version: '3.1'
169
+ version: '1.3'
161
170
  - !ruby/object:Gem::Dependency
162
- name: bundler
171
+ name: pry
163
172
  requirement: !ruby/object:Gem::Requirement
164
173
  requirements:
165
- - - "~>"
174
+ - - ~>
166
175
  - !ruby/object:Gem::Version
167
- version: '1.7'
176
+ version: '0.10'
168
177
  type: :development
169
178
  prerelease: false
170
179
  version_requirements: !ruby/object:Gem::Requirement
171
180
  requirements:
172
- - - "~>"
181
+ - - ~>
173
182
  - !ruby/object:Gem::Version
174
- version: '1.7'
183
+ version: '0.10'
175
184
  - !ruby/object:Gem::Dependency
176
185
  name: rake
177
186
  requirement: !ruby/object:Gem::Requirement
178
187
  requirements:
179
- - - "~>"
188
+ - - ~>
180
189
  - !ruby/object:Gem::Version
181
- version: '10.0'
190
+ version: '10.5'
182
191
  type: :development
183
192
  prerelease: false
184
193
  version_requirements: !ruby/object:Gem::Requirement
185
194
  requirements:
186
- - - "~>"
195
+ - - ~>
187
196
  - !ruby/object:Gem::Version
188
- version: '10.0'
197
+ version: '10.5'
189
198
  - !ruby/object:Gem::Dependency
190
- name: github-markup
199
+ name: redcarpet
191
200
  requirement: !ruby/object:Gem::Requirement
192
201
  requirements:
193
- - - "~>"
202
+ - - ~>
194
203
  - !ruby/object:Gem::Version
195
- version: '1.3'
204
+ version: '3.2'
196
205
  type: :development
197
206
  prerelease: false
198
207
  version_requirements: !ruby/object:Gem::Requirement
199
208
  requirements:
200
- - - "~>"
209
+ - - ~>
201
210
  - !ruby/object:Gem::Version
202
- version: '1.3'
211
+ version: '3.2'
203
212
  - !ruby/object:Gem::Dependency
204
- name: redcarpet
213
+ name: rubocop
205
214
  requirement: !ruby/object:Gem::Requirement
206
215
  requirements:
207
- - - "~>"
216
+ - - ~>
208
217
  - !ruby/object:Gem::Version
209
- version: '3.2'
218
+ version: '0.37'
210
219
  type: :development
211
220
  prerelease: false
212
221
  version_requirements: !ruby/object:Gem::Requirement
213
222
  requirements:
214
- - - "~>"
223
+ - - ~>
215
224
  - !ruby/object:Gem::Version
216
- version: '3.2'
225
+ version: '0.37'
217
226
  - !ruby/object:Gem::Dependency
218
- name: yard
227
+ name: rspec
219
228
  requirement: !ruby/object:Gem::Requirement
220
229
  requirements:
221
- - - "~>"
230
+ - - ~>
222
231
  - !ruby/object:Gem::Version
223
- version: '0.8'
232
+ version: '3.4'
224
233
  type: :development
225
234
  prerelease: false
226
235
  version_requirements: !ruby/object:Gem::Requirement
227
236
  requirements:
228
- - - "~>"
237
+ - - ~>
229
238
  - !ruby/object:Gem::Version
230
- version: '0.8'
239
+ version: '3.4'
231
240
  - !ruby/object:Gem::Dependency
232
- name: pry
241
+ name: yard
233
242
  requirement: !ruby/object:Gem::Requirement
234
243
  requirements:
235
- - - "~>"
244
+ - - ~>
236
245
  - !ruby/object:Gem::Version
237
- version: '0.10'
246
+ version: '0.8'
238
247
  type: :development
239
248
  prerelease: false
240
249
  version_requirements: !ruby/object:Gem::Requirement
241
250
  requirements:
242
- - - "~>"
251
+ - - ~>
243
252
  - !ruby/object:Gem::Version
244
- version: '0.10'
245
- description: |-
246
- This plugin provides native AWS instrumentation
247
- for monitoring and metrics collection, including:
248
- health and metrics for various AWS services, such
249
- as EC2, RDS, ELB, and more, as well as handlers
250
- for EC2, SES, and SNS.
251
- email: "<sensu-users@googlegroups.com>"
253
+ version: '0.8'
254
+ description: ! "This plugin provides native AWS instrumentation\n for
255
+ monitoring and metrics collection, including:\n health
256
+ and metrics for various AWS services, such\n as EC2,
257
+ RDS, ELB, and more, as well as handlers\n for EC2,
258
+ SES, and SNS."
259
+ email: <sensu-users@googlegroups.com>
252
260
  executables:
253
- - metrics-sqs.rb
254
- - metrics-elb.rb
255
- - metrics-elb-full.rb
256
- - metrics-elasticache.rb
257
- - metrics-ec2-filter.rb
258
- - metrics-ec2-count.rb
259
- - metrics-autoscaling-instance-count.rb
260
- - handler-sns.rb
261
- - handler-ses.rb
262
- - handler-ec2_node.rb
263
- - check_vpc_vpn.py
264
- - check-vpc-vpn.rb
265
- - check-vpc-nameservers.rb
266
- - check-sqs-messages.rb
267
- - check-ses-limit.rb
268
- - check-s3-object.rb
269
- - check-s3-bucket.rb
270
- - check-redshift-events.rb
271
- - check-rds.rb
272
- - check-rds-events.rb
273
- - check-instance-events.rb
274
- - check-emr-cluster.rb
275
- - check-elb-sum-requests.rb
276
- - check-elb-nodes.rb
277
- - check-elb-latency.rb
278
- - check-elb-health.rb
279
- - check-elb-health-sdk.rb
280
- - check-elb-health-fog.rb
281
- - check-elb-certs.rb
282
- - check-eip-allocation.rb
283
- - check-ec2-network.rb
284
- - check-ec2-filter.rb
285
- - check-ebs-snapshots.rb
286
- - check-dynamodb-throttle.rb
287
- - check-dynamodb-capacity.rb
288
- - check-cloudwatch-metric.rb
289
- - check-cloudwatch-alarm.rb
290
- - check-certificate-expiry.rb
291
- - check-beanstalk-elb-metric.rb
292
261
  - check-autoscaling-cpucredits.rb
262
+ - check-beanstalk-elb-metric.rb
263
+ - check-certificate-expiry.rb
264
+ - check-cloudwatch-alarm.rb
265
+ - check-cloudwatch-metric.rb
266
+ - check-dynamodb-capacity.rb
267
+ - check-dynamodb-throttle.rb
268
+ - check-ebs-snapshots.rb
269
+ - check-ec2-cpu_balance.rb
270
+ - check-ec2-filter.rb
271
+ - check-ec2-network.rb
272
+ - check-eip-allocation.rb
273
+ - check-elb-certs.rb
274
+ - check-elb-health-fog.rb
275
+ - check-elb-health-sdk.rb
276
+ - check-elb-health.rb
277
+ - check-elb-latency.rb
278
+ - check-elb-nodes.rb
279
+ - check-elb-sum-requests.rb
280
+ - check-emr-cluster.rb
281
+ - check-instance-events.rb
282
+ - check-instance-health.rb
283
+ - check-rds-events.rb
284
+ - check-rds.rb
285
+ - check-redshift-events.rb
286
+ - check-s3-bucket.rb
287
+ - check-s3-object.rb
288
+ - check-ses-limit.rb
289
+ - check-sqs-messages.rb
290
+ - check-vpc-nameservers.rb
291
+ - check-vpc-vpn.rb
292
+ - check_vpc_vpn.py
293
+ - handler-ec2_node.rb
294
+ - handler-ses.rb
295
+ - handler-sns.rb
296
+ - metrics-autoscaling-instance-count.rb
297
+ - metrics-ec2-count.rb
298
+ - metrics-ec2-filter.rb
299
+ - metrics-elasticache.rb
300
+ - metrics-elb-full.rb
301
+ - metrics-elb.rb
302
+ - metrics-sqs.rb
293
303
  extensions: []
294
304
  extra_rdoc_files: []
295
305
  files:
@@ -304,6 +314,7 @@ files:
304
314
  - bin/check-dynamodb-capacity.rb
305
315
  - bin/check-dynamodb-throttle.rb
306
316
  - bin/check-ebs-snapshots.rb
317
+ - bin/check-ec2-cpu_balance.rb
307
318
  - bin/check-ec2-filter.rb
308
319
  - bin/check-ec2-network.rb
309
320
  - bin/check-eip-allocation.rb
@@ -316,6 +327,7 @@ files:
316
327
  - bin/check-elb-sum-requests.rb
317
328
  - bin/check-emr-cluster.rb
318
329
  - bin/check-instance-events.rb
330
+ - bin/check-instance-health.rb
319
331
  - bin/check-rds-events.rb
320
332
  - bin/check-rds.rb
321
333
  - bin/check-redshift-events.rb
@@ -348,6 +360,8 @@ metadata:
348
360
  maintainer: sensu-plugin
349
361
  development_status: active
350
362
  production_status: unstable - testing recommended
363
+ release_draft: 'false'
364
+ release_prerelease: 'false'
351
365
  post_install_message: You can use the embedded Ruby by setting EMBEDDED_RUBY=true
352
366
  in /etc/default/sensu
353
367
  rdoc_options: []
@@ -355,17 +369,17 @@ require_paths:
355
369
  - lib
356
370
  required_ruby_version: !ruby/object:Gem::Requirement
357
371
  requirements:
358
- - - ">="
372
+ - - ! '>='
359
373
  - !ruby/object:Gem::Version
360
374
  version: 2.0.0
361
375
  required_rubygems_version: !ruby/object:Gem::Requirement
362
376
  requirements:
363
- - - ">="
377
+ - - ! '>='
364
378
  - !ruby/object:Gem::Version
365
379
  version: '0'
366
380
  requirements: []
367
381
  rubyforge_project:
368
- rubygems_version: 2.4.8
382
+ rubygems_version: 2.4.5
369
383
  signing_key:
370
384
  specification_version: 4
371
385
  summary: Sensu plugins for working with an AWS environment