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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4b330bfae0d9fdbb983a2bb04565ef5a1e25a226
4
- data.tar.gz: 8edf685a414d2fb53dd5847bb1d74df843c22943
3
+ metadata.gz: 2a3931242d5ca4fe8b09b7aab0074f9e12ea485b
4
+ data.tar.gz: 57f1c0887909436b3b29268b14f42e4b2cd416b7
5
5
  SHA512:
6
- metadata.gz: f4b2ab0f7e86f764225e03aaa96aced833fbcf6789f75e6d240fedb5147c657db64c5ddad5c603265c3f6dd4b3d3f581b58a688ec2e534b55696017f633d5e10
7
- data.tar.gz: e8e86d5befe88b8a368a379a1841b9d07de4715242cb9c452a8677a64815f60d625a4c5df5fc1c84d520a9298d0821084ccea755b4d18bc16e44537133cfbf83
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.0...HEAD
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
@@ -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.body.include? 'no such id'
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 #{container_state} on #{config[:docker_host]}."
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}"
@@ -2,7 +2,7 @@ module SensuPluginsDocker
2
2
  module Version
3
3
  MAJOR = 1
4
4
  MINOR = 3
5
- PATCH = 0
5
+ PATCH = 1
6
6
 
7
7
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
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.0
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-04 00:00:00.000000000 Z
11
+ date: 2017-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: docker-api