sensu-plugins-disk-checks 2.2.0 → 2.3.0
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 +9 -0
- data/bin/check-smart.rb +3 -3
- 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: 7ae84371b0313755e6f35d66f15a27c7fd3a5391
|
|
4
|
+
data.tar.gz: 3a97790fc26b5d294325fec99d69a94a8c4d4cb4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
69
|
-
@smart_enabled = !output.scan(/SMART support is
|
|
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
|
|
77
|
+
@smart_healthy = !output.scan(/PASSED|OK$/).empty?
|
|
78
78
|
@health_output = output
|
|
79
79
|
end
|
|
80
80
|
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
|
+
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-
|
|
11
|
+
date: 2017-07-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: sensu-plugin
|