sensu-plugins-aws 11.5.0 → 11.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -1
- data/bin/check-rds-pending.rb +6 -4
- data/lib/sensu-plugins-aws/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f2c73e2db8277365a293de76f732e4c72c5517db386e6b94c1093f2d38f959cc
|
4
|
+
data.tar.gz: 15a3362d3d0e2e96fc4916dba87947a5fbfcfad51e889e225769721a323506a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c937ee8a172e380a8e489a5d2196edeaed1b32ffd297a8ac218cbd9d15e9aaac2ad9f386451d52b59de7b47f2f1fa6ad44ef02d39748fb04e632e8b1644944c0
|
7
|
+
data.tar.gz: 7049f84047baf9b5d0c102444a5105a68ff69869e8ca3f754a8d6bd05113b7d873e3325b2efbc6a61ed2064f09e5ce447489626ef74163b052158d84876c6986
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,10 @@ This CHANGELOG follows the format listed [here](https://github.com/sensu-plugins
|
|
5
5
|
|
6
6
|
## [Unreleased]
|
7
7
|
|
8
|
+
## [11.5.1] - 2018-06-21
|
9
|
+
### Fixed
|
10
|
+
- check-rds-pending: Fix issue if there are no RDS instances in a region. Previously this would raise an API exception (@stevenviola)
|
11
|
+
|
8
12
|
## [11.5.0] - 2018-05-17
|
9
13
|
### Added
|
10
14
|
- handler-ses.rb: can now set `mail_to` in a check and handler will send to the appropriate email (@Juan-Moreno)
|
@@ -478,7 +482,8 @@ WARNING: This release contains major breaking changes that will impact all user
|
|
478
482
|
### Added
|
479
483
|
- initial release
|
480
484
|
|
481
|
-
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-aws/compare/11.5.
|
485
|
+
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-aws/compare/11.5.1...HEAD
|
486
|
+
[11.5.1]: https://github.com/sensu-plugins/sensu-plugins-aws/compare/11.5.0...11.5.1
|
482
487
|
[11.5.0]: https://github.com/sensu-plugins/sensu-plugins-aws/compare/11.4.2...11.5.0
|
483
488
|
[11.4.2]: https://github.com/sensu-plugins/sensu-plugins-aws/compare/11.4.1...11.4.2
|
484
489
|
[11.4.1]: https://github.com/sensu-plugins/sensu-plugins-aws/compare/11.4.0...11.4.1
|
data/bin/check-rds-pending.rb
CHANGED
@@ -47,10 +47,12 @@ class CheckRDSEvents < Sensu::Plugin::Check::CLI
|
|
47
47
|
# fetch all clusters identifiers
|
48
48
|
clusters = rds.describe_db_instances[:db_instances].map { |db| db[:db_instance_identifier] }
|
49
49
|
maint_clusters = []
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
50
|
+
if clusters.any?
|
51
|
+
# Check if there is any pending maintenance required
|
52
|
+
pending_record = rds.describe_pending_maintenance_actions(filters: [{ name: 'db-instance-id', values: clusters }])
|
53
|
+
pending_record[:pending_maintenance_actions].each do |response|
|
54
|
+
maint_clusters.push(response[:pending_maintenance_action_details])
|
55
|
+
end
|
54
56
|
end
|
55
57
|
rescue StandardError => e
|
56
58
|
unknown "An error occurred processing AWS RDS API: #{e.message}"
|
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: 11.5.
|
4
|
+
version: 11.5.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: 2018-
|
11
|
+
date: 2018-06-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sensu-plugin
|