sensu-plugins-disk-checks 2.2.0 → 2.3.0

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: 0a0594b4df04654a37e7b4d624dde2b98f05ddb0
4
- data.tar.gz: 2d9517a0bfe0d24326eb36b8445227ad4081399d
3
+ metadata.gz: 7ae84371b0313755e6f35d66f15a27c7fd3a5391
4
+ data.tar.gz: 3a97790fc26b5d294325fec99d69a94a8c4d4cb4
5
5
  SHA512:
6
- metadata.gz: 58ad8ffee7a966ae83f9ac3665d0eb79c18d2f9fd03abd53559fa10103c84e52441aed239f4701d0839c6d2c7036a23a7c605863900ea4e671dd6405cddaaea0
7
- data.tar.gz: c88d37c9f50bd289c288daaaa764742f2011ce5a3fcc46b3b01fe62852305eb4c84bc7a37962e825cfae189edbd98d15ba856e0b4dcf442a6f76a4a94a04f355
6
+ metadata.gz: 335e15d42b7fbf28249abe3a7f817a6aab89438b963e962a38858c2226a43cb2eb8fca4c227ffe606b73d474e349043d13fd9ae064e0a13c63e755a17b2625e2
7
+ data.tar.gz: c7c602682333821a181a5a06d6bf9d736898cb209542213311006193c45975547031def9759aca660232e28c75de1bde7136b4be03dd5c444e9218c4d144cadc
data/CHANGELOG.md CHANGED
@@ -5,6 +5,15 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [2.3.0] - 2017-07-03
9
+ ### Added
10
+ - travis testing on ruby 2.4.1 (@majormoses)
11
+
12
+ ### Fixed
13
+ - fixed spelling of "Compatibility" in PR template (@majormoses)
14
+ - check-smart.rb: deal with long keys in the info output (@robx)
15
+ - check-smart.rb: accept "OK" disk health status (@robx)
16
+
8
17
  ## [2.2.0] - 2017-06-24
9
18
  ### Added
10
19
  - check-smart-tests.rb: a plugin to check S.M.A.R.T. self tests status (@sndl)
data/bin/check-smart.rb CHANGED
@@ -65,8 +65,8 @@ class Disk
65
65
  #
66
66
  def check_smart_capability!
67
67
  output = `sudo smartctl -i #{@device_path}`
68
- @smart_available = !output.scan(/SMART support is: Available/).empty?
69
- @smart_enabled = !output.scan(/SMART support is: Enabled/).empty?
68
+ @smart_available = !output.scan(/SMART support is:\s+Available/).empty?
69
+ @smart_enabled = !output.scan(/SMART support is:\s+Enabled/).empty?
70
70
  @capability_output = output
71
71
  end
72
72
 
@@ -74,7 +74,7 @@ class Disk
74
74
  #
75
75
  def check_health!
76
76
  output = `sudo smartctl -H #{@device_path}`
77
- @smart_healthy = !output.scan(/PASSED/).empty?
77
+ @smart_healthy = !output.scan(/PASSED|OK$/).empty?
78
78
  @health_output = output
79
79
  end
80
80
  end
@@ -1,7 +1,7 @@
1
1
  module SensuPluginsDiskChecks
2
2
  module Version
3
3
  MAJOR = 2
4
- MINOR = 2
4
+ MINOR = 3
5
5
  PATCH = 0
6
6
 
7
7
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
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.2.0
4
+ version: 2.3.0
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-24 00:00:00.000000000 Z
11
+ date: 2017-07-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sensu-plugin