sensu-plugins-raid-checks 0.1.0 → 1.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 +5 -13
- data/CHANGELOG.md +11 -1
- data/bin/check-3ware-status.rb +8 -2
- data/bin/check-megaraid-sas-status.rb +1 -1
- data/bin/check-raid.rb +2 -2
- data/lib/sensu-plugins-raid-checks/version.rb +2 -2
- metadata +31 -30
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
OWE2MDZjYzFjNzE4OGZkMzAxYjZmZDg0ZmM5ZDYzNzViODhmMjMyZA==
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 5ae14149cff54c3d6804118c5b04d99ff3be1e9e
|
4
|
+
data.tar.gz: 604678dd993adbfe2fc5a314deaf23c0a50ddaea
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
YmNiYjNjNjNjZDUwZTE0NjcyNWNjZTFkNTBiOTYwYjA5Zjk4MGRkZGYyY2U4
|
11
|
-
YWVhYzA4N2M4OTU4ZmNiODVkZDliNjBjYWQyMWI0NDc4NzI0ZDA=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
NDNiOGU3ODAzZWQ5ODcwNjI4ZGU2MGYzMzI5MGU0YWY0MzdlZjkwYjhlODE1
|
14
|
-
MzY5MzAxNmZiNmY5ZDk5ODA0ODFkYTY5MmM1NDUzNGJjNTFlMzQyOGQ2OTE2
|
15
|
-
YjNmZjU4YmRhNjM2ZTA5NDgwOWRiMGU3Nzc5ODVmNDc4OTc1MDA=
|
6
|
+
metadata.gz: 4551242e958d13472bf47af9e71968c7678566e3a96be74d08646247f3198782dd01f74b547710f4e8e09000c0f787fcf3baaa142bb25c3282afc6deab5bcb95
|
7
|
+
data.tar.gz: 0a0e66f803d609769af1537d09d86aca6d421238a42ed4167110c98cf111e6a751f5a3abfce40c5633fa65fc6bbac28d805bf9b685cffe87d0851e8a3d31f81a
|
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
|
+
## [1.0.0] - 2017-02-02
|
9
|
+
### Added
|
10
|
+
- improvement to regex checks for check_software method in check-raid plugin (@scosist)
|
11
|
+
- Ruby 2.3.0 support (@mattyjones/@eheydrick)
|
12
|
+
- `check-3ware-status`: add option to specify the path to tw-cli binary (@GhostLyrics)
|
13
|
+
|
14
|
+
### Removed
|
15
|
+
- Ruby < 2.1 support (@mattyjones/@eheydrick)
|
16
|
+
|
8
17
|
## [0.1.0] - 2015-09-14
|
9
18
|
### Added
|
10
19
|
- added a new check-mpt2sas-status plugin
|
@@ -32,7 +41,8 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
|
|
32
41
|
### Added
|
33
42
|
- initial release
|
34
43
|
|
35
|
-
[unreleased]: https://github.com/sensu-plugins/sensu-plugins-raid-checks/compare/
|
44
|
+
[unreleased]: https://github.com/sensu-plugins/sensu-plugins-raid-checks/compare/1.0.0...HEAD
|
45
|
+
[1.0.0]: https://github.com/sensu-plugins/sensu-plugins-raid-checks/compare/0.1.0...1.0.0
|
36
46
|
[0.1.0]: https://github.com/sensu-plugins/sensu-plugins-raid-checks/compare/0.0.4...0.1.0
|
37
47
|
[0.0.4]: https://github.com/sensu-plugins/sensu-plugins-raid-checks/compare/0.0.3...0.0.4
|
38
48
|
[0.0.3]: https://github.com/sensu-plugins/sensu-plugins-raid-checks/compare/0.0.2...0.0.3
|
data/bin/check-3ware-status.rb
CHANGED
@@ -24,7 +24,7 @@
|
|
24
24
|
#
|
25
25
|
# tw-cli requires root permissions.
|
26
26
|
#
|
27
|
-
# Create a file named /etc/sudoers.d/tw-cli with
|
27
|
+
# Create a file named /etc/sudoers.d/tw-cli with the path to your tw-cli inside :
|
28
28
|
# sensu ALL=(ALL) NOPASSWD: /usr/sbin/tw-cli
|
29
29
|
#
|
30
30
|
# You can get Debian/Ubuntu tw-cli packages here - http://hwraid.le-vert.net/
|
@@ -41,11 +41,17 @@ require 'open3'
|
|
41
41
|
# Check 3ware Status
|
42
42
|
#
|
43
43
|
class Check3wareStatus < Sensu::Plugin::Check::CLI
|
44
|
+
option :twclicommand,
|
45
|
+
description: 'the tw-cli executable',
|
46
|
+
short: '-c CMD',
|
47
|
+
long: '--command CMD',
|
48
|
+
default: 'tw-cli'
|
49
|
+
|
44
50
|
# Setup variables
|
45
51
|
#
|
46
52
|
def initialize
|
47
53
|
super
|
48
|
-
@binary =
|
54
|
+
@binary = "sudo -n -k #{config[:twclicommand]}"
|
49
55
|
@controllers = []
|
50
56
|
@good_disks = []
|
51
57
|
@bad_disks = []
|
data/bin/check-raid.rb
CHANGED
@@ -35,9 +35,9 @@ class CheckRaid < Sensu::Plugin::Check::CLI
|
|
35
35
|
def check_software
|
36
36
|
if File.exist?('/proc/mdstat')
|
37
37
|
contents = File.read('/proc/mdstat')
|
38
|
-
mg = contents.lines.grep(/active/)
|
38
|
+
mg = contents.lines.grep(/active|blocks/)
|
39
39
|
unless mg.empty?
|
40
|
-
sg = mg.to_s.lines.grep(/\]\(F\)/)
|
40
|
+
sg = mg.to_s.lines.grep(/\]\(F\)|[\[U]_/)
|
41
41
|
unless sg.empty? # rubocop:disable UnlessElse
|
42
42
|
warning 'Software RAID warning'
|
43
43
|
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: 1.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: 2017-02-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: english
|
@@ -28,14 +28,14 @@ dependencies:
|
|
28
28
|
name: sensu-plugin
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ~>
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '1.2'
|
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
40
|
version: '1.2'
|
41
41
|
- !ruby/object:Gem::Dependency
|
@@ -56,132 +56,133 @@ dependencies:
|
|
56
56
|
name: bundler
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - ~>
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '1.7'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - ~>
|
66
|
+
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '1.7'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: codeclimate-test-reporter
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - ~>
|
73
|
+
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0.4'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - ~>
|
80
|
+
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0.4'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: github-markup
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - ~>
|
87
|
+
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '1.3'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - ~>
|
94
|
+
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '1.3'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: pry
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- - ~>
|
101
|
+
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: '0.10'
|
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
110
|
version: '0.10'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: rake
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- - ~>
|
115
|
+
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
117
|
version: '10.0'
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
|
-
- - ~>
|
122
|
+
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '10.0'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: redcarpet
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
|
-
- - ~>
|
129
|
+
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
131
|
version: '3.2'
|
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
138
|
version: '3.2'
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: rspec
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
|
-
- - ~>
|
143
|
+
- - "~>"
|
144
144
|
- !ruby/object:Gem::Version
|
145
145
|
version: '3.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
152
|
version: '3.1'
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
154
|
name: rubocop
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
|
-
- - ~>
|
157
|
+
- - "~>"
|
158
158
|
- !ruby/object:Gem::Version
|
159
159
|
version: 0.40.0
|
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
166
|
version: 0.40.0
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
168
|
name: yard
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
170
170
|
requirements:
|
171
|
-
- - ~>
|
171
|
+
- - "~>"
|
172
172
|
- !ruby/object:Gem::Version
|
173
173
|
version: '0.8'
|
174
174
|
type: :development
|
175
175
|
prerelease: false
|
176
176
|
version_requirements: !ruby/object:Gem::Requirement
|
177
177
|
requirements:
|
178
|
-
- - ~>
|
178
|
+
- - "~>"
|
179
179
|
- !ruby/object:Gem::Version
|
180
180
|
version: '0.8'
|
181
|
-
description:
|
182
|
-
|
183
|
-
|
184
|
-
|
181
|
+
description: |-
|
182
|
+
This plugin provides native RAID instrumentation
|
183
|
+
for monitoring, including: 3ware, HP, and generic
|
184
|
+
controller/array health
|
185
|
+
email: "<sensu-users@googlegroups.com>"
|
185
186
|
executables:
|
186
187
|
- check-3ware-status.rb
|
187
188
|
- check-megaraid-sas-status.rb
|
@@ -205,7 +206,7 @@ homepage: https://github.com/sensu-plugins/sensu-plugins-raid-checks
|
|
205
206
|
licenses:
|
206
207
|
- MIT
|
207
208
|
metadata:
|
208
|
-
maintainer:
|
209
|
+
maintainer: sensu-plugin
|
209
210
|
development_status: active
|
210
211
|
production_status: unstable - testing recommended
|
211
212
|
release_draft: 'false'
|
@@ -217,12 +218,12 @@ require_paths:
|
|
217
218
|
- lib
|
218
219
|
required_ruby_version: !ruby/object:Gem::Requirement
|
219
220
|
requirements:
|
220
|
-
- -
|
221
|
+
- - ">="
|
221
222
|
- !ruby/object:Gem::Version
|
222
|
-
version: 1.
|
223
|
+
version: 2.1.0
|
223
224
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
224
225
|
requirements:
|
225
|
-
- -
|
226
|
+
- - ">="
|
226
227
|
- !ruby/object:Gem::Version
|
227
228
|
version: '0'
|
228
229
|
requirements: []
|