sensu-plugins-docker 3.1.0 → 3.1.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 +6 -1
- data/bin/check-container-logs.rb +1 -1
- data/lib/sensu-plugins-docker/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: af6f2911ce7a968337e6f0eb55df60a0ce0b6fad80311721eaf67c44c9265f62
|
|
4
|
+
data.tar.gz: 1a3f06bf388e2d0fb3e9af539c43b46204395805a8059c3c265152cc5809b3f7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b3ea13e3a2e64d5b7ae1c487612ce9414ef175956bda1903d0784d5aa5583f670dcf6957e8d12e7cd401614a2c1b1b42a4492fcb08bf80c1f2b3c9c963cd645c
|
|
7
|
+
data.tar.gz: 711d11664a2d40cd52797909f7dd161e8e1782546ecc4a5ec267e1d126179b87592cb6cf325b1d2db667c4fd33a8f75322f60b250e51224d91af3c942a5c1815
|
data/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,10 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/)
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [3.1.1] - 2018
|
|
10
|
+
### Fixed
|
|
11
|
+
- check-container-logs.rb: fix nil.gsub condition on empty log lines
|
|
12
|
+
|
|
9
13
|
## [3.1.0] - 2018-05-07
|
|
10
14
|
### Added
|
|
11
15
|
- intergration test for container check (@antonidabek)
|
|
@@ -146,7 +150,8 @@ changes some options. Review your check commands before deploying this version.
|
|
|
146
150
|
### Added
|
|
147
151
|
- initial release
|
|
148
152
|
|
|
149
|
-
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-docker/compare/3.1.
|
|
153
|
+
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-docker/compare/3.1.1...HEAD
|
|
154
|
+
[3.1.1]: https://github.com/sensu-plugins/sensu-plugins-docker/compare/3.1.0...3.1.1
|
|
150
155
|
[3.1.0]: https://github.com/sensu-plugins/sensu-plugins-docker/compare/3.0.0...3.1.0
|
|
151
156
|
[3.0.0]: https://github.com/sensu-plugins/sensu-plugins-docker/compare/2.0.0...3.0.0
|
|
152
157
|
[2.0.0]: https://github.com/sensu-plugins/sensu-plugins-docker/compare/1.5.0...2.0.0
|
data/bin/check-container-logs.rb
CHANGED
|
@@ -138,7 +138,7 @@ class ContainerLogChecker < Sensu::Plugin::Check::CLI
|
|
|
138
138
|
lines = raw_logs.split("\n")
|
|
139
139
|
lines.map! do |line|
|
|
140
140
|
# Check only logs generated with the 8 bits control
|
|
141
|
-
if !line.nil? && /^(0|1|2)000$/ =~ line.byteslice(0, 4).unpack('C*').join('')
|
|
141
|
+
if !line.nil? && line.bytesize > 8 && /^(0|1|2)000$/ =~ line.byteslice(0, 4).unpack('C*').join('')
|
|
142
142
|
# Remove the first 8 bits and ansii colors too
|
|
143
143
|
line.byteslice(8, line.bytesize).gsub(/\x1b\[[\d;]*?m/, '')
|
|
144
144
|
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: 3.1.
|
|
4
|
+
version: 3.1.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-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: sensu-plugin
|
|
@@ -260,7 +260,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
260
260
|
version: '0'
|
|
261
261
|
requirements: []
|
|
262
262
|
rubyforge_project:
|
|
263
|
-
rubygems_version: 2.7.
|
|
263
|
+
rubygems_version: 2.7.7
|
|
264
264
|
signing_key:
|
|
265
265
|
specification_version: 4
|
|
266
266
|
summary: Sensu plugins for docker
|