sensu-plugins-raid-checks 0.0.1.alpha.2 → 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6675b3ea6701485842c1987987f995a3ffb03bfc
4
- data.tar.gz: 45df531fd24cd8741f20ebd3fcb3faeb4129f0e1
3
+ metadata.gz: 1857686d86f0066965c9b3b005fbac3afe8aee76
4
+ data.tar.gz: 50bd5ab9d0e5eda2f99833cfebef157403b3e9d0
5
5
  SHA512:
6
- metadata.gz: c207af3d091e37897e34744d162bf19da2628c197e890a78f3aa5857a49e3ef248777abde2de5564d7d39fa8abe19585fdd852e8ebabcc55f9868b4ff2844ff8
7
- data.tar.gz: 2da67b5f76ed7b584e7cc39f0741dba779217be351cc1923bb539921743d6b428858826850d97be584d7740e349fe89af69c8dc67528c0c05bd16f3f3ae18e02
6
+ metadata.gz: 3e4cb4c2452f92b586d46899f3b896230c08a0927d8213f669d585d2c8156dcf0b78700ee34cb8b1a1bb9a5f61f027c0945f13f199f133242146458dce4c9b4f
7
+ data.tar.gz: 8d2862ae71216d6cf9504d2e42b316ec077ef07bdd228e4dbbe717c08f889096009647e84d127d8a050eca419fc8273370d0b4c609eecc1b81b9449358f80631
checksums.yaml.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -1,20 +1,13 @@
1
- #### 0.0.1-alpha.1
1
+ #Change Log
2
+ This project adheres to [Semantic Versioning](http://semver.org/).
2
3
 
3
- * baseline release identical to **sensu-community-plugins** repo
4
- * change name of check-megaraid_sas-status.rb to check-megaraid-sas-status.rb
5
- * change name of check-smartarray-status.rb to check-smart-array-status.rb
6
- * basic yard coverage
7
- * pinned dependencies
8
- * built against 1.9.3, 2.0, 2.1
9
- * cryptographically signed
4
+ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachangelog.com/)
5
+
6
+ ## Unreleased][unreleased]
7
+
8
+ ## 0.0.1 - 2015-05-20
9
+
10
+ ### Added
11
+ - initial release
10
12
 
11
- #### 0.0.1-alpha.2
12
13
 
13
- * bump Vagrant box to Cent 6.6
14
- * removed git dependence in gemspec
15
- * remove contributing.md from gem build
16
- * updated gem author and licence info
17
- * updated contributing.ms to reflect new documentation style
18
- * updated yard documentation
19
- * added test/spec_helper.rb
20
- * change gem name to sensu-plugins-raid-checksß
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2015 devops@yieldbot.com
1
+ Copyright (c) 2015 Sensu-Plugins
2
2
 
3
3
  MIT License
4
4
 
data/README.md CHANGED
@@ -1,9 +1,10 @@
1
- ## Sensu-Plugins-raid-checks-Checks
1
+ ## Sensu-Plugins-raid-checks
2
2
 
3
3
  [![Build Status](https://travis-ci.org/sensu-plugins/sensu-plugins-raid-checks.svg?branch=master)](https://travis-ci.org/sensu-plugins/sensu-plugins-raid-checks)
4
4
  [![Gem Version](https://badge.fury.io/rb/sensu-plugins-raid-checks.svg)](http://badge.fury.io/rb/sensu-plugins-raid-checks)
5
5
  [![Code Climate](https://codeclimate.com/github/sensu-plugins/sensu-plugins-raid-checks/badges/gpa.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-raid-checks)
6
6
  [![Test Coverage](https://codeclimate.com/github/sensu-plugins/sensu-plugins-raid-checks/badges/coverage.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-raid-checks)
7
+ [ ![Codeship Status for sensu-plugins/sensu-plugins-raid-checks](https://codeship.com/projects/a8a17b00-dc04-0132-d98c-1e3fe125131b/status?branch=master)](https://codeship.com/projects/79860)
7
8
 
8
9
  ## Functionality
9
10
 
@@ -24,18 +25,7 @@
24
25
 
25
26
  ## Installation
26
27
 
28
+ [Installation and Setup](https://github.com/sensu-plugins/documentation/blob/master/user_docs/installation_instructions.md)
27
29
 
28
- Add the public key (if you haven’t already) as a trusted certificate
29
-
30
- ```
31
- gem cert --add <(curl -Ls https://raw.githubusercontent.com/sensu-plugins/sensu-plugins.github.io/master/certs/sensu-plugins.pem)
32
- gem install <gem> -P MediumSecurity
33
- ```
34
-
35
- You can also download the key from /certs/ within each repository.
36
-
37
- `gem install sensu-plugins-raid-checks`
38
-
39
- Add *sensu-plugins-raid-checks* to your Gemfile, manifest, cookbook, etc
40
30
 
41
31
  ## Notes
@@ -86,7 +86,7 @@ class Check3wareStatus < Sensu::Plugin::Check::CLI
86
86
  # @param data [String]
87
87
  # @param controller [String]
88
88
  #
89
- def parse_disks!(data, controller)
89
+ def parse_disks!(data, controller) # rubocop:disable all
90
90
  # #YELLOW
91
91
  data.lines.each do |line| # rubocop:disable Style/Next
92
92
  unless line.empty?
@@ -112,7 +112,7 @@ class Check3wareStatus < Sensu::Plugin::Check::CLI
112
112
 
113
113
  # Main function
114
114
  #
115
- def run
115
+ def run # rubocop:disable all
116
116
  exit_status, raw_data, err = execute "#{@binary} info"
117
117
  unknown "tw-cli command failed - #{err}" unless exit_status.success?
118
118
  parse_controllers! raw_data
@@ -47,7 +47,7 @@ class CheckMegraRAID < Sensu::Plugin::Check::CLI
47
47
  default: 0
48
48
  # Main function
49
49
  #
50
- def run
50
+ def run # rubocop:disable all
51
51
  have_error = false
52
52
  error = ''
53
53
  # get number of virtual drives
@@ -56,7 +56,7 @@ class CheckMegraRAID < Sensu::Plugin::Check::CLI
56
56
  # and check them in turn
57
57
  stdout = `#{config[:megaraidcmd]} -LDInfo -L#{i} -a#{config[:controller]} `
58
58
  unless Regexp.new('State\s*:\s*Optimal').match(stdout)
59
- error = sprintf '%svirtual drive %d: %s ', error, i, stdout[/State\s*:\s*.*/].split(':')[1]
59
+ error = sprintf '%svirtual drive %d: %s ', error, i, stdout[/State\s*:\s*.*/].split(':')[1] # rubocop:disable all
60
60
  have_error = true
61
61
  end
62
62
  end
data/bin/check-raid.rb CHANGED
@@ -67,7 +67,7 @@ class CheckRaid < Sensu::Plugin::Check::CLI
67
67
 
68
68
  # Check Adaptec raid controllers
69
69
  #
70
- def check_adaptec
70
+ def check_adaptec # rubocop:disable all
71
71
  # #YELLOW
72
72
  if File.exist?('/usr/StorMan/arcconf') # rubocop:disable GuardClause
73
73
  contents = `/usr/StorMan/arcconf GETCONFIG 1 AL`
@@ -100,7 +100,7 @@ class CheckSmartArrayStatus < Sensu::Plugin::Check::CLI
100
100
 
101
101
  # Main function
102
102
  #
103
- def run
103
+ def run # rubocop:disable all
104
104
  exit_status, raw_data = execute "#{@binary} ctrl all show status"
105
105
  unknown "hpacucli command failed - #{raw_data}" unless exit_status.success?
106
106
  parse_controllers! raw_data
@@ -0,0 +1,28 @@
1
+ require 'json'
2
+
3
+ # encoding: utf-8
4
+ module SensuPluginsRaidChecks
5
+ # This defines the version of the gem
6
+ module Version
7
+ MAJOR = 0
8
+ MINOR = 0
9
+ PATCH = 1
10
+
11
+ VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
12
+
13
+ NAME = 'sensu-plugins-raid-checks'
14
+ BANNER = "#{NAME} v%s"
15
+
16
+ module_function
17
+
18
+ def version
19
+ format(BANNER, VER_STRING)
20
+ end
21
+
22
+ def json_version
23
+ {
24
+ 'version' => VER_STRING
25
+ }.to_json
26
+ end
27
+ end
28
+ end
@@ -1,7 +1,14 @@
1
+ require 'sensu-plugins-raid-checks/version'
2
+
3
+ # Load the defaults
4
+
1
5
  #
2
- # Set gem version
6
+ # Default class
3
7
  #
4
8
  module SensuPluginsRaidChecks
5
- # Gem version
6
- VERSION = '0.0.1.alpha.2'
9
+ class << self
10
+ end
11
+
12
+ class << self
13
+ end
7
14
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,10 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-plugins-raid-checks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.alpha.2
4
+ version: 0.0.1
5
5
  platform: ruby
6
6
  authors:
7
- - Yieldbot, Inc and contributors
7
+ - Sensu-Plugins and contributors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain:
@@ -30,7 +30,7 @@ cert_chain:
30
30
  8sHuVruarogxxKPBzlL2is4EUb6oN/RdpGx2l4254+nyR+abg//Ed27Ym0PkB4lk
31
31
  HP0m8WSjZmFr109pE/sVsM5jtOCvogyujQOjNVGN4gz1wwPr
32
32
  -----END CERTIFICATE-----
33
- date: 2015-02-01 00:00:00.000000000 Z
33
+ date: 2015-05-21 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: sensu-plugin
@@ -46,159 +46,189 @@ dependencies:
46
46
  - - '='
47
47
  - !ruby/object:Gem::Version
48
48
  version: 1.1.0
49
+ - !ruby/object:Gem::Dependency
50
+ name: english
51
+ requirement: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - '='
54
+ - !ruby/object:Gem::Version
55
+ version: 0.6.3
56
+ type: :runtime
57
+ prerelease: false
58
+ version_requirements: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - '='
61
+ - !ruby/object:Gem::Version
62
+ version: 0.6.3
49
63
  - !ruby/object:Gem::Dependency
50
64
  name: codeclimate-test-reporter
51
65
  requirement: !ruby/object:Gem::Requirement
52
66
  requirements:
53
- - - '>='
67
+ - - "~>"
54
68
  - !ruby/object:Gem::Version
55
- version: '0'
69
+ version: '0.4'
56
70
  type: :development
57
71
  prerelease: false
58
72
  version_requirements: !ruby/object:Gem::Requirement
59
73
  requirements:
60
- - - '>='
74
+ - - "~>"
61
75
  - !ruby/object:Gem::Version
62
- version: '0'
76
+ version: '0.4'
63
77
  - !ruby/object:Gem::Dependency
64
78
  name: rubocop
65
79
  requirement: !ruby/object:Gem::Requirement
66
80
  requirements:
67
- - - ~>
81
+ - - "~>"
68
82
  - !ruby/object:Gem::Version
69
- version: 0.17.0
83
+ version: '0.30'
70
84
  type: :development
71
85
  prerelease: false
72
86
  version_requirements: !ruby/object:Gem::Requirement
73
87
  requirements:
74
- - - ~>
88
+ - - "~>"
75
89
  - !ruby/object:Gem::Version
76
- version: 0.17.0
90
+ version: '0.30'
77
91
  - !ruby/object:Gem::Dependency
78
92
  name: rspec
79
93
  requirement: !ruby/object:Gem::Requirement
80
94
  requirements:
81
- - - ~>
95
+ - - "~>"
82
96
  - !ruby/object:Gem::Version
83
97
  version: '3.1'
84
98
  type: :development
85
99
  prerelease: false
86
100
  version_requirements: !ruby/object:Gem::Requirement
87
101
  requirements:
88
- - - ~>
102
+ - - "~>"
89
103
  - !ruby/object:Gem::Version
90
104
  version: '3.1'
91
105
  - !ruby/object:Gem::Dependency
92
106
  name: bundler
93
107
  requirement: !ruby/object:Gem::Requirement
94
108
  requirements:
95
- - - ~>
109
+ - - "~>"
96
110
  - !ruby/object:Gem::Version
97
111
  version: '1.7'
98
112
  type: :development
99
113
  prerelease: false
100
114
  version_requirements: !ruby/object:Gem::Requirement
101
115
  requirements:
102
- - - ~>
116
+ - - "~>"
103
117
  - !ruby/object:Gem::Version
104
118
  version: '1.7'
105
119
  - !ruby/object:Gem::Dependency
106
120
  name: rake
107
121
  requirement: !ruby/object:Gem::Requirement
108
122
  requirements:
109
- - - ~>
123
+ - - "~>"
110
124
  - !ruby/object:Gem::Version
111
125
  version: '10.0'
112
126
  type: :development
113
127
  prerelease: false
114
128
  version_requirements: !ruby/object:Gem::Requirement
115
129
  requirements:
116
- - - ~>
130
+ - - "~>"
117
131
  - !ruby/object:Gem::Version
118
132
  version: '10.0'
119
133
  - !ruby/object:Gem::Dependency
120
134
  name: github-markup
121
135
  requirement: !ruby/object:Gem::Requirement
122
136
  requirements:
123
- - - '>='
137
+ - - "~>"
124
138
  - !ruby/object:Gem::Version
125
- version: '0'
139
+ version: '1.3'
126
140
  type: :development
127
141
  prerelease: false
128
142
  version_requirements: !ruby/object:Gem::Requirement
129
143
  requirements:
130
- - - '>='
144
+ - - "~>"
131
145
  - !ruby/object:Gem::Version
132
- version: '0'
146
+ version: '1.3'
133
147
  - !ruby/object:Gem::Dependency
134
148
  name: redcarpet
135
149
  requirement: !ruby/object:Gem::Requirement
136
150
  requirements:
137
- - - '>='
151
+ - - "~>"
138
152
  - !ruby/object:Gem::Version
139
- version: '0'
153
+ version: '3.2'
140
154
  type: :development
141
155
  prerelease: false
142
156
  version_requirements: !ruby/object:Gem::Requirement
143
157
  requirements:
144
- - - '>='
158
+ - - "~>"
145
159
  - !ruby/object:Gem::Version
146
- version: '0'
160
+ version: '3.2'
147
161
  - !ruby/object:Gem::Dependency
148
162
  name: yard
149
163
  requirement: !ruby/object:Gem::Requirement
150
164
  requirements:
151
- - - '>='
165
+ - - "~>"
166
+ - !ruby/object:Gem::Version
167
+ version: '0.8'
168
+ type: :development
169
+ prerelease: false
170
+ version_requirements: !ruby/object:Gem::Requirement
171
+ requirements:
172
+ - - "~>"
173
+ - !ruby/object:Gem::Version
174
+ version: '0.8'
175
+ - !ruby/object:Gem::Dependency
176
+ name: pry
177
+ requirement: !ruby/object:Gem::Requirement
178
+ requirements:
179
+ - - "~>"
152
180
  - !ruby/object:Gem::Version
153
- version: '0'
181
+ version: '0.10'
154
182
  type: :development
155
183
  prerelease: false
156
184
  version_requirements: !ruby/object:Gem::Requirement
157
185
  requirements:
158
- - - '>='
186
+ - - "~>"
159
187
  - !ruby/object:Gem::Version
160
- version: '0'
161
- description: Sensu nginx checks
162
- email: <sensu-users@googlegroups.com>
163
- executables:
164
- - check-3ware-status.rb
165
- - check-megaraid-sas-status.rb
166
- - check-raid.rb
167
- - check-smart-array-status.rb
188
+ version: '0.10'
189
+ description: Sensu plugins for working with raid devices
190
+ email: "<sensu-users@googlegroups.com>"
191
+ executables: []
168
192
  extensions: []
169
193
  extra_rdoc_files: []
170
194
  files:
195
+ - CHANGELOG.md
196
+ - LICENSE
197
+ - README.md
171
198
  - bin/check-3ware-status.rb
172
199
  - bin/check-megaraid-sas-status.rb
173
200
  - bin/check-raid.rb
174
201
  - bin/check-smart-array-status.rb
175
202
  - lib/sensu-plugins-raid-checks.rb
176
- - LICENSE
177
- - README.md
178
- - CHANGELOG.md
203
+ - lib/sensu-plugins-raid-checks/version.rb
179
204
  homepage: https://github.com/sensu-plugins/sensu-plugins-raid-checks
180
205
  licenses:
181
206
  - MIT
182
- metadata: {}
183
- post_install_message:
207
+ metadata:
208
+ maintainer: "@mattyjones"
209
+ development_status: active
210
+ production_status: unstable - testing recommended
211
+ release_draft: 'false'
212
+ release_prerelease: 'false'
213
+ post_install_message: You can use the embedded Ruby by setting EMBEDDED_RUBY=true
214
+ in /etc/default/sensu
184
215
  rdoc_options: []
185
216
  require_paths:
186
217
  - lib
187
218
  required_ruby_version: !ruby/object:Gem::Requirement
188
219
  requirements:
189
- - - '>='
220
+ - - ">="
190
221
  - !ruby/object:Gem::Version
191
222
  version: 1.9.3
192
223
  required_rubygems_version: !ruby/object:Gem::Requirement
193
224
  requirements:
194
- - - '>'
225
+ - - ">="
195
226
  - !ruby/object:Gem::Version
196
- version: 1.3.1
227
+ version: '0'
197
228
  requirements: []
198
229
  rubyforge_project:
199
- rubygems_version: 2.0.14
230
+ rubygems_version: 2.4.6
200
231
  signing_key:
201
232
  specification_version: 4
202
- summary: Sensu nginx checks
233
+ summary: Sensu plugins for working with raid evices
203
234
  test_files: []
204
- has_rdoc:
metadata.gz.sig CHANGED
@@ -1,4 +1 @@
1
- fd'I7XH�h�xg��-�2��)�;
2
- �{�:�G l�!ƫL�ۚ���[��:X��;�����iZ�@d�p�dx�~��W�,�� �廕Տ�}n��\��ʀ$y���԰j1�3�#�(�
3
- ��a���Kg5�ķmL���v>`lS�S��a8͞�;�Z�ʲ�����rC�2p����UǏ�H�pŲA� �8X���<h�5h����T��?K<���q�tZ���� �j
4
- ^�v�׭��4��'+�JF��%�?
1
+ _f ދ��/`?�>�(>G��)QFSn��[P��������z�Oﭻ��M�����gbGh#[