sensu-plugins-disk-checks 4.0.0 → 4.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +4 -1
- data/bin/check-smart-status.rb +10 -1
- data/lib/sensu-plugins-disk-checks/version.rb +1 -1
- metadata +8 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 22479993aeece58e11a6ef06263cc6447aac4584ffad6982b536d7d3bd9476bb
|
4
|
+
data.tar.gz: b49be599d19e56c0e9c139c9902bfe5648dbe359eddfc0bd9e67cb93224edde8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b60a96c2990180e7217161738994b9ff5bebd43a5fdd37d3047db09be657a9e52c7d7113ae5d6b1a6d5932f62fb5ac596ab44dc4644d2e193037e1b558ac103e
|
7
|
+
data.tar.gz: 7e03d29d884c6306acaefa075eadf3502f5dd7ceadde43648acb19421e48663ba26d6a1369d5943f022fb7fc175363321fd790bccb15e73a4db0e7731bf207d2
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|
4
4
|
This CHANGELOG follows the format listed [here](https://github.com/sensu-plugins/community/blob/master/HOW_WE_CHANGELOG.md)
|
5
5
|
|
6
6
|
## [Unreleased]
|
7
|
+
### Fixed
|
8
|
+
- check-smart-status.rb: Check for overrides when --device is used (@GwennG)
|
7
9
|
|
8
10
|
### Breaking Changes
|
9
11
|
- check-smart.rb: fixing a `undefined` error by renaming `no-smart-capable-disks` to `--zero-smart-capable_disks` as the parser sees any `--no-` argument and attempts to negate it which a `(True|False)Class` can not be cast to a symbol (@bdeluca)
|
@@ -190,7 +192,8 @@ https://mathias-kettner.de/checkmk_filesystems.html
|
|
190
192
|
### Added
|
191
193
|
- initial release
|
192
194
|
|
193
|
-
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-disk-checks/compare/4.0.
|
195
|
+
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-disk-checks/compare/4.0.1...HEAD
|
196
|
+
[4.0.1]: https://github.com/sensu-plugins/sensu-plugins-disk-checks/compare/4.0.0...4.0.1
|
194
197
|
[4.0.0]: https://github.com/sensu-plugins/sensu-plugins-disk-checks/compare/3.1.1...4.0.0
|
195
198
|
[3.1.1]: https://github.com/sensu-plugins/sensu-plugins-disk-checks/compare/3.1.0...3.1.1
|
196
199
|
[3.1.0]: https://github.com/sensu-plugins/sensu-plugins-disk-checks/compare/3.0.1...3.1.0
|
data/bin/check-smart-status.rb
CHANGED
@@ -272,7 +272,16 @@ class SmartCheckStatus < Sensu::Plugin::Check::CLI
|
|
272
272
|
# Return parameter value if it's defined
|
273
273
|
if config[:devices] != 'all'
|
274
274
|
config[:devices].split(',').each do |dev|
|
275
|
-
|
275
|
+
jconfig = @hardware.find { |d| d[:path] == dev }
|
276
|
+
|
277
|
+
if jconfig.nil?
|
278
|
+
override = nil
|
279
|
+
ignore = nil
|
280
|
+
else
|
281
|
+
override = jconfig[:override]
|
282
|
+
ignore = jconfig[:ignore]
|
283
|
+
end
|
284
|
+
devices << Disk.new(dev.to_s, override, ignore)
|
276
285
|
end
|
277
286
|
return devices
|
278
287
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu-plugins-disk-checks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.1
|
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: 2019-
|
11
|
+
date: 2019-03-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sensu-plugin
|
@@ -170,14 +170,14 @@ description: |-
|
|
170
170
|
health, usage, and various metrics.
|
171
171
|
email: "<sensu-users@googlegroups.com>"
|
172
172
|
executables:
|
173
|
-
-
|
173
|
+
- check-fstab-mounts.rb
|
174
|
+
- metrics-disk-usage.rb
|
174
175
|
- check-smart.rb
|
176
|
+
- check-smart-tests.rb
|
175
177
|
- check-disk-usage.rb
|
176
|
-
- metrics-disk-capacity.rb
|
177
178
|
- check-smart-status.rb
|
178
|
-
-
|
179
|
-
-
|
180
|
-
- metrics-disk-usage.rb
|
179
|
+
- metrics-disk.rb
|
180
|
+
- metrics-disk-capacity.rb
|
181
181
|
extensions: []
|
182
182
|
extra_rdoc_files: []
|
183
183
|
files:
|
@@ -219,8 +219,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
219
219
|
- !ruby/object:Gem::Version
|
220
220
|
version: '0'
|
221
221
|
requirements: []
|
222
|
-
|
223
|
-
rubygems_version: 2.6.11
|
222
|
+
rubygems_version: 3.0.3
|
224
223
|
signing_key:
|
225
224
|
specification_version: 4
|
226
225
|
summary: Sensu plugins for disk checks
|