sensu-plugins-aws 17.2.0 → 18.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -1
- data/bin/check-alb-target-group-health.rb +5 -1
- data/lib/sensu-plugins-aws/version.rb +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e2bfbea1a8179399b3af1904234acc10da66dadbd5bf9f76f28f8bd7a964d8ea
|
4
|
+
data.tar.gz: 76db783d1869778c3b75bf50bfea4bd33fe1bff9900566cc389b91b4d5b7670a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9fd7a0c73b8adc720758070d1d834ac82d56840957eb2b9e98ce2cbb997dee63a2781b02cdef074f7be28650d09573c1260ac1e240ac1d1dd350a181f69b4c1b
|
7
|
+
data.tar.gz: c2010d4ad339a3d533b17c4a7708e0516db4a964e581de6fa0494328dd9405d80bc2b5f5e2e9dc0e89cf7bf5ff0c20646b1c188a42f03fdefce75212cf00ba47
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,12 @@ This CHANGELOG follows the format listed [here](https://github.com/sensu-plugins
|
|
5
5
|
|
6
6
|
## [Unreleased]
|
7
7
|
|
8
|
+
## [18.0.0] - 2019-04-2
|
9
|
+
### Breaking Changes
|
10
|
+
- `check-alb-target-group-health.rb` will now alert if a n ALB has no health targets (@kunal-plivo)
|
11
|
+
- removed ruby `< 2.3` support (@majormoses)
|
12
|
+
- bump `sensu-plugin` dependency from `~> 2.0` to `~> 4.0` you can read the changelog entries for [4.0](https://github.com/sensu-plugins/sensu-plugin/blob/master/CHANGELOG.md#400---2018-02-17) and [3.0](https://github.com/sensu-plugins/sensu-plugin/blob/master/CHANGELOG.md#300---2018-12-04) (@majormoses)
|
13
|
+
|
8
14
|
## [17.2.0] - 2019-04-02
|
9
15
|
### Added
|
10
16
|
- `check-rds-pending.rb`: adding option `--db-instance-identifier` to support checking only a single db instance for pending maintenance events, instead of all instances in a region. (@mattdoller)
|
@@ -564,7 +570,8 @@ WARNING: This release contains major breaking changes that will impact all user
|
|
564
570
|
### Added
|
565
571
|
- initial release
|
566
572
|
|
567
|
-
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-aws/compare/
|
573
|
+
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-aws/compare/18.0.0...HEAD
|
574
|
+
[18.0.0]: https://github.com/sensu-plugins/sensu-plugins-aws/compare/17.2.0...18.0.0
|
568
575
|
[17.2.0]: https://github.com/sensu-plugins/sensu-plugins-aws/compare/17.1.0...17.2.0
|
569
576
|
[17.1.0]: https://github.com/sensu-plugins/sensu-plugins-aws/compare/17.0.0...17.1.0
|
570
577
|
[17.0.0]: https://github.com/sensu-plugins/sensu-plugins-aws/compare/16.2.0...17.0.0
|
@@ -68,9 +68,11 @@ class CheckALBTargetGroupHealth < Sensu::Plugin::Check::CLI
|
|
68
68
|
target_groups.each do |target_group|
|
69
69
|
health = alb.describe_target_health(target_group_arn: target_group.target_group_arn)
|
70
70
|
unhealthy_targets = health.target_health_descriptions.select { |t| t.target_health.state == 'unhealthy' }.map { |t| t.target.id }
|
71
|
-
|
71
|
+
healthy_targets = health.target_health_descriptions.select { |t| t.target_health.state == 'healthy' }.map { |t| t.target.id }
|
72
|
+
if !unhealthy_targets.empty? || healthy_targets.empty?
|
72
73
|
unhealthy_groups[target_group.target_group_name] = {
|
73
74
|
unhealthy_targets: unhealthy_targets,
|
75
|
+
healthy_targets: healthy_targets,
|
74
76
|
total_targets: health.target_health_descriptions.size
|
75
77
|
}
|
76
78
|
end
|
@@ -84,6 +86,8 @@ class CheckALBTargetGroupHealth < Sensu::Plugin::Check::CLI
|
|
84
86
|
if !unhealthy_groups.empty?
|
85
87
|
message = 'Unhealthy ALB target groups: '
|
86
88
|
message += unhealthy_groups.map { |target_group, value| "#{target_group} - #{value[:unhealthy_targets].size}/#{value[:total_targets]} unhealthy targets: {#{value[:unhealthy_targets].join(', ')}}" }.join(', ')
|
89
|
+
message += ' : Healthy ALB target groups: '
|
90
|
+
message += unhealthy_groups.map { |target_group, value| "#{target_group} - #{value[:healthy_targets].size}/#{value[:total_targets]} healthy targets: {#{value[:healthy_targets].join(', ')}}" }.join(', ')
|
87
91
|
if config[:crit]
|
88
92
|
critical message
|
89
93
|
else
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu-plugins-aws
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 18.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sensu-Plugins and contributors
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '4.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '4.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: aws-sdk
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -417,7 +417,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
417
417
|
requirements:
|
418
418
|
- - ">="
|
419
419
|
- !ruby/object:Gem::Version
|
420
|
-
version: 2.
|
420
|
+
version: 2.3.0
|
421
421
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
422
422
|
requirements:
|
423
423
|
- - ">="
|