sensu-plugins-raid-checks 2.0.1 → 2.0.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
  SHA256:
3
- metadata.gz: 5a807491188351610c1d92f61ffdf6453c34c51de3bd1d73f68d15a1dcb00a82
4
- data.tar.gz: 42e2aa80eb09c459902a41d6c8359666b5a43e37436b44b9759e41a95eec73e2
3
+ metadata.gz: 5dca29a536c69abffcf2b8d2c4d916bfdaed79d75bc9b2f9c65a4826cbbb6394
4
+ data.tar.gz: 06640d9238016c8d91acae04ec10d852c43715aa808a6f303a00bc23e040985c
5
5
  SHA512:
6
- metadata.gz: e63a5f13dcac901435fb91f7a64e72d07caf8eed21f1813c6d579f322050b39f0747eec11e8e64227299306260738c5e7b36fd77fcd5d1a37629f266f36d96f0
7
- data.tar.gz: c9d7eed41e4372d708693bf39f6954ba7374642770d9ae973b184c5ad5f103adfac9049f1bcbdd28360753de01b495148300cb83b6dcd6171010828809e4f682
6
+ metadata.gz: 9609e3852a5d1f2ac1c7c577ef03d568d5b3e514f6baf8a7b15b112ba83b898f33c4f955e482c0cbfabb28314564ef5dd3cd9db8702ca54f13828414a7a2319e
7
+ data.tar.gz: f6d59989bebed47dcd492045c01817fcfc31e92b95ce8797249800fb204c7feb3857390be6dd8eba0aca36b4deadc997b73f41dd18127a3b3a93155a59e83429
@@ -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.0...HEAD
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
@@ -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 unless mg.empty?
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'
@@ -4,7 +4,7 @@ module SensuPluginsRaidChecks
4
4
  module Version
5
5
  MAJOR = 2
6
6
  MINOR = 0
7
- PATCH = 1
7
+ PATCH = 2
8
8
 
9
9
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
10
10
  end
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.1
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-02-01 00:00:00.000000000 Z
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.4
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