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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 47180d818663bda07effe9c054ce8f12a6747b90
4
- data.tar.gz: acbfefa98bbe28859ef2465a0178d3da1103eaa2
3
+ metadata.gz: c77d5f6201e92d60e58c12447aea22cdef80d04c
4
+ data.tar.gz: c1e9d61cd0204ab0c2b188aaa5574b89d6ffd8b3
5
5
  SHA512:
6
- metadata.gz: 97b32a94e866f676255582fb2eba535c4640c6386ef407a43c0c6c1e41c970c3b64577973cb52dca13f41b28e02753c9f6cb30e4761972106ff9dca148ead29f
7
- data.tar.gz: 38beaa3d2b9445a5da098ba520f9eba36f82cb2ed85323a9253f575133089409b0cdf18fe44da3fb38218bc7e9468585ef3aa9af12934c561cb567b2ff3251f0
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.1...HEAD
145
- [1.4.1]: https://github.com/sensu-plugins/sensu-plugins-disk-checks/compare/2.4.0...2.4.1
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
@@ -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:\+sAvailable/).empty?
299
- enabled = !output.scan(/SMART support is:\+sEnabled/).empty?
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
@@ -2,7 +2,7 @@ module SensuPluginsDiskChecks
2
2
  module Version
3
3
  MAJOR = 2
4
4
  MINOR = 4
5
- PATCH = 1
5
+ PATCH = 2
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-disk-checks
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.1
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-09 00:00:00.000000000 Z
11
+ date: 2017-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sensu-plugin