sensu-plugins-raid-checks 0.0.4 → 0.1.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 CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: d0a27efd540dbc12bbecc150dc6ceb39d20d1001
4
- data.tar.gz: f83ad03e7b5c08260bebe2f4c074be1e3143ba4d
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ Nzc4ZjJhZDQ2NTRiY2E5Zjk1ZDFkNTRkNTQ2YjNlMDc2MjY0MDBhNg==
5
+ data.tar.gz: !binary |-
6
+ OWE2MDZjYzFjNzE4OGZkMzAxYjZmZDg0ZmM5ZDYzNzViODhmMjMyZA==
5
7
  SHA512:
6
- metadata.gz: 1b786ffdd758307729c7a82fff7a15fb5e5f9d578e94d02b671bc268a28794c253fe7f23fa1d21cb98a9173c1ae59af4c1fb68205766492f406d735a37dc18d7
7
- data.tar.gz: c1df9aae33fd9837ccf9497f311c79719da87591f093bafa8fa28547ff59ecebb88d1684b190abef98b11d47a50d07ab219dddf50ff562a4a7e9f402cc5542d3
8
+ metadata.gz: !binary |-
9
+ NTUwNDkzYzgzZjU5NmRkYTc2ZjkyNjNjZmI5ZDY3N2EyMWYzNDUyNjhkYTBj
10
+ YmNiYjNjNjNjZDUwZTE0NjcyNWNjZTFkNTBiOTYwYjA5Zjk4MGRkZGYyY2U4
11
+ YWVhYzA4N2M4OTU4ZmNiODVkZDliNjBjYWQyMWI0NDc4NzI0ZDA=
12
+ data.tar.gz: !binary |-
13
+ NDNiOGU3ODAzZWQ5ODcwNjI4ZGU2MGYzMzI5MGU0YWY0MzdlZjkwYjhlODE1
14
+ MzY5MzAxNmZiNmY5ZDk5ODA0ODFkYTY5MmM1NDUzNGJjNTFlMzQyOGQ2OTE2
15
+ YjNmZjU4YmRhNjM2ZTA5NDgwOWRiMGU3Nzc5ODVmNDc4OTc1MDA=
data/CHANGELOG.md CHANGED
@@ -3,23 +3,25 @@ This project adheres to [Semantic Versioning](http://semver.org/).
3
3
 
4
4
  This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachangelog.com/)
5
5
 
6
- ## Unreleased][unreleased]
6
+ ## [Unreleased]
7
+
8
+ ## [0.1.0] - 2015-09-14
9
+ ### Added
10
+ - added a new check-mpt2sas-status plugin
7
11
 
8
12
  ## [0.0.4] - 2015-07-14
9
13
  ### Changed
10
14
  - updated sensu-plugin gem to 1.2.0
11
15
 
12
16
  ## [0.0.3] - 2015-06-04
13
-
14
17
  ### Added
15
18
  - Merge PR #1
16
19
  - If a grep of lspci returns nothing then don't check for software raid.
17
20
 
18
21
  ### Fixed
19
- - Set the gemspec to only create binstubs for Ruby scripts
22
+ - Set the gemspec to only create binstubs for Ruby scripts
20
23
 
21
24
  ## [0.0.2] - 2015-06-03
22
-
23
25
  ### Fixed
24
26
  - added binstubs
25
27
 
@@ -27,6 +29,11 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
27
29
  - removed cruft from /lib
28
30
 
29
31
  ## 0.0.1 - 2015-05-20
30
-
31
32
  ### Added
32
33
  - initial release
34
+
35
+ [unreleased]: https://github.com/sensu-plugins/sensu-plugins-raid-checks/compare/0.1.0...HEAD
36
+ [0.1.0]: https://github.com/sensu-plugins/sensu-plugins-raid-checks/compare/0.0.4...0.1.0
37
+ [0.0.4]: https://github.com/sensu-plugins/sensu-plugins-raid-checks/compare/0.0.3...0.0.4
38
+ [0.0.3]: https://github.com/sensu-plugins/sensu-plugins-raid-checks/compare/0.0.2...0.0.3
39
+ [0.0.2]: https://github.com/sensu-plugins/sensu-plugins-raid-checks/compare/0.0.1...0.0.2
data/README.md CHANGED
@@ -4,7 +4,6 @@
4
4
  [![Gem Version](https://badge.fury.io/rb/sensu-plugins-raid-checks.svg)](http://badge.fury.io/rb/sensu-plugins-raid-checks)
5
5
  [![Code Climate](https://codeclimate.com/github/sensu-plugins/sensu-plugins-raid-checks/badges/gpa.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-raid-checks)
6
6
  [![Test Coverage](https://codeclimate.com/github/sensu-plugins/sensu-plugins-raid-checks/badges/coverage.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-raid-checks)
7
- [ ![Codeship Status for sensu-plugins/sensu-plugins-raid-checks](https://codeship.com/projects/a8a17b00-dc04-0132-d98c-1e3fe125131b/status?branch=master)](https://codeship.com/projects/79860)
8
7
 
9
8
  ## Functionality
10
9
 
@@ -12,6 +11,8 @@
12
11
 
13
12
  **check-megaraid-sas-status.rb**
14
13
 
14
+ **check-mpt2sas-status.rb**
15
+
15
16
  **check-raid-checks**
16
17
 
17
18
  **check-smart-array-status.rb**
@@ -20,11 +21,12 @@
20
21
 
21
22
  * bin/check-3ware-status.rb
22
23
  * bin/check-megaraid-sas-status.rb
24
+ * bin/check-mpt2sas-status.rb
23
25
  * bin/check-raid-checks
24
26
  * bin/check-smart-array-status.rb
25
27
 
26
28
  ## Installation
27
29
 
28
- [Installation and Setup](https://github.com/sensu-plugins/documentation/blob/master/user_docs/installation_instructions.md)
30
+ [Installation and Setup](http://sensu-plugins.io/docs/installation_instructions.html)
29
31
 
30
32
  ## Notes
@@ -86,9 +86,9 @@ class Check3wareStatus < Sensu::Plugin::Check::CLI
86
86
  # @param data [String]
87
87
  # @param controller [String]
88
88
  #
89
- def parse_disks!(data, controller) # rubocop:disable all
89
+ def parse_disks!(data, controller)
90
90
  # #YELLOW
91
- data.lines.each do |line| # rubocop:disable Style/Next
91
+ data.lines.each do |line|
92
92
  unless line.empty?
93
93
  splitted = line.split
94
94
  if /^[p][0-9]+$/ =~ splitted[0]
@@ -112,7 +112,7 @@ class Check3wareStatus < Sensu::Plugin::Check::CLI
112
112
 
113
113
  # Main function
114
114
  #
115
- def run # rubocop:disable all
115
+ def run
116
116
  exit_status, raw_data, err = execute "#{@binary} info"
117
117
  unknown "tw-cli command failed - #{err}" unless exit_status.success?
118
118
  parse_controllers! raw_data
@@ -48,7 +48,7 @@ class CheckMegraRAID < Sensu::Plugin::Check::CLI
48
48
  default: 0
49
49
  # Main function
50
50
  #
51
- def run # rubocop:disable all
51
+ def run
52
52
  have_error = false
53
53
  error = ''
54
54
  # get number of virtual drives
@@ -57,7 +57,7 @@ class CheckMegraRAID < Sensu::Plugin::Check::CLI
57
57
  # and check them in turn
58
58
  stdout = `#{config[:megaraidcmd]} -LDInfo -L#{i} -a#{config[:controller]} `
59
59
  unless Regexp.new('State\s*:\s*Optimal').match(stdout)
60
- error = sprintf '%svirtual drive %d: %s ', error, i, stdout[/State\s*:\s*.*/].split(':')[1] # rubocop:disable all
60
+ error = sprintf '%svirtual drive %d: %s ', error, i, stdout[/State\s*:\s*.*/].split(':')[1] # rubocop:disable Style/FormatString
61
61
  have_error = true
62
62
  end
63
63
  end
@@ -0,0 +1,80 @@
1
+ #! /usr/bin/env ruby
2
+ #
3
+ # check-raid
4
+ #
5
+ # DESCRIPTION:
6
+ # Checks the status of all virtual drives of a particular
7
+ # LSI FusionMPT SAS 2.0 controller, such as the DELL PERC H200
8
+ #
9
+ # sas2ircu requires root access
10
+ #
11
+ # OUTPUT:
12
+ # plain text
13
+ #
14
+ # PLATFORMS:
15
+ # Linux
16
+ #
17
+ # DEPENDENCIES:
18
+ # gem: sensu-plugin
19
+ # gem: english
20
+ #
21
+ # USAGE:
22
+ #
23
+ # NOTES:
24
+ # you need to download the sas2ircu utility which you can get from the LSI
25
+ # web site.
26
+ #
27
+ # sas2ircu requires root permissions
28
+ #
29
+ # Create a file named /etc/sudoers.d/sas2ircu with this line inside :
30
+ # sensu ALL=(ALL) NOPASSWD: /usr/sbin/sas2ircu
31
+ #
32
+ # LICENSE:
33
+ # Copyright 2015 Magnus Hagdorn <magnus.hagdorn@ed.ac.uk>
34
+ # The University of Edinburgh
35
+ # Released under the same terms as Sensu (the MIT license); see LICENSE for details.
36
+ #
37
+
38
+ require 'sensu-plugin/check/cli'
39
+ require 'English'
40
+
41
+ #
42
+ # Check MegaRAID
43
+ #
44
+ class CheckMPT2SAS < Sensu::Plugin::Check::CLI
45
+ option :sas2ircucmd,
46
+ description: 'the sas2ircu executable',
47
+ short: '-c CMD',
48
+ long: '--command CMD',
49
+ default: '/usr/sbin/sas2ircu'
50
+ option :controller,
51
+ description: 'the controller to query',
52
+ short: '-C ID',
53
+ long: '--controller ID',
54
+ proc: proc(&:to_i),
55
+ default: 0
56
+ # Main function
57
+ #
58
+ def run
59
+ have_error = false
60
+ error = ''
61
+ volume_state = /\s*Volume\ state\s*:\s*(?<VolState>.*)/x
62
+
63
+ stdout = `#{config[:sas2ircucmd]} #{config[:controller]} status `
64
+ stdout.each_line do |line|
65
+ parts = line.match(volume_state)
66
+ unless parts.nil?
67
+ unless parts['VolState'] == 'Optimal'
68
+ error = format('%s%s ', error, parts['VolState'])
69
+ have_error = true
70
+ end
71
+ end
72
+ end
73
+
74
+ if have_error
75
+ critical error
76
+ else
77
+ ok
78
+ end
79
+ end
80
+ end
data/bin/check-raid.rb CHANGED
@@ -33,13 +33,11 @@ class CheckRaid < Sensu::Plugin::Check::CLI
33
33
  # Check software raid
34
34
  #
35
35
  def check_software
36
- # #YELLOW
37
- if File.exist?('/proc/mdstat') # rubocop:disable GuardClause
36
+ if File.exist?('/proc/mdstat')
38
37
  contents = File.read('/proc/mdstat')
39
38
  mg = contents.lines.grep(/active/)
40
39
  unless mg.empty?
41
40
  sg = mg.to_s.lines.grep(/\]\(F\)/)
42
- # #YELLOW
43
41
  unless sg.empty? # rubocop:disable UnlessElse
44
42
  warning 'Software RAID warning'
45
43
  else
@@ -52,12 +50,11 @@ class CheckRaid < Sensu::Plugin::Check::CLI
52
50
  # Check HP raid
53
51
  #
54
52
  def check_hp
55
- # #YELLOW
56
- if File.exist?('/usr/bin/cciss_vol_status') # rubocop:disable GuardClause
53
+ if File.exist?('/usr/bin/cciss_vol_status')
57
54
  contents = `/usr/bin/cciss_vol_status /dev/sg0`
58
55
  c = contents.lines.grep(/status\: OK\./)
59
56
  # #YELLOW
60
- unless c.empty? # rubocop:disable UnlessElse
57
+ unless c.empty? # rubocop:disable UnlessElse
61
58
  ok 'HP RAID OK'
62
59
  else
63
60
  warning 'HP RAID warning'
@@ -67,14 +64,13 @@ class CheckRaid < Sensu::Plugin::Check::CLI
67
64
 
68
65
  # Check Adaptec raid controllers
69
66
  #
70
- def check_adaptec # rubocop:disable all
71
- # #YELLOW
72
- if File.exist?('/usr/StorMan/arcconf') # rubocop:disable GuardClause
67
+ def check_adaptec
68
+ if File.exist?('/usr/StorMan/arcconf')
73
69
  contents = `/usr/StorMan/arcconf GETCONFIG 1 AL`
74
70
 
75
71
  mg = contents.lines.grep(/Controller Status/)
76
72
  # #YELLOW
77
- unless mg.empty? # rubocop:disable UnlessElse
73
+ unless mg.empty? # rubocop:disable UnlessElse
78
74
  sg = mg.to_s.lines.grep(/Optimal/)
79
75
  warning 'Adaptec Physical RAID Controller Failure' if sg.empty?
80
76
  else
@@ -83,7 +79,7 @@ class CheckRaid < Sensu::Plugin::Check::CLI
83
79
 
84
80
  mg = contents.lines.grep(/Status of logical device/)
85
81
  # #YELLOW
86
- unless mg.empty? # rubocop:disable UnlessElse
82
+ unless mg.empty? # rubocop:disable UnlessElse
87
83
  sg = mg.to_s.lines.grep(/Optimal/)
88
84
  warning 'Adaptec Logical RAID Controller Failure' if sg.empty?
89
85
  else
@@ -92,7 +88,7 @@ class CheckRaid < Sensu::Plugin::Check::CLI
92
88
 
93
89
  mg = contents.lines.grep(/S\.M\.A\.R\.T\. /)
94
90
  # #YELLOW
95
- unless mg.empty? # rubocop:disable UnlessElse
91
+ unless mg.empty? # rubocop:disable UnlessElse
96
92
  sg = mg.to_s.lines.grep(/No/)
97
93
  warning 'Adaptec S.M.A.R.T. Disk Failed' if sg.empty?
98
94
  else
@@ -106,12 +102,12 @@ class CheckRaid < Sensu::Plugin::Check::CLI
106
102
  # Check Megaraid
107
103
  #
108
104
  def check_mega_raid
109
- # #YELLOW
110
- if File.exist?('/usr/sbin/megacli') # rubocop:disable GuardClause
105
+ if File.exist?('/usr/sbin/megacli')
111
106
  contents = `/usr/sbin/megacli -AdpAllInfo -aALL`
112
- c = contents.lines.grep(/(Critical|Failed) Disks\s+\: 0/)
107
+ failed = contents.lines.grep(/(Critical|Failed) Disks\s+\: 0/)
108
+ degraded = contents.lines.grep(/Degraded\s+\: 0/)
113
109
  # #YELLOW
114
- unless c.empty? # rubocop:disable UnlessElse
110
+ unless failed.empty? || degraded.empty? # rubocop:disable UnlessElse
115
111
  ok 'MegaRaid RAID OK'
116
112
  else
117
113
  warning 'MegaRaid RAID warning'
@@ -82,7 +82,7 @@ class CheckSmartArrayStatus < Sensu::Plugin::Check::CLI
82
82
  #
83
83
  def parse_disks!(data, controller)
84
84
  # #YELLOW
85
- data.lines.each do |line| # rubocop:disable Style/Next
85
+ data.lines.each do |line|
86
86
  unless line.empty?
87
87
  splitted = line.split
88
88
  if /^physicaldrive$/ =~ splitted[0]
@@ -100,7 +100,7 @@ class CheckSmartArrayStatus < Sensu::Plugin::Check::CLI
100
100
 
101
101
  # Main function
102
102
  #
103
- def run # rubocop:disable all
103
+ def run
104
104
  exit_status, raw_data = execute "#{@binary} ctrl all show status"
105
105
  unknown "hpacucli command failed - #{raw_data}" unless exit_status.success?
106
106
  parse_controllers! raw_data
@@ -1,8 +1,8 @@
1
1
  module SensuPluginsRaidChecks
2
2
  module Version
3
3
  MAJOR = 0
4
- MINOR = 0
5
- PATCH = 4
4
+ MINOR = 1
5
+ PATCH = 0
6
6
 
7
7
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
metadata CHANGED
@@ -1,65 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-plugins-raid-checks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sensu-Plugins and contributors
8
8
  autorequire:
9
9
  bindir: bin
10
- cert_chain:
11
- - |
12
- -----BEGIN CERTIFICATE-----
13
- MIIDgDCCAmigAwIBAgIBATANBgkqhkiG9w0BAQUFADBDMRIwEAYDVQQDDAltYXR0
14
- am9uZXMxGDAWBgoJkiaJk/IsZAEZFgh5aWVsZGJvdDETMBEGCgmSJomT8ixkARkW
15
- A2NvbTAeFw0xNTAxMjgyMTAyNTFaFw0xNjAxMjgyMTAyNTFaMEMxEjAQBgNVBAMM
16
- CW1hdHRqb25lczEYMBYGCgmSJomT8ixkARkWCHlpZWxkYm90MRMwEQYKCZImiZPy
17
- LGQBGRYDY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAyTSzVYnO
18
- CLgyrIyT1mBQakArQyW8xhi6MlDqyzXHJGeERT790U6EgoBVeS4XoK0ptFZNR8Tf
19
- zko0w+Nv47TarSCgkPOaxY+mxWnAVR10dOmfeLr7huiMyps+YD56/EF2FqQ3jf/+
20
- qohENfKD91qy1ieEy+Fn7Pf74ltbNKUdkb9a9eFXQ0DQ4ip5vik7DzjQkUTj4lca
21
- k6ArwnmHX4YDhZoYtrQJ8jVktN0/+NtA40M5qkCYHNe5tUW25b/tKVYuioxG6b2Z
22
- oIzaZxRLxf6HVAWpCVRT/F5+/yjigkX4u++eYacfLGleXQzoK7BL65vHGMJygWEE
23
- 0TKGqFOrl/L0AQIDAQABo38wfTAJBgNVHRMEAjAAMAsGA1UdDwQEAwIEsDAdBgNV
24
- HQ4EFgQUEf6a8Td7MrSZc8ImbLFZAENPbz0wIQYDVR0RBBowGIEWbWF0dGpvbmVz
25
- QHlpZWxkYm90LmNvbTAhBgNVHRIEGjAYgRZtYXR0am9uZXNAeWllbGRib3QuY29t
26
- MA0GCSqGSIb3DQEBBQUAA4IBAQBbzXAYA3BVGw8DZ0YYoY1VHPNEcH5qPIApmHO8
27
- rvSmuUT0yMEi7u00H/5uHRFf4LleGT/+sTdyXKsNPGT9kdRuQEgwi+vf7Zfvd8aX
28
- UF/+4VkEYf/8rV8Ere6u2QaWPgApdMV6JjKr1fAwCTd8AuGXNaWItiPPMseSQzLJ
29
- JKP4hVvbc1d+oS925B1lcBiqn2aYvElbyNAVmQPywNNqkWmvtlqj9ZVJfV5HQLdu
30
- 8sHuVruarogxxKPBzlL2is4EUb6oN/RdpGx2l4254+nyR+abg//Ed27Ym0PkB4lk
31
- HP0m8WSjZmFr109pE/sVsM5jtOCvogyujQOjNVGN4gz1wwPr
32
- -----END CERTIFICATE-----
33
- date: 2015-07-14 00:00:00.000000000 Z
10
+ cert_chain: []
11
+ date: 2016-07-14 00:00:00.000000000 Z
34
12
  dependencies:
35
13
  - !ruby/object:Gem::Dependency
36
- name: sensu-plugin
14
+ name: english
37
15
  requirement: !ruby/object:Gem::Requirement
38
16
  requirements:
39
17
  - - '='
40
18
  - !ruby/object:Gem::Version
41
- version: 1.2.0
19
+ version: 0.6.3
42
20
  type: :runtime
43
21
  prerelease: false
44
22
  version_requirements: !ruby/object:Gem::Requirement
45
23
  requirements:
46
24
  - - '='
47
25
  - !ruby/object:Gem::Version
48
- version: 1.2.0
26
+ version: 0.6.3
49
27
  - !ruby/object:Gem::Dependency
50
- name: english
28
+ name: sensu-plugin
51
29
  requirement: !ruby/object:Gem::Requirement
52
30
  requirements:
53
- - - '='
31
+ - - ~>
54
32
  - !ruby/object:Gem::Version
55
- version: 0.6.3
33
+ version: '1.2'
56
34
  type: :runtime
57
35
  prerelease: false
58
36
  version_requirements: !ruby/object:Gem::Requirement
59
37
  requirements:
60
- - - '='
38
+ - - ~>
61
39
  - !ruby/object:Gem::Version
62
- version: 0.6.3
40
+ version: '1.2'
63
41
  - !ruby/object:Gem::Dependency
64
42
  name: timeout
65
43
  requirement: !ruby/object:Gem::Requirement
@@ -75,138 +53,141 @@ dependencies:
75
53
  - !ruby/object:Gem::Version
76
54
  version: 0.0.1
77
55
  - !ruby/object:Gem::Dependency
78
- name: codeclimate-test-reporter
56
+ name: bundler
79
57
  requirement: !ruby/object:Gem::Requirement
80
58
  requirements:
81
- - - "~>"
59
+ - - ~>
82
60
  - !ruby/object:Gem::Version
83
- version: '0.4'
61
+ version: '1.7'
84
62
  type: :development
85
63
  prerelease: false
86
64
  version_requirements: !ruby/object:Gem::Requirement
87
65
  requirements:
88
- - - "~>"
66
+ - - ~>
89
67
  - !ruby/object:Gem::Version
90
- version: '0.4'
68
+ version: '1.7'
91
69
  - !ruby/object:Gem::Dependency
92
- name: rubocop
70
+ name: codeclimate-test-reporter
93
71
  requirement: !ruby/object:Gem::Requirement
94
72
  requirements:
95
- - - '='
73
+ - - ~>
96
74
  - !ruby/object:Gem::Version
97
- version: '0.30'
75
+ version: '0.4'
98
76
  type: :development
99
77
  prerelease: false
100
78
  version_requirements: !ruby/object:Gem::Requirement
101
79
  requirements:
102
- - - '='
80
+ - - ~>
103
81
  - !ruby/object:Gem::Version
104
- version: '0.30'
82
+ version: '0.4'
105
83
  - !ruby/object:Gem::Dependency
106
- name: rspec
84
+ name: github-markup
107
85
  requirement: !ruby/object:Gem::Requirement
108
86
  requirements:
109
- - - "~>"
87
+ - - ~>
110
88
  - !ruby/object:Gem::Version
111
- version: '3.1'
89
+ version: '1.3'
112
90
  type: :development
113
91
  prerelease: false
114
92
  version_requirements: !ruby/object:Gem::Requirement
115
93
  requirements:
116
- - - "~>"
94
+ - - ~>
117
95
  - !ruby/object:Gem::Version
118
- version: '3.1'
96
+ version: '1.3'
119
97
  - !ruby/object:Gem::Dependency
120
- name: bundler
98
+ name: pry
121
99
  requirement: !ruby/object:Gem::Requirement
122
100
  requirements:
123
- - - "~>"
101
+ - - ~>
124
102
  - !ruby/object:Gem::Version
125
- version: '1.7'
103
+ version: '0.10'
126
104
  type: :development
127
105
  prerelease: false
128
106
  version_requirements: !ruby/object:Gem::Requirement
129
107
  requirements:
130
- - - "~>"
108
+ - - ~>
131
109
  - !ruby/object:Gem::Version
132
- version: '1.7'
110
+ version: '0.10'
133
111
  - !ruby/object:Gem::Dependency
134
112
  name: rake
135
113
  requirement: !ruby/object:Gem::Requirement
136
114
  requirements:
137
- - - "~>"
115
+ - - ~>
138
116
  - !ruby/object:Gem::Version
139
117
  version: '10.0'
140
118
  type: :development
141
119
  prerelease: false
142
120
  version_requirements: !ruby/object:Gem::Requirement
143
121
  requirements:
144
- - - "~>"
122
+ - - ~>
145
123
  - !ruby/object:Gem::Version
146
124
  version: '10.0'
147
125
  - !ruby/object:Gem::Dependency
148
- name: github-markup
126
+ name: redcarpet
149
127
  requirement: !ruby/object:Gem::Requirement
150
128
  requirements:
151
- - - "~>"
129
+ - - ~>
152
130
  - !ruby/object:Gem::Version
153
- version: '1.3'
131
+ version: '3.2'
154
132
  type: :development
155
133
  prerelease: false
156
134
  version_requirements: !ruby/object:Gem::Requirement
157
135
  requirements:
158
- - - "~>"
136
+ - - ~>
159
137
  - !ruby/object:Gem::Version
160
- version: '1.3'
138
+ version: '3.2'
161
139
  - !ruby/object:Gem::Dependency
162
- name: redcarpet
140
+ name: rspec
163
141
  requirement: !ruby/object:Gem::Requirement
164
142
  requirements:
165
- - - "~>"
143
+ - - ~>
166
144
  - !ruby/object:Gem::Version
167
- version: '3.2'
145
+ version: '3.1'
168
146
  type: :development
169
147
  prerelease: false
170
148
  version_requirements: !ruby/object:Gem::Requirement
171
149
  requirements:
172
- - - "~>"
150
+ - - ~>
173
151
  - !ruby/object:Gem::Version
174
- version: '3.2'
152
+ version: '3.1'
175
153
  - !ruby/object:Gem::Dependency
176
- name: yard
154
+ name: rubocop
177
155
  requirement: !ruby/object:Gem::Requirement
178
156
  requirements:
179
- - - "~>"
157
+ - - ~>
180
158
  - !ruby/object:Gem::Version
181
- version: '0.8'
159
+ version: 0.40.0
182
160
  type: :development
183
161
  prerelease: false
184
162
  version_requirements: !ruby/object:Gem::Requirement
185
163
  requirements:
186
- - - "~>"
164
+ - - ~>
187
165
  - !ruby/object:Gem::Version
188
- version: '0.8'
166
+ version: 0.40.0
189
167
  - !ruby/object:Gem::Dependency
190
- name: pry
168
+ name: yard
191
169
  requirement: !ruby/object:Gem::Requirement
192
170
  requirements:
193
- - - "~>"
171
+ - - ~>
194
172
  - !ruby/object:Gem::Version
195
- version: '0.10'
173
+ version: '0.8'
196
174
  type: :development
197
175
  prerelease: false
198
176
  version_requirements: !ruby/object:Gem::Requirement
199
177
  requirements:
200
- - - "~>"
178
+ - - ~>
201
179
  - !ruby/object:Gem::Version
202
- version: '0.10'
203
- description: Sensu plugins for working with raid devices
204
- email: "<sensu-users@googlegroups.com>"
180
+ version: '0.8'
181
+ description: ! "This plugin provides native RAID instrumentation\n for
182
+ monitoring, including: 3ware, HP, and generic\n controller/array
183
+ health"
184
+ email: <sensu-users@googlegroups.com>
205
185
  executables:
206
- - check-smart-array-status.rb
207
- - check-raid.rb
208
- - check-megaraid-sas-status.rb
209
186
  - check-3ware-status.rb
187
+ - check-megaraid-sas-status.rb
188
+ - check-mpt2sas-status.rb
189
+ - check-raid.rb
190
+ - check-smart-array-status.rb
210
191
  extensions: []
211
192
  extra_rdoc_files: []
212
193
  files:
@@ -215,6 +196,7 @@ files:
215
196
  - README.md
216
197
  - bin/check-3ware-status.rb
217
198
  - bin/check-megaraid-sas-status.rb
199
+ - bin/check-mpt2sas-status.rb
218
200
  - bin/check-raid.rb
219
201
  - bin/check-smart-array-status.rb
220
202
  - lib/sensu-plugins-raid-checks.rb
@@ -223,7 +205,7 @@ homepage: https://github.com/sensu-plugins/sensu-plugins-raid-checks
223
205
  licenses:
224
206
  - MIT
225
207
  metadata:
226
- maintainer: "@mattyjones"
208
+ maintainer: ! '@mattyjones'
227
209
  development_status: active
228
210
  production_status: unstable - testing recommended
229
211
  release_draft: 'false'
@@ -235,17 +217,17 @@ require_paths:
235
217
  - lib
236
218
  required_ruby_version: !ruby/object:Gem::Requirement
237
219
  requirements:
238
- - - ">="
220
+ - - ! '>='
239
221
  - !ruby/object:Gem::Version
240
222
  version: 1.9.3
241
223
  required_rubygems_version: !ruby/object:Gem::Requirement
242
224
  requirements:
243
- - - ">="
225
+ - - ! '>='
244
226
  - !ruby/object:Gem::Version
245
227
  version: '0'
246
228
  requirements: []
247
229
  rubyforge_project:
248
- rubygems_version: 2.4.6
230
+ rubygems_version: 2.4.5
249
231
  signing_key:
250
232
  specification_version: 4
251
233
  summary: Sensu plugins for working with raid evices
checksums.yaml.gz.sig DELETED
Binary file
data.tar.gz.sig DELETED
@@ -1,3 +0,0 @@
1
- O����ϑc n&�%���vLږ`i��:�;g^\��8�=Ma$)��G���?�%8C��]�c���e[ ����>@m桄##;���e�����E
2
- ��ѻ���J0H���_X��jֆ�")Ylgk���1�/���K\Oo:֮Ʌ�Ǿ��Y|�� v_��m�����H�OS
3
- ��m%)|\�h�Z�4��d4냴*��a1�^�"�m�c��a�笞N�6�o=��Z�n��"Ϯ�J;�&[޽~�Ҋ-C��S� �
metadata.gz.sig DELETED
Binary file