sensu-plugins-disk-checks 1.0.1 → 1.0.2

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: 090326321fc667c6724365dda7763495ae18cbf1
4
- data.tar.gz: 18e8b4d4ead569f1b6c5a2fddca2f91c7193c3fd
3
+ metadata.gz: 2128f9ac86a11db57c3c29eb2108ed2e3c4b8989
4
+ data.tar.gz: 991a1ca89514c39e1e893f04606c2863031cfb93
5
5
  SHA512:
6
- metadata.gz: c3952d25e7d61ae5751a7bb85801d1dcf7dfe21f3ecd7cec2690998fdbac818b7d1654f21f07c7ebae0b981d4fb56a7aeb3c5672f8b69fe63653ace2ad56b369
7
- data.tar.gz: d759d67884ef877d589f40d885dc7620456be0645361ba7cae641ddaf5bfc6afe1a84b4063297db99f962ddcc72e9d5204dc8544b19c098248ff3979b2d4552f
6
+ metadata.gz: 382cdbf84b139b3569dd86b5b78fa82aa5595559156fdb391de1a106ac4bbc6e6a216006f752a5fa3f23c3eb2057838a3bb22b443fd3fbbe52c469022c84bd42
7
+ data.tar.gz: 206c818747e1fb194efbc0e70b11103e89686f32d99c4714d7778676da34d7030dcc552134e8939dea7f10d27e73e80d285892febbb7c328a15fc3c0a8ab28bc
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -3,7 +3,12 @@ This project adheres to [Semantic Versioning](http://semver.org/).
3
3
 
4
4
  This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachangelog.com/)
5
5
 
6
- ## Unreleased][unreleased]
6
+ ## [Unreleased][unreleased]
7
+ - nothing
8
+
9
+ ## [1.0.2] - 2015-08-04
10
+ ### Changed
11
+ - general cleanup
7
12
 
8
13
  ## [1.0.1] - 2015-07-14
9
14
  ### Changed
@@ -12,7 +17,7 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
12
17
  ##[1.0.0] - 2015-07-05
13
18
  ### Changed
14
19
  - changed metrics filenames to conform to std
15
- - updated Rakfile to remove cruft
20
+ - updated Rakefile to remove cruft
16
21
  - updated documentation links in README and CONTRIBUTING
17
22
  - updated gemspec to put deps in alpha order
18
23
 
@@ -30,9 +35,7 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
30
35
  ## [0.0.2] - 2015-04-21
31
36
  ### Fixed
32
37
  - deployment issue
33
-
38
+
34
39
  ## [0.0.1] - 2015-04-21
35
40
  ### Added
36
41
  - initial release
37
-
38
-
data/README.md CHANGED
@@ -92,4 +92,3 @@ This is a sample input file used by check-smart-status, see the script for furth
92
92
  [Installation and Setup](http://sensu-plugins.io/docs/installation_instructions.html)
93
93
 
94
94
  ## Notes
95
-
@@ -13,7 +13,7 @@
13
13
  # http://en.wikipedia.org/wiki/S.M.A.R.T.#cite_note-kingston1-32
14
14
  # http://media.kingston.com/support/downloads/MKP_306_SMART_attribute.pdf
15
15
  #
16
- # I tested on several Seagate, WesternDigital hdd and Cosair force Gt SSD
16
+ # I tested on several Seagate, Western Digital hdd and Cosair force Gt SSD
17
17
  #
18
18
  # It is possible some hdd give strange attribute values and warnings based on it
19
19
  # but in this case simply define attribute list with '-a' parameter
@@ -38,7 +38,7 @@
38
38
  #
39
39
  # USAGE:
40
40
  # You need to add 'sensu' user to suduers or you can't use 'smartctl'
41
- # sensu ALL=(ALL) NOPASSWD:ALL
41
+ # sensu ALL=(ALL) NOPASSWD:/usr/sbin/smartctl
42
42
  #
43
43
  # PARAMETERS:
44
44
  # -b: smartctl binary to use, in case you hide yours (default: /usr/sbin/smartctl)
@@ -227,7 +227,7 @@ class SmartCheckStatus < Sensu::Plugin::Check::CLI
227
227
 
228
228
  # find all devices from /proc/partitions or from parameter
229
229
  #
230
- def find_devices # rubocop:disable all
230
+ def find_devices
231
231
  # Return parameter value if it's defined
232
232
  return config[:devices].split(',') unless config[:devices] == 'all'
233
233
 
data/bin/check-smart.rb CHANGED
@@ -108,11 +108,8 @@ class CheckSMART < Sensu::Plugin::Check::CLI
108
108
 
109
109
  # Main function
110
110
  #
111
- def run # rubocop:disable all
112
- # #YELLOW
113
- unless @devices.length > 0 # rubocop:disable IfUnlessModifier
114
- unknown 'No SMART capable devices found'
115
- end
111
+ def run
112
+ unknown 'No SMART capable devices found' unless @devices.length > 0
116
113
 
117
114
  unhealthy_disks = @devices.select { |disk| disk.smart_capable? && !disk.healthy? }
118
115
  unknown_disks = @devices.reject(&:smart_capable?)
@@ -39,7 +39,7 @@ class DiskCapacity < Sensu::Plugin::Metric::CLI::Graphite
39
39
  option :scheme,
40
40
  description: 'Metric naming scheme, text to prepend to .$parent.$child',
41
41
  long: '--scheme SCHEME',
42
- default: "#{Socket.gethostname}.disk"
42
+ default: "#{Socket.gethostname}"
43
43
 
44
44
  # Unused ?
45
45
  #
@@ -48,7 +48,6 @@ class DiskCapacity < Sensu::Plugin::Metric::CLI::Graphite
48
48
  begin
49
49
  converted = Integer(value)
50
50
  values[index] = converted
51
- # #YELLOW
52
51
  rescue ArgumentError # rubocop:disable HandleExceptions
53
52
  end
54
53
  end
@@ -57,7 +56,7 @@ class DiskCapacity < Sensu::Plugin::Metric::CLI::Graphite
57
56
 
58
57
  # Main function
59
58
  #
60
- def run # rubocop:disable all
59
+ def run
61
60
  # Get capacity metrics from DF as they don't appear in /proc
62
61
  `df -PT`.split("\n").drop(1).each do |line|
63
62
  begin
@@ -92,7 +92,7 @@ class DiskUsageMetrics < Sensu::Plugin::Metric::CLI::Graphite
92
92
 
93
93
  # Main function
94
94
  #
95
- def run # rubocop:disable all
95
+ def run
96
96
  delim = config[:flatten] == true ? '_' : '.'
97
97
  # Get disk usage from df with used and avail in megabytes
98
98
  # #YELLOW
data/bin/metrics-disk.rb CHANGED
@@ -50,7 +50,7 @@ class DiskGraphite < Sensu::Plugin::Metric::CLI::Graphite
50
50
  default: false
51
51
 
52
52
  # Main function
53
- def run # rubocop:disable all
53
+ def run
54
54
  # http://www.kernel.org/doc/Documentation/iostats.txt
55
55
  metrics = %w(reads readsMerged sectorsRead readTime writes writesMerged sectorsWritten writeTime ioInProgress ioTime ioTimeWeighted)
56
56
 
@@ -2,7 +2,7 @@ module SensuPluginsDiskChecks
2
2
  module Version
3
3
  MAJOR = 1
4
4
  MINOR = 0
5
- PATCH = 1
5
+ PATCH = 2
6
6
 
7
7
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-plugins-disk-checks
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sensu-Plugins and contributors
@@ -30,7 +30,7 @@ cert_chain:
30
30
  8sHuVruarogxxKPBzlL2is4EUb6oN/RdpGx2l4254+nyR+abg//Ed27Ym0PkB4lk
31
31
  HP0m8WSjZmFr109pE/sVsM5jtOCvogyujQOjNVGN4gz1wwPr
32
32
  -----END CERTIFICATE-----
33
- date: 2015-07-14 00:00:00.000000000 Z
33
+ date: 2015-08-05 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: filesystem
@@ -178,14 +178,14 @@ dependencies:
178
178
  requirements:
179
179
  - - '='
180
180
  - !ruby/object:Gem::Version
181
- version: '0.30'
181
+ version: 0.32.1
182
182
  type: :development
183
183
  prerelease: false
184
184
  version_requirements: !ruby/object:Gem::Requirement
185
185
  requirements:
186
186
  - - '='
187
187
  - !ruby/object:Gem::Version
188
- version: '0.30'
188
+ version: 0.32.1
189
189
  - !ruby/object:Gem::Dependency
190
190
  name: yard
191
191
  requirement: !ruby/object:Gem::Requirement
@@ -200,7 +200,10 @@ dependencies:
200
200
  - - "~>"
201
201
  - !ruby/object:Gem::Version
202
202
  version: '0.8'
203
- description: Sensu plugins for disk checks
203
+ description: |-
204
+ This plugin provides native disk instrumentation
205
+ for monitoring and metrics collection, including:
206
+ health, usage, and various metrics.
204
207
  email: "<sensu-users@googlegroups.com>"
205
208
  executables:
206
209
  - metrics-disk.rb
@@ -251,7 +254,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
251
254
  version: '0'
252
255
  requirements: []
253
256
  rubyforge_project:
254
- rubygems_version: 2.4.6
257
+ rubygems_version: 2.4.8
255
258
  signing_key:
256
259
  specification_version: 4
257
260
  summary: Sensu plugins for disk checks
metadata.gz.sig CHANGED
Binary file