sensu-plugins-aws 12.4.0 → 13.0.0

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
- SHA256:
3
- metadata.gz: 1895a478402c34e2c5703cebe50c0f664186a137f96994a0acaefaeb31250f46
4
- data.tar.gz: 3badfe13788ad3c38fa0def5ab363bdcec1230c271432bc88cec281db8ce7847
2
+ SHA1:
3
+ metadata.gz: 827a2d3882e5684168c37dc96eb400995f1e9eb7
4
+ data.tar.gz: 507eccbec90d6865ef4463d6ed5d528407264055
5
5
  SHA512:
6
- metadata.gz: b1e08bf9ecd537d37e9c0447ce8ba763411dfebb2446939a5b95ef745867000fb69f39fb807f2fbd8355cbdbcd30dbbe23887a8451e59ceaf0843c373196d945
7
- data.tar.gz: 99795d3656689602ccc4efb59ed4c571b6c29e41ad2248d3e45c397dd10e0386fc9e4aab43118ddceccbee987667b1f347e4083d546cd8969184da5d1816d147
6
+ metadata.gz: 283432c612966352858058dcdb0922a358a30f63814f8a62cf05367980bfdbc31478d98dc678c5808b2f8be74c4876e1858ea1968353ab892064095739fbbae0
7
+ data.tar.gz: 1e838e99490104d3ea3b2165634fb9f18518283df9eec037b7e21c5027fb7b333c5f5b9155eb354da002ab37b506f72db92664566a710c5f858d2f196361c92e
@@ -5,6 +5,13 @@ This CHANGELOG follows the format listed [here](https://github.com/sensu-plugins
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [13.0.0] - 2018-11-01
9
+ ### Breaking Changes
10
+ - `check-redshift-events.rb` no longer takes `aws_access_key` and `aws_secret_access_key` options. (@boutetnico)
11
+
12
+ ### Changed
13
+ - `check-redshift-events.rb` was updated to aws-sdk v2. (@boutetnico)
14
+
8
15
  ## [12.4.0] - 2018-10-03
9
16
  ### Changed
10
17
  - check-rds.rb: Updated list of RDS instance types and their respective memory allowance (@swibowo)
@@ -506,7 +513,8 @@ WARNING: This release contains major breaking changes that will impact all user
506
513
  ### Added
507
514
  - initial release
508
515
 
509
- [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-aws/compare/12.4.0...HEAD
516
+ [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-aws/compare/13.0.0...HEAD
517
+ [13.0.0]: https://github.com/sensu-plugins/sensu-plugins-aws/compare/12.4.0...13.0.0
510
518
  [12.4.0]: https://github.com/sensu-plugins/sensu-plugins-aws/compare/12.3.0...12.4.0
511
519
  [12.3.0]: https://github.com/sensu-plugins/sensu-plugins-aws/compare/12.2.0...12.3.0
512
520
  [12.2.0]: https://github.com/sensu-plugins/sensu-plugins-aws/compare/12.1.0...12.2.0
data/README.md CHANGED
@@ -1,10 +1,9 @@
1
1
  ## Sensu-Plugins-aws
2
2
 
3
3
  [![Build Status](https://travis-ci.org/sensu-plugins/sensu-plugins-aws.svg?branch=master)](https://travis-ci.org/sensu-plugins/sensu-plugins-aws)
4
- [![Gem Version](https://badge.fury.io/rb/sensu-plugins-aws.svg)](http://badge.fury.io/rb/sensu-plugins-aws)
4
+ [![Gem Version](https://badge.fury.io/rb/sensu-plugins-aws.svg)](https://badge.fury.io/rb/sensu-plugins-aws.svg)
5
5
  [![Code Climate](https://codeclimate.com/github/sensu-plugins/sensu-plugins-aws/badges/gpa.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-aws)
6
6
  [![Test Coverage](https://codeclimate.com/github/sensu-plugins/sensu-plugins-aws/badges/coverage.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-aws)
7
- [![Dependency Status](https://gemnasium.com/sensu-plugins/sensu-plugins-aws.svg)](https://gemnasium.com/sensu-plugins/sensu-plugins-aws)
8
7
 
9
8
  ## Functionality
10
9
 
@@ -286,7 +285,21 @@
286
285
 
287
286
  [Installation and Setup](http://sensu-plugins.io/docs/installation_instructions.html)
288
287
 
289
- Note: In addition to the standard installation requirements the installation of this gem will require compiling the nokogiri gem. Due to this you'll need certain development packages on your system. On Ubuntu systems install build-essential, libxml2-dev and zlib1g-dev. On CentOS install gcc and zlib-devel.
288
+ Note: In addition to the standard installation requirements the installation of this gem will require compiling the nokogiri gem. Due to this you'll need certain development packages on your system.
289
+
290
+ On Ubuntu systems run the following to install build dependencies:
291
+
292
+ ```
293
+ sudo apt-get install build-essential libxml2-dev zlib1g-dev
294
+ ```
295
+
296
+ On CentOS systems, run the following to install build dependencies:
297
+ ```
298
+ sudo yum groupinstall -y "Development Tools"
299
+ sudo yum install -y libxml2-devel zlib-devel
300
+ ```
301
+
302
+ If you'd like to avoid compiling nokogiri and other gems on every system where you need to install this plugin collection, please have a look at [the Sensu guide for pre-compiling plugin packages](https://docs.sensu.io/sensu-core/latest/guides/pre-compile-plugins/).
290
303
 
291
304
  ## Authentication
292
305
 
@@ -12,19 +12,19 @@
12
12
  # Linux
13
13
  #
14
14
  # DEPENDENCIES:
15
- # gem: aws-sdk-v1
15
+ # gem: aws-sdk
16
16
  # gem: sensu-plugin
17
17
  #
18
18
  # USAGE:
19
19
  #
20
20
  # check for instances in maint in us-east-1:
21
- # ./check-redshift-events.rb -a ${your access key} -s ${your secret access key} -r us-east-1
21
+ # ./check-redshift-events.rb -r us-east-1
22
22
  #
23
23
  # check for maint events on a single instance in us-east-1 (skip others):
24
- # ./check-redshift-events.rb -a ${your access key} -s ${your secret access key} -r us-east-1 -i ${your cluster name}
24
+ # ./check-redshift-events.rb -r us-east-1 -i ${your cluster name}
25
25
  #
26
26
  # check for maint events on multiple instance in us-east-1 (skip others):
27
- # ./check-redshift-events.rb -a ${your access key} -s ${your secret access key} -r us-east-1 -i ${cluster1,cluster2,cluster3}
27
+ # ./check-redshift-events.rb -r us-east-1 -i ${cluster1,cluster2,cluster3}
28
28
  #
29
29
  # NOTES:
30
30
  #
@@ -35,20 +35,11 @@
35
35
  #
36
36
 
37
37
  require 'sensu-plugin/check/cli'
38
- require 'aws-sdk-v1'
38
+ require 'sensu-plugins-aws'
39
+ require 'aws-sdk'
39
40
 
40
41
  class CheckRedshiftEvents < Sensu::Plugin::Check::CLI
41
- option :aws_access_key,
42
- short: '-a AWS_ACCESS_KEY',
43
- long: '--aws-access-key AWS_ACCESS_KEY',
44
- description: "AWS Access Key. Either set ENV['AWS_ACCESS_KEY'] or provide it as an option",
45
- default: ENV['AWS_ACCESS_KEY']
46
-
47
- option :aws_secret_access_key,
48
- short: '-k AWS_SECRET_KEY',
49
- long: '--aws-secret-access-key AWS_SECRET_KEY',
50
- description: "AWS Secret Access Key. Either set ENV['AWS_SECRET_KEY'] or provide it as an option",
51
- default: ENV['AWS_SECRET_KEY']
42
+ include Common
52
43
 
53
44
  option :aws_region,
54
45
  short: '-r AWS_REGION',
@@ -63,15 +54,9 @@ class CheckRedshiftEvents < Sensu::Plugin::Check::CLI
63
54
  proc: proc { |a| a.split(',') },
64
55
  default: []
65
56
 
66
- def aws_config
67
- { access_key_id: config[:aws_access_key],
68
- secret_access_key: config[:aws_secret_access_key],
69
- region: config[:aws_region] }
70
- end
71
-
72
57
  # setup a redshift connection using aws-sdk
73
58
  def redshift
74
- @redshift ||= AWS::Redshift::Client.new aws_config
59
+ @redshift ||= Aws::Redshift::Client.new aws_config
75
60
  end
76
61
 
77
62
  # fetch all clusters in the region from AWS
@@ -1,7 +1,7 @@
1
1
  module SensuPluginsAWS
2
2
  module Version
3
- MAJOR = 12
4
- MINOR = 4
3
+ MAJOR = 13
4
+ MINOR = 0
5
5
  PATCH = 0
6
6
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
7
7
  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: 12.4.0
4
+ version: 13.0.0
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: 2018-10-04 00:00:00.000000000 Z
11
+ date: 2018-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sensu-plugin
@@ -256,86 +256,86 @@ description: |-
256
256
  for EC2, SES, and SNS.
257
257
  email: "<sensu-users@googlegroups.com>"
258
258
  executables:
259
- - check-cloudwatch-alarms.rb
260
- - metrics-cloudfront.rb
261
- - metrics-ses.rb
259
+ - check-reserved-instances.rb
262
260
  - check-ebs-burst-limit.rb
263
- - handler-scale-asg-down.rb
264
- - check-s3-bucket-visibility.rb
265
- - check-trustedadvisor-service-limits.rb
266
- - check-kms-key.rb
267
- - check-ses-statistics.rb
268
- - check-alb-target-group-health.rb
269
- - check-ses-limit.rb
270
- - check-sns-subscriptions.rb
261
+ - check-subnet-ip-consumption.rb
262
+ - check-rds-events.rb
263
+ - handler-sns.rb
264
+ - check-elb-health.rb
271
265
  - metrics-waf.rb
272
- - metrics-autoscaling-instance-count.rb
273
- - metrics-s3.rb
274
- - check-s3-tag.rb
275
- - check-dynamodb-throttle.rb
276
- - handler-ec2_node.rb
266
+ - check-elasticache-failover.rb
267
+ - metrics-rds.rb
277
268
  - check-ec2-cpu_balance.rb
278
- - check-beanstalk-health.rb
279
- - metrics-asg.rb
280
- - check-instances-count.rb
281
- - check-elb-certs.rb
282
- - check-reserved-instances.rb
283
- - check-instance-health.rb
284
- - check-ec2-network.rb
285
- - check-efs-metric.rb
286
- - check-sensu-client.rb
269
+ - handler-ec2_node.rb
270
+ - metrics-ec2-count.rb
271
+ - check-redshift-events.rb
272
+ - check-asg-instances-created.rb
287
273
  - check-emr-cluster.rb
288
- - handler-ses.rb
289
- - check-asg-instances-inservice.rb
290
- - check-sqs-messages.rb
291
- - check-rds-pending.rb
292
- - check-cloudwatch-metric.rb
293
- - check-configservice-rules.rb
294
- - check-beanstalk-elb-metric.rb
295
- - check-elb-health.rb
296
- - check-instance-reachability.rb
297
- - check-emr-steps.rb
298
- - check-elasticache-failover.rb
299
- - check-eip-allocation.rb
274
+ - check-trustedadvisor-service-limits.rb
275
+ - metrics-cloudfront.rb
276
+ - check-cloudfront-tag.rb
277
+ - check-rds.rb
278
+ - handler-scale-asg-down.rb
300
279
  - check-s3-object.rb
301
- - check-redshift-events.rb
302
- - check-ecs-service-health.rb
303
- - check-autoscaling-cpucredits.rb
304
- - check-s3-bucket.rb
305
- - check-elb-health-sdk.rb
280
+ - check-sensu-client.rb
281
+ - check-elb-sum-requests.rb
282
+ - handler-scale-asg-up.rb
283
+ - check-ec2-filter.rb
284
+ - check-elb-nodes.rb
306
285
  - check-cloudwatch-alarm.rb
286
+ - check-dynamodb-throttle.rb
287
+ - check-ec2-network.rb
288
+ - check-elb-certs.rb
289
+ - check-ses-limit.rb
290
+ - check-kms-key.rb
291
+ - metrics-asg.rb
292
+ - check-efs-metric.rb
293
+ - metrics-ses.rb
294
+ - check-ecs-service-health.rb
295
+ - check-elb-instances-inservice.rb
296
+ - check-rds-pending.rb
297
+ - check-beanstalk-health.rb
298
+ - check-asg-instances-inservice.rb
299
+ - metrics-elb.rb
307
300
  - check-route.rb
308
- - check-ebs-snapshots.rb
309
- - metrics-ec2-filter.rb
301
+ - metrics-sqs.rb
310
302
  - check-route53-domain-expiration.rb
311
- - metrics-rds.rb
303
+ - check-elb-health-fog.rb
304
+ - check-s3-bucket-visibility.rb
305
+ - check-cloudwatch-metric.rb
306
+ - check-ebs-snapshots.rb
312
307
  - check-dynamodb-capacity.rb
313
- - check-ec2-filter.rb
314
- - check-asg-instances-created.rb
308
+ - check-vpc-vpn.rb
309
+ - check-sqs-messages.rb
310
+ - metrics-s3.rb
311
+ - metrics-billing.rb
312
+ - check-certificate-expiry.rb
313
+ - check-instance-health.rb
314
+ - check-beanstalk-elb-metric.rb
315
+ - check-configservice-rules.rb
316
+ - metrics-ec2-filter.rb
317
+ - check-instance-reachability.rb
318
+ - check-elb-latency.rb
319
+ - check-cloudwatch-alarms.rb
320
+ - check-ses-statistics.rb
321
+ - check-direct-connect-virtual-interfaces.rb
322
+ - check-alb-target-group-health.rb
315
323
  - check-eni-status.rb
316
- - metrics-sqs.rb
324
+ - handler-ses.rb
325
+ - check-emr-steps.rb
326
+ - check-instances-count.rb
327
+ - metrics-autoscaling-instance-count.rb
317
328
  - check-instance-events.rb
318
- - metrics-elasticache.rb
319
- - check-rds-events.rb
320
- - check-subnet-ip-consumption.rb
321
- - check-elb-nodes.rb
322
- - check-elb-sum-requests.rb
323
- - check-elb-health-fog.rb
324
- - handler-sns.rb
325
- - handler-scale-asg-up.rb
329
+ - check-sns-subscriptions.rb
326
330
  - check-vpc-nameservers.rb
331
+ - check-elb-health-sdk.rb
327
332
  - check-cloudwatch-composite-metric.rb
328
- - check-rds.rb
329
- - check-cloudfront-tag.rb
333
+ - check-s3-tag.rb
334
+ - check-s3-bucket.rb
335
+ - check-eip-allocation.rb
336
+ - metrics-elasticache.rb
330
337
  - metrics-emr-steps.rb
331
- - check-certificate-expiry.rb
332
- - check-elb-instances-inservice.rb
333
- - check-elb-latency.rb
334
- - metrics-ec2-count.rb
335
- - metrics-billing.rb
336
- - check-vpc-vpn.rb
337
- - check-direct-connect-virtual-interfaces.rb
338
- - metrics-elb.rb
338
+ - check-autoscaling-cpucredits.rb
339
339
  extensions: []
340
340
  extra_rdoc_files: []
341
341
  files:
@@ -453,7 +453,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
453
453
  version: '0'
454
454
  requirements: []
455
455
  rubyforge_project:
456
- rubygems_version: 2.7.7
456
+ rubygems_version: 2.6.11
457
457
  signing_key:
458
458
  specification_version: 4
459
459
  summary: Sensu plugins for working with an AWS environment