sensu-plugins-raid-checks 2.0.3 → 3.0.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 +12 -1
- data/bin/check-3ware-status.rb +1 -1
- data/bin/check-megaraid-sas-status.rb +1 -1
- data/bin/check-mpt2sas-status.rb +1 -1
- data/bin/check-raid.rb +5 -0
- data/lib/sensu-plugins-raid-checks/version.rb +2 -2
- metadata +22 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f20f7fba5b10347e92d57a635d983574bf8ff1a200b8738150936a4aec871313
|
4
|
+
data.tar.gz: 911c500cd1ea17ca1e44a4011185f431971cab817ddd53d15915875037c8e771
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df83b8acc4174861d49a205dd40f8fcbb0ec777b5142b7952bb4872608e9a4aba3110c6467494e7f7b5e17f5c20ecfd60a3ae8c5124d8d204dd6251daf5f6f89
|
7
|
+
data.tar.gz: b32d4b34d630471bd91f6d332c4c0f654451cf721b595418fe95eea1f59793d27952774fbb3065397c973e34c2f154856408a6d2b647f8a08cbd687217aba2fa
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,16 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/)
|
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
8
|
|
9
|
+
## [3.0.0] - 2020-04-14
|
10
|
+
### Breaking Changes
|
11
|
+
- `english` 0.6.3 has been yanked - https://rubygems.org/gems/english/versions/0.6.3.
|
12
|
+
- Bump minimum required ruby to 2.3
|
13
|
+
- Update bundler development dep to `2.1` to match travis environment
|
14
|
+
- Update sensu-plugin dep to `~> 4.0`. you can read the changelog entries for [4.0](https://github.com/sensu-plugins/sensu-plugin/blob/master/CHANGELOG.md#400---2018-02-17)
|
15
|
+
- Update rake dep
|
16
|
+
- Update robocup dep
|
17
|
+
- Update yard dep
|
18
|
+
|
9
19
|
## [2.0.3] - 2019-02-17
|
10
20
|
### Fixed
|
11
21
|
- `check-megaraid-sas-status.rb`: Fixed logic error in which it was assumed that all virtual drives were in sequential order. Also fixed pattern matching when parsing individual drive status. (@SeanSith)
|
@@ -70,7 +80,8 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/)
|
|
70
80
|
### Added
|
71
81
|
- initial release
|
72
82
|
|
73
|
-
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-raid-checks/compare/
|
83
|
+
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-raid-checks/compare/3.0.0...HEAD
|
84
|
+
[3.0.0]: https://github.com/sensu-plugins/sensu-plugins-raid-checks/compare/2.0.3...3.0.0
|
74
85
|
[2.0.3]: https://github.com/sensu-plugins/sensu-plugins-raid-checks/compare/2.0.2...2.0.3
|
75
86
|
[2.0.2]: https://github.com/sensu-plugins/sensu-plugins-raid-checks/compare/2.0.1...2.0.2
|
76
87
|
[2.0.1]: https://github.com/sensu-plugins/sensu-plugins-raid-checks/compare/2.0.0...2.0.1
|
data/bin/check-3ware-status.rb
CHANGED
@@ -107,7 +107,7 @@ class Check3wareStatus < Sensu::Plugin::Check::CLI
|
|
107
107
|
unit = splitted[2]
|
108
108
|
if unit != '-' && unit != 'NOT-PRESENT'
|
109
109
|
# #YELLOW
|
110
|
-
if status == 'OK' # rubocop:disable BlockNesting
|
110
|
+
if status == 'OK' # rubocop:disable Metrics/BlockNesting
|
111
111
|
@good_disks << controller + unit + name + ': ' + status
|
112
112
|
else
|
113
113
|
@bad_disks << controller + unit + name + ': ' + status
|
@@ -68,7 +68,7 @@ class CheckMegaRAID < Sensu::Plugin::Check::CLI
|
|
68
68
|
# this reduces memory consumption as we don't care about the output in this conditional just whether or not it matches.
|
69
69
|
# The `.match?()` function was introduced in 2.4
|
70
70
|
unless Regexp.new(/State\s+:\s+Optimal/).match(stdout)
|
71
|
-
error = sprintf '%svirtual drive %d: %s ', error, i, stdout[/State\s*:\s*.*/].split(':')[1] # rubocop:disable Style/FormatString
|
71
|
+
error = sprintf '%svirtual drive %d: %s ', error, i, stdout[/State\s*:\s*.*/].split(':')[1] # rubocop:disable Style/FormatString, Style/FormatStringToken
|
72
72
|
have_error = true
|
73
73
|
end
|
74
74
|
end
|
data/bin/check-mpt2sas-status.rb
CHANGED
@@ -67,7 +67,7 @@ class CheckMPT2SAS < Sensu::Plugin::Check::CLI
|
|
67
67
|
parts = line.match(volume_state)
|
68
68
|
unless parts.nil?
|
69
69
|
unless parts['VolState'] == 'Optimal'
|
70
|
-
error = format('%s%s ', error, parts['VolState'])
|
70
|
+
error = format('%s%s ', error, parts['VolState']) # rubocop:disable Style/FormatStringToken
|
71
71
|
have_error = true
|
72
72
|
end
|
73
73
|
end
|
data/bin/check-raid.rb
CHANGED
@@ -42,9 +42,11 @@ class CheckRaid < Sensu::Plugin::Check::CLI
|
|
42
42
|
#
|
43
43
|
def check_software_raid
|
44
44
|
return unless File.exist?('/proc/mdstat')
|
45
|
+
|
45
46
|
contents = File.read('/proc/mdstat')
|
46
47
|
mg = contents.lines.grep(/active|blocks/)
|
47
48
|
return if mg.empty?
|
49
|
+
|
48
50
|
sg = mg.to_s.lines.grep(/\]\(F\)|[\[U]_/)
|
49
51
|
if sg.empty?
|
50
52
|
ok 'Software RAID OK'
|
@@ -57,6 +59,7 @@ class CheckRaid < Sensu::Plugin::Check::CLI
|
|
57
59
|
#
|
58
60
|
def check_hp
|
59
61
|
return unless File.exist?('/usr/bin/cciss_vol_status')
|
62
|
+
|
60
63
|
contents = `/usr/bin/cciss_vol_status /dev/sg0`
|
61
64
|
c = contents.lines.grep(/status\: OK\./)
|
62
65
|
# #YELLOW
|
@@ -71,6 +74,7 @@ class CheckRaid < Sensu::Plugin::Check::CLI
|
|
71
74
|
#
|
72
75
|
def check_adaptec
|
73
76
|
return unless File.exist?('/usr/StorMan/arcconf')
|
77
|
+
|
74
78
|
contents = `/usr/StorMan/arcconf GETCONFIG 1 AL`
|
75
79
|
|
76
80
|
mg = contents.lines.grep(/Controller Status/)
|
@@ -107,6 +111,7 @@ class CheckRaid < Sensu::Plugin::Check::CLI
|
|
107
111
|
#
|
108
112
|
def check_mega_raid
|
109
113
|
return unless File.exist?('/usr/sbin/megacli')
|
114
|
+
|
110
115
|
contents = if config[:log]
|
111
116
|
`/usr/sbin/megacli -AdpAllInfo -aALL`
|
112
117
|
else
|
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:
|
4
|
+
version: 3.0.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:
|
11
|
+
date: 2020-04-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: english
|
@@ -16,42 +16,42 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.7.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.7.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: sensu-plugin
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '4.0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '4.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '1
|
47
|
+
version: '2.1'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '1
|
54
|
+
version: '2.1'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: codeclimate-test-reporter
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -100,14 +100,14 @@ dependencies:
|
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: '
|
103
|
+
version: '13.0'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: '
|
110
|
+
version: '13.0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: redcarpet
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -128,53 +128,53 @@ dependencies:
|
|
128
128
|
requirements:
|
129
129
|
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: '3.
|
131
|
+
version: '3.7'
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: '3.
|
138
|
+
version: '3.7'
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: rubocop
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
143
|
- - "~>"
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version: 0.
|
145
|
+
version: 0.80.1
|
146
146
|
type: :development
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
150
|
- - "~>"
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version: 0.
|
152
|
+
version: 0.80.1
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
154
|
name: yard
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
157
|
- - "~>"
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version:
|
159
|
+
version: 0.9.20
|
160
160
|
type: :development
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
164
|
- - "~>"
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version:
|
166
|
+
version: 0.9.20
|
167
167
|
description: |-
|
168
168
|
This plugin provides native RAID instrumentation
|
169
169
|
for monitoring, including: 3ware, HP, and generic
|
170
170
|
controller/array health
|
171
171
|
email: "<sensu-users@googlegroups.com>"
|
172
172
|
executables:
|
173
|
-
- check-mpt2sas-status.rb
|
174
|
-
- check-3ware-status.rb
|
175
|
-
- check-smart-array-status.rb
|
176
173
|
- check-megaraid-sas-status.rb
|
174
|
+
- check-3ware-status.rb
|
175
|
+
- check-mpt2sas-status.rb
|
177
176
|
- check-raid.rb
|
177
|
+
- check-smart-array-status.rb
|
178
178
|
extensions: []
|
179
179
|
extra_rdoc_files: []
|
180
180
|
files:
|
@@ -206,14 +206,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
206
206
|
requirements:
|
207
207
|
- - ">="
|
208
208
|
- !ruby/object:Gem::Version
|
209
|
-
version: 2.
|
209
|
+
version: 2.3.0
|
210
210
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
211
211
|
requirements:
|
212
212
|
- - ">="
|
213
213
|
- !ruby/object:Gem::Version
|
214
214
|
version: '0'
|
215
215
|
requirements: []
|
216
|
-
|
216
|
+
rubyforge_project:
|
217
|
+
rubygems_version: 2.7.7
|
217
218
|
signing_key:
|
218
219
|
specification_version: 4
|
219
220
|
summary: Sensu plugins for working with raid evices
|