sensu-plugins-disk-checks 3.1.0 → 3.1.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
  SHA256:
3
- metadata.gz: 8b76a845add6f2cd9d29b9053f3e928f1e8cf86c133bc30571537535da43c92f
4
- data.tar.gz: c41d56c55ca84d4b79644051ed4dae6eb3f515ed1c8ceb0912855128d23e81bb
3
+ metadata.gz: 32daf4e8adbd5751ed21049e280eb0499cfa7f88f3bf4bc8a01df75b755b9e6a
4
+ data.tar.gz: e8d25353ec301b8d4ba62327d9ad188e084a475460bacdcdfaa1f67c27d4da2c
5
5
  SHA512:
6
- metadata.gz: feb2b7020690df95756c9ea6466a696f6e371410b278e807989a78808067e3a2076d86b7c3c3f88dfa3205f7d3dbf7cc2f654958ea068766f58e8ba24aabc150
7
- data.tar.gz: da4fe12cbbe5a8da2850c91b4fa01e8233808d6a7883dc9cc69c6a56d89008239803a351ca77a16aaa34d40312106caa1ba52b8e731c1347d084aa3e4edf9df8
6
+ metadata.gz: fd3fe5f47a232a38bc74d07f106f4e783821add812d90b233549887615ca1a261c2561b9016cb3e56c28eb6432194713b2440b59b58bd579a6291de10e172301
7
+ data.tar.gz: 9c1a8eb2bbf5e7e8b263dd51c4e652dcc5d6800885084cc47b5c24543bdfbbfd7563a531ce480107891ccaee79789b174dd11acb725992f3eb02ed8bf0687df5
data/CHANGELOG.md CHANGED
@@ -5,6 +5,13 @@ This CHANGELOG follows the format listed [here](https://github.com/sensu-plugins
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [3.1.0] - 2018-01-07
9
+ ### Fixed
10
+ - metrics-disk-capacity.rb: incorrect translation of devicenames by switching to `sub`. This differs by replacing only the first occurrence of `/dev/` as opposed to all occurrences (@nmollerup)
11
+
12
+ ### Added
13
+ - check-disk-usage: adds documentation for `-x` and `-p` options
14
+
8
15
  ## [3.1.0] - 2018-05-02
9
16
  ### Added
10
17
  - metrics-disk-capacity.rb, added `solaris` compatibility. Does not support inodes on `solaris` (@makaveli0129).
@@ -180,7 +187,8 @@ https://mathias-kettner.de/checkmk_filesystems.html
180
187
  ### Added
181
188
  - initial release
182
189
 
183
- [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-disk-checks/compare/3.1.0...HEAD
190
+ [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-disk-checks/compare/3.1.1...HEAD
191
+ [3.1.1]: https://github.com/sensu-plugins/sensu-plugins-disk-checks/compare/3.1.0...3.1.1
184
192
  [3.1.0]: https://github.com/sensu-plugins/sensu-plugins-disk-checks/compare/3.0.1...3.1.0
185
193
  [3.0.1]: https://github.com/sensu-plugins/sensu-plugins-disk-checks/compare/3.0.0...3.0.1
186
194
  [3.0.0]: https://github.com/sensu-plugins/sensu-plugins-disk-checks/compare/2.5.1...3.0.0
data/README.md CHANGED
@@ -18,6 +18,20 @@ Can adjust thresholds for larger filesystems by providing a 'magic factor'
18
18
  The `-l` option can be used in combination with the 'magic factor' to specify
19
19
  the minimum size volume to adjust the thresholds for.
20
20
 
21
+ By default all mounted filesystems are checked.
22
+
23
+ The `-x` option can be used to exclude one or more filesystem types. e.g.
24
+
25
+ check-disk-usage.rb -x debugfs,tracefs
26
+
27
+ The `-p` option can be used to exlucde specific mount points. e.g.
28
+
29
+ check-disk-usage.rb -p /run/lxcfs
30
+
31
+ It's also possible to use regular expressions with the `-x` or `-p` option
32
+
33
+ check-disk-usage.rb -p '(\/var|\/run|\/sys|\/snap)'
34
+
21
35
  Refer to [check_mk's](https://mathias-kettner.de/checkmk_filesystems.html)
22
36
  documentation on adaptive thresholds.
23
37
 
@@ -68,7 +68,7 @@ class DiskCapacity < Sensu::Plugin::Metric::CLI::Graphite
68
68
 
69
69
  timestamp = Time.now.to_i
70
70
  if fs =~ /\/dev/
71
- fs = fs.tr('/dev/', '')
71
+ fs = fs.sub('/dev/', '')
72
72
  metrics = {
73
73
  disk: {
74
74
  "#{fs}.used" => used,
@@ -95,7 +95,7 @@ class DiskCapacity < Sensu::Plugin::Metric::CLI::Graphite
95
95
 
96
96
  timestamp = Time.now.to_i
97
97
  if fs =~ /\/dev/
98
- fs = fs.tr('/dev/', '')
98
+ fs = fs.sub('/dev/', '')
99
99
  metrics = {
100
100
  disk: {
101
101
  "#{fs}.iused" => used,
@@ -2,7 +2,7 @@ module SensuPluginsDiskChecks
2
2
  module Version
3
3
  MAJOR = 3
4
4
  MINOR = 1
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: 3.1.0
4
+ version: 3.1.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: 2018-05-03 00:00:00.000000000 Z
11
+ date: 2019-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sensu-plugin
@@ -58,28 +58,28 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '0.4'
61
+ version: '1.0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '0.4'
68
+ version: '1.0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: github-markup
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '1.3'
75
+ version: '3.0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '1.3'
82
+ version: '3.0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: pry
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '10.0'
103
+ version: '12.3'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '10.0'
110
+ version: '12.3'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: redcarpet
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -170,14 +170,14 @@ description: |-
170
170
  health, usage, and various metrics.
171
171
  email: "<sensu-users@googlegroups.com>"
172
172
  executables:
173
- - check-disk-usage.rb
174
173
  - check-fstab-mounts.rb
175
- - check-smart-status.rb
176
- - check-smart-tests.rb
177
- - check-smart.rb
178
- - metrics-disk-capacity.rb
179
174
  - metrics-disk-usage.rb
175
+ - check-smart.rb
176
+ - check-smart-tests.rb
177
+ - check-disk-usage.rb
178
+ - check-smart-status.rb
180
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.7.6
222
+ rubygems_version: 3.0.2
224
223
  signing_key:
225
224
  specification_version: 4
226
225
  summary: Sensu plugins for disk checks