sensu-plugins-consul 1.4.0 → 1.4.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -1
- data/bin/check-consul-service-health.rb +4 -4
- data/lib/sensu-plugins-consul/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8c684c8753b72679288f5c017f6579c90e8d31df
|
|
4
|
+
data.tar.gz: e207203ce031933276ee65fb76a4f185346bf80c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a0625d30e343c886468256e34ecd8f645e2ed277dc40ff5bc5908feed1dd90ebd2edd58d2f6afa23b673b88d70a0b4ef78fdc3cc473587749ea923d3e94d305c
|
|
7
|
+
data.tar.gz: 6896136924d366fcce09be182893e172995a31bc974864217217bd8c507467db4f14d3c73dfe6c2788bcb941e042cc45c88fde1dae74f1d97589725c4aa32fac
|
data/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,13 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
|
|
|
5
5
|
|
|
6
6
|
## [Unreleased]
|
|
7
7
|
|
|
8
|
+
## [1.4.1] 2017-08-06
|
|
9
|
+
### Fixed
|
|
10
|
+
- Bug fix for `check-consul-service-health` [#26](https://github.com/sensu-plugins/sensu-plugins-consul/pull/26) (@psyhomb)
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
- ruby 2.4.1 testing (@majormoses)
|
|
14
|
+
|
|
8
15
|
## [1.4.0] 2017-08-05
|
|
9
16
|
### Added
|
|
10
17
|
- `check-consul-service-health` now accept a `--node` argument that will check all autodiscovered consul services running on the specified node (@psyhomb)
|
|
@@ -80,7 +87,8 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
|
|
|
80
87
|
### Added
|
|
81
88
|
- initial release
|
|
82
89
|
|
|
83
|
-
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-consul/compare/1.
|
|
90
|
+
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-consul/compare/1.4.1...HEAD
|
|
91
|
+
[1.4.1]: https://github.com/sensu-plugins/sensu-plugins-consul/compare/1.4.0...1.4.1
|
|
84
92
|
[1.4.0]: https://github.com/sensu-plugins/sensu-plugins-consul/compare/1.3.0...1.4.0
|
|
85
93
|
[1.3.0]: https://github.com/sensu-plugins/sensu-plugins-consul/compare/2.1.0...1.3.0
|
|
86
94
|
[1.2.0]: https://github.com/sensu-plugins/sensu-plugins-consul/compare/1.1.0...1.2.0
|
|
@@ -82,12 +82,12 @@ class CheckConsulServiceHealth < Sensu::Plugin::Check::CLI
|
|
|
82
82
|
elsif config[:nodename]
|
|
83
83
|
data = []
|
|
84
84
|
begin
|
|
85
|
-
services = Diplomat::Node.get(config[:nodename]).Services
|
|
85
|
+
services = Diplomat::Node.get(config[:nodename]).Services
|
|
86
86
|
rescue
|
|
87
|
-
services =
|
|
87
|
+
services = {}
|
|
88
88
|
end
|
|
89
|
-
services.each do |service|
|
|
90
|
-
Diplomat::Health.checks(service).each do |check|
|
|
89
|
+
services.values.each do |service|
|
|
90
|
+
Diplomat::Health.checks(service['Service']).each do |check|
|
|
91
91
|
data.push(check) if check.Node == config[:nodename]
|
|
92
92
|
end
|
|
93
93
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sensu-plugins-consul
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.4.
|
|
4
|
+
version: 1.4.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: 2017-08-
|
|
11
|
+
date: 2017-08-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: sensu-plugin
|