sensu-plugins-raid-checks 1.0.0 → 2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5ae14149cff54c3d6804118c5b04d99ff3be1e9e
4
- data.tar.gz: 604678dd993adbfe2fc5a314deaf23c0a50ddaea
3
+ metadata.gz: 2d439985a3f3eb77e2c6cfc0bb4d3e97bb1c95af
4
+ data.tar.gz: 432f11999e85966ade57f89f6ac46af10832bc27
5
5
  SHA512:
6
- metadata.gz: 4551242e958d13472bf47af9e71968c7678566e3a96be74d08646247f3198782dd01f74b547710f4e8e09000c0f787fcf3baaa142bb25c3282afc6deab5bcb95
7
- data.tar.gz: 0a0e66f803d609769af1537d09d86aca6d421238a42ed4167110c98cf111e6a751f5a3abfce40c5633fa65fc6bbac28d805bf9b685cffe87d0851e8a3d31f81a
6
+ metadata.gz: 6c9f6d9f7473fad7d92a898a975a51e4ecd29461493806d66a5dea4ec1747a0452ef566f9d63a54cd7fbd98d5776a145be5e6c7bb688775ae3aa9a12922afe64
7
+ data.tar.gz: 61db581a39d3073ba7a54266576637824c386751123e64c35e75db28858f627bb6e2e2059d11ab23b33a3d4a22573d8e7e7711ebb638778c73eb1fe635c909b5
@@ -1,10 +1,24 @@
1
- #Change Log
1
+ # Change Log
2
2
  This project adheres to [Semantic Versioning](http://semver.org/).
3
3
 
4
- This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachangelog.com/)
4
+ This CHANGELOG follows the format listed [here](https://github.com/sensu-plugins/community/blob/master/HOW_WE_CHANGELOG.md).
5
+ Which is based on [Keep A Changelog](http://keepachangelog.com/)
5
6
 
6
7
  ## [Unreleased]
7
8
 
9
+ ## [2.0.0] - 2017-12-28
10
+ ### Breaking Change
11
+ - `check-raid.rb`: added option `--log` with a default of `false` to prevent it default creating a log which is frequently being written to and filling up the disk. This does the *opposite* of what the vendor defaults are but due to the nature of those running it through a monitoring solution like sensu the defaults do not make sense in this use case. If you are wanting those logs you can change this to `true` to keep existing behavior. (@dhpowrhost) (@smbambling)
12
+
13
+ ### Changed
14
+ - changelog guidelines location (@majormoses)
15
+
16
+ ### Added
17
+ - Ruby 2.4.1 testing
18
+
19
+ ### Removed
20
+ - Remove timeout gem dependency as this is not actually called in the code. However it was causing the build to fail.
21
+
8
22
  ## [1.0.0] - 2017-02-02
9
23
  ### Added
10
24
  - improvement to regex checks for check_software method in check-raid plugin (@scosist)
@@ -41,7 +55,8 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
41
55
  ### Added
42
56
  - initial release
43
57
 
44
- [unreleased]: https://github.com/sensu-plugins/sensu-plugins-raid-checks/compare/1.0.0...HEAD
58
+ [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-raid-checks/compare/2.0.0...HEAD
59
+ [2.0.0]: https://github.com/sensu-plugins/sensu-plugins-raid-checks/compare/1.0.0...2.0.0
45
60
  [1.0.0]: https://github.com/sensu-plugins/sensu-plugins-raid-checks/compare/0.1.0...1.0.0
46
61
  [0.1.0]: https://github.com/sensu-plugins/sensu-plugins-raid-checks/compare/0.0.4...0.1.0
47
62
  [0.0.4]: https://github.com/sensu-plugins/sensu-plugins-raid-checks/compare/0.0.3...0.0.4
@@ -30,6 +30,12 @@ require 'sensu-plugin/check/cli'
30
30
  # Check Raid
31
31
  #
32
32
  class CheckRaid < Sensu::Plugin::Check::CLI
33
+ option :log,
34
+ description: 'Enables or disables logging for megacli',
35
+ short: '-l VALUE',
36
+ long: '--log VALUE',
37
+ boolean: true,
38
+ default: false
33
39
  # Check software raid
34
40
  #
35
41
  def check_software
@@ -103,7 +109,11 @@ class CheckRaid < Sensu::Plugin::Check::CLI
103
109
  #
104
110
  def check_mega_raid
105
111
  if File.exist?('/usr/sbin/megacli')
106
- contents = `/usr/sbin/megacli -AdpAllInfo -aALL`
112
+ contents = if config[:log]
113
+ `/usr/sbin/megacli -AdpAllInfo -aALL`
114
+ else
115
+ `/usr/sbin/megacli -AdpAllInfo -aALL -NoLog`
116
+ end
107
117
  failed = contents.lines.grep(/(Critical|Failed) Disks\s+\: 0/)
108
118
  degraded = contents.lines.grep(/Degraded\s+\: 0/)
109
119
  # #YELLOW
@@ -1,6 +1,6 @@
1
1
  module SensuPluginsRaidChecks
2
2
  module Version
3
- MAJOR = 1
3
+ MAJOR = 2
4
4
  MINOR = 0
5
5
  PATCH = 0
6
6
 
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: 1.0.0
4
+ version: 2.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: 2017-02-02 00:00:00.000000000 Z
11
+ date: 2017-12-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: english
@@ -38,20 +38,6 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.2'
41
- - !ruby/object:Gem::Dependency
42
- name: timeout
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - '='
46
- - !ruby/object:Gem::Version
47
- version: 0.0.1
48
- type: :runtime
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - '='
53
- - !ruby/object:Gem::Version
54
- version: 0.0.1
55
41
  - !ruby/object:Gem::Dependency
56
42
  name: bundler
57
43
  requirement: !ruby/object:Gem::Requirement
@@ -184,11 +170,11 @@ description: |-
184
170
  controller/array health
185
171
  email: "<sensu-users@googlegroups.com>"
186
172
  executables:
187
- - check-3ware-status.rb
188
- - check-megaraid-sas-status.rb
173
+ - check-smart-array-status.rb
189
174
  - check-mpt2sas-status.rb
175
+ - check-megaraid-sas-status.rb
176
+ - check-3ware-status.rb
190
177
  - check-raid.rb
191
- - check-smart-array-status.rb
192
178
  extensions: []
193
179
  extra_rdoc_files: []
194
180
  files:
@@ -228,7 +214,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
228
214
  version: '0'
229
215
  requirements: []
230
216
  rubyforge_project:
231
- rubygems_version: 2.4.5
217
+ rubygems_version: 2.6.11
232
218
  signing_key:
233
219
  specification_version: 4
234
220
  summary: Sensu plugins for working with raid evices