sensu-plugins-disk-checks 2.4.1 → 2.4.2
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 -2
- data/bin/check-smart-status.rb +2 -2
- data/lib/sensu-plugins-disk-checks/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: c77d5f6201e92d60e58c12447aea22cdef80d04c
|
4
|
+
data.tar.gz: c1e9d61cd0204ab0c2b188aaa5574b89d6ffd8b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 20848ea4819295dd6d8b5860775152db5d6ce42c3c18be95b54ce8738cced8b8888a66f9374c7b9563a3c5f3699643b7ee03ea06539b722558d6374337c4c1c0
|
7
|
+
data.tar.gz: 3122c5ba6f6420260b7f4260b1d8beec8d8adef64d132e6ce56679766c481d1e3d67afd3cddf8f048f278f872778d8f8baff44b715fdef5107f8b11321cb9f77
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,10 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
|
|
5
5
|
|
6
6
|
## [Unreleased]
|
7
7
|
|
8
|
+
## [2.4.2] - 2017-08-17
|
9
|
+
### Fixed
|
10
|
+
- check-smart-status.rb: fixed regex for `Available` and `Enabled` (@nagyt234)
|
11
|
+
|
8
12
|
## [2.4.1] - 2017-08-08
|
9
13
|
### Fixed
|
10
14
|
- check-smart.rb: Fixed 'override' being ignored (@sovaa)
|
@@ -141,8 +145,9 @@ https://mathias-kettner.de/checkmk_filesystems.html
|
|
141
145
|
### Added
|
142
146
|
- initial release
|
143
147
|
|
144
|
-
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-disk-checks/compare/2.4.
|
145
|
-
[
|
148
|
+
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-disk-checks/compare/2.4.2...HEAD
|
149
|
+
[2.4.2]: https://github.com/sensu-plugins/sensu-plugins-disk-checks/compare/2.4.1...2.4.2
|
150
|
+
[2.4.1]: https://github.com/sensu-plugins/sensu-plugins-disk-checks/compare/2.4.0...2.4.1
|
146
151
|
[2.4.0]: https://github.com/sensu-plugins/sensu-plugins-disk-checks/compare/2.3.0...2.4.0
|
147
152
|
[2.3.0]: https://github.com/sensu-plugins/sensu-plugins-disk-checks/compare/2.2.0...2.3.0
|
148
153
|
[2.2.0]: https://github.com/sensu-plugins/sensu-plugins-disk-checks/compare/2.1.0...2.2.0
|
data/bin/check-smart-status.rb
CHANGED
@@ -295,8 +295,8 @@ class SmartCheckStatus < Sensu::Plugin::Check::CLI
|
|
295
295
|
output = `sudo #{config[:binary]} -i #{device.device_path}`
|
296
296
|
|
297
297
|
# Check if we can use this device or not
|
298
|
-
available = !output.scan(/SMART support is
|
299
|
-
enabled = !output.scan(/SMART support is
|
298
|
+
available = !output.scan(/SMART support is:\s+Available/).empty?
|
299
|
+
enabled = !output.scan(/SMART support is:\s+Enabled/).empty?
|
300
300
|
devices << device if available && enabled
|
301
301
|
end
|
302
302
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu-plugins-disk-checks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.4.
|
4
|
+
version: 2.4.2
|
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-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sensu-plugin
|