sensu-plugins-disk-checks 4.0.0 → 4.0.1

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,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: c3de60683bbfe869b26629fa1d01996f8179a182
4
- data.tar.gz: 49f5566f68965b6a5e22f39ba54d438cb960dcac
2
+ SHA256:
3
+ metadata.gz: 22479993aeece58e11a6ef06263cc6447aac4584ffad6982b536d7d3bd9476bb
4
+ data.tar.gz: b49be599d19e56c0e9c139c9902bfe5648dbe359eddfc0bd9e67cb93224edde8
5
5
  SHA512:
6
- metadata.gz: 03b828f00ee19de0798774e97b98d51b02bf7d606611bcb478d0a08a064ed3f2d56fba3dcdb23885bed5934b3dbd06c1fa9e9c4b95d6a03020211cccc8657d11
7
- data.tar.gz: 5c10c3e0c00764c8753579354d27433139a8a39f3a7261891ce72ee665c4f842b4c749dbea73b6a48d9e4a6fed5a61d686d1b50c8267f68d51979a732c1f2a92
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.0...HEAD
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
@@ -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
- devices << Disk.new(dev.to_s, '', nil)
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
@@ -2,7 +2,7 @@ module SensuPluginsDiskChecks
2
2
  module Version
3
3
  MAJOR = 4
4
4
  MINOR = 0
5
- PATCH = 0
5
+ PATCH = 1
6
6
 
7
7
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  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.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-01-07 00:00:00.000000000 Z
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
- - metrics-disk.rb
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
- - check-smart-tests.rb
179
- - check-fstab-mounts.rb
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
- rubyforge_project:
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