sensu-plugins-raid-checks 2.0.1 → 2.0.2
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-raid.rb +1 -1
- data/lib/sensu-plugins-raid-checks/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: 5dca29a536c69abffcf2b8d2c4d916bfdaed79d75bc9b2f9c65a4826cbbb6394
|
|
4
|
+
data.tar.gz: 06640d9238016c8d91acae04ec10d852c43715aa808a6f303a00bc23e040985c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9609e3852a5d1f2ac1c7c577ef03d568d5b3e514f6baf8a7b15b112ba83b898f33c4f955e482c0cbfabb28314564ef5dd3cd9db8702ca54f13828414a7a2319e
|
|
7
|
+
data.tar.gz: f6d59989bebed47dcd492045c01817fcfc31e92b95ce8797249800fb204c7feb3857390be6dd8eba0aca36b4deadc997b73f41dd18127a3b3a93155a59e83429
|
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
|
+
## [2.0.2] - 2018-04-18
|
|
10
|
+
### Fixed
|
|
11
|
+
- fixed software raid check (@corro)
|
|
12
|
+
|
|
9
13
|
## [2.0.1] - 2017-01-31
|
|
10
14
|
### Security
|
|
11
15
|
- updated rubocop dependency to `~> 0.51.0` per: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-8418. (@majormoses)
|
|
@@ -62,7 +66,8 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/)
|
|
|
62
66
|
### Added
|
|
63
67
|
- initial release
|
|
64
68
|
|
|
65
|
-
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-raid-checks/compare/2.0.
|
|
69
|
+
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-raid-checks/compare/2.0.2...HEAD
|
|
70
|
+
[2.0.2]: https://github.com/sensu-plugins/sensu-plugins-raid-checks/compare/2.0.1...2.0.2
|
|
66
71
|
[2.0.1]: https://github.com/sensu-plugins/sensu-plugins-raid-checks/compare/2.0.0...2.0.1
|
|
67
72
|
[2.0.0]: https://github.com/sensu-plugins/sensu-plugins-raid-checks/compare/1.0.0...2.0.0
|
|
68
73
|
[1.0.0]: https://github.com/sensu-plugins/sensu-plugins-raid-checks/compare/0.1.0...1.0.0
|
data/bin/check-raid.rb
CHANGED
|
@@ -44,7 +44,7 @@ class CheckRaid < Sensu::Plugin::Check::CLI
|
|
|
44
44
|
return unless File.exist?('/proc/mdstat')
|
|
45
45
|
contents = File.read('/proc/mdstat')
|
|
46
46
|
mg = contents.lines.grep(/active|blocks/)
|
|
47
|
-
return
|
|
47
|
+
return if mg.empty?
|
|
48
48
|
sg = mg.to_s.lines.grep(/\]\(F\)|[\[U]_/)
|
|
49
49
|
if sg.empty?
|
|
50
50
|
ok 'Software RAID OK'
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sensu-plugins-raid-checks
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.
|
|
4
|
+
version: 2.0.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: 2018-
|
|
11
|
+
date: 2018-04-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: english
|
|
@@ -214,7 +214,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
214
214
|
version: '0'
|
|
215
215
|
requirements: []
|
|
216
216
|
rubyforge_project:
|
|
217
|
-
rubygems_version: 2.7.
|
|
217
|
+
rubygems_version: 2.7.6
|
|
218
218
|
signing_key:
|
|
219
219
|
specification_version: 4
|
|
220
220
|
summary: Sensu plugins for working with raid evices
|