sensu-plugins-docker 1.3.0 → 1.3.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 +7 -1
- data/bin/check-container.rb +2 -2
- data/lib/sensu-plugins-docker/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: 2a3931242d5ca4fe8b09b7aab0074f9e12ea485b
|
4
|
+
data.tar.gz: 57f1c0887909436b3b29268b14f42e4b2cd416b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70317898990a8b5da33505d5eed11ef56989dc4d149d3cd0f9bc1d3395a0ab78a64cf8f96c1ce3c1d52bc8b4b02a72bf4770926d14096e23e8c0e80d51996b6e
|
7
|
+
data.tar.gz: 5e4abf0bad63eb81dd88e87b87521ff3f6b3e12fd3bb8c7289bf6e2b5ad4c6f3efcccfb67685e635f32a0e191693418dacae2503ac7fb34ef3266dcda8e77261
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,11 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|
4
4
|
This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachangelog.com/)
|
5
5
|
|
6
6
|
## [Unreleased]
|
7
|
+
|
8
|
+
## [1.3.1] - 2017-06-12
|
9
|
+
### Fixed
|
10
|
+
- check-container.rb: fixes to work with docker >= 1.17 (@israelriibeiro)
|
11
|
+
|
7
12
|
## [1.3.0] - 2017-06-04
|
8
13
|
### Added
|
9
14
|
- metrics-docker-stats.rb: Add an option to ouput a portion of the docker
|
@@ -83,7 +88,8 @@ changes some options. Review your check commands before deploying this version.
|
|
83
88
|
### Added
|
84
89
|
- initial release
|
85
90
|
|
86
|
-
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-docker/compare/1.3.
|
91
|
+
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-docker/compare/1.3.1...HEAD
|
92
|
+
[1.3.1]: https://github.com/sensu-plugins/sensu-plugins-docker/compare/1.3.0...1.3.1
|
87
93
|
[1.3.0]: https://github.com/sensu-plugins/sensu-plugins-docker/compare/1.2.0...1.3.0
|
88
94
|
[1.2.0]: https://github.com/sensu-plugins/sensu-plugins-docker/compare/1.1.5...1.2.0
|
89
95
|
[1.1.5]: https://github.com/sensu-plugins/sensu-plugins-docker/compare/1.1.4...1.1.5
|
data/bin/check-container.rb
CHANGED
@@ -62,7 +62,7 @@ class CheckDockerContainer < Sensu::Plugin::Check::CLI
|
|
62
62
|
req = Net::HTTP::Get.new path
|
63
63
|
begin
|
64
64
|
response = client.request(req)
|
65
|
-
if response.
|
65
|
+
if response.code.to_i == 404
|
66
66
|
critical "#{config[:container]} is not running on #{config[:docker_host]}"
|
67
67
|
end
|
68
68
|
body = JSON.parse(response.body)
|
@@ -77,7 +77,7 @@ class CheckDockerContainer < Sensu::Plugin::Check::CLI
|
|
77
77
|
end
|
78
78
|
ok "#{config[:container]} is running on #{config[:docker_host]}."
|
79
79
|
else
|
80
|
-
critical "#{config[:container]} is #{
|
80
|
+
critical "#{config[:container]} is #{body['State']['Status']} on #{config[:docker_host]}."
|
81
81
|
end
|
82
82
|
rescue JSON::ParserError => e
|
83
83
|
critical "JSON Error: #{e.inspect}"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu-plugins-docker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.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-06-
|
11
|
+
date: 2017-06-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: docker-api
|