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 +5 -5
- data/CHANGELOG.md +9 -1
- data/README.md +16 -3
- data/bin/check-redshift-events.rb +8 -23
- data/lib/sensu-plugins-aws/version.rb +2 -2
- metadata +69 -69
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 827a2d3882e5684168c37dc96eb400995f1e9eb7
|
4
|
+
data.tar.gz: 507eccbec90d6865ef4463d6ed5d528407264055
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 283432c612966352858058dcdb0922a358a30f63814f8a62cf05367980bfdbc31478d98dc678c5808b2f8be74c4876e1858ea1968353ab892064095739fbbae0
|
7
|
+
data.tar.gz: 1e838e99490104d3ea3b2165634fb9f18518283df9eec037b7e21c5027fb7b333c5f5b9155eb354da002ab37b506f72db92664566a710c5f858d2f196361c92e
|
data/CHANGELOG.md
CHANGED
@@ -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/
|
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)](
|
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.
|
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
|
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 -
|
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 -
|
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 -
|
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 '
|
38
|
+
require 'sensu-plugins-aws'
|
39
|
+
require 'aws-sdk'
|
39
40
|
|
40
41
|
class CheckRedshiftEvents < Sensu::Plugin::Check::CLI
|
41
|
-
|
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 ||=
|
59
|
+
@redshift ||= Aws::Redshift::Client.new aws_config
|
75
60
|
end
|
76
61
|
|
77
62
|
# fetch all clusters in the region from AWS
|
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:
|
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-
|
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-
|
260
|
-
- metrics-cloudfront.rb
|
261
|
-
- metrics-ses.rb
|
259
|
+
- check-reserved-instances.rb
|
262
260
|
- check-ebs-burst-limit.rb
|
263
|
-
-
|
264
|
-
- check-
|
265
|
-
-
|
266
|
-
- check-
|
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
|
-
-
|
273
|
-
- metrics-
|
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
|
-
-
|
279
|
-
- metrics-
|
280
|
-
- check-
|
281
|
-
- check-
|
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
|
-
-
|
289
|
-
-
|
290
|
-
- check-
|
291
|
-
- check-rds
|
292
|
-
-
|
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-
|
302
|
-
- check-
|
303
|
-
-
|
304
|
-
- check-
|
305
|
-
- check-elb-
|
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
|
-
-
|
309
|
-
- metrics-ec2-filter.rb
|
301
|
+
- metrics-sqs.rb
|
310
302
|
- check-route53-domain-expiration.rb
|
311
|
-
-
|
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-
|
314
|
-
- check-
|
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
|
-
-
|
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
|
-
-
|
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-
|
329
|
-
- check-
|
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-
|
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.
|
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
|