sensu-plugins-disk-checks 1.1.1 → 1.1.2
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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/CHANGELOG.md +5 -1
- data/bin/check-disk-usage.rb +7 -1
- data/lib/sensu-plugins-disk-checks/version.rb +1 -1
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 622f5bf2da931ca722782ea642a949686e732b58
|
|
4
|
+
data.tar.gz: 9cd1be8138f58bee6a9ba0a7bf4bc09f0a72dce7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 635831818d4b37822f3deb173d71bd6b40ae88894df25abfcb0b77dc9b3da7ef36ad17775feb0e6f0fc55ee775c75b0340ccb8eff94b06ae1426a68392cb51fa
|
|
7
|
+
data.tar.gz: c4a61d6eab601a67b5e63f59584988ba23099af05af14c3415521b37c7fa2816ec1e12e4c20c41bb6780982c0ba652fd084cb233400eee48b638b35fa9490e1d
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/CHANGELOG.md
CHANGED
|
@@ -5,8 +5,12 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
|
|
|
5
5
|
|
|
6
6
|
## Unreleased
|
|
7
7
|
|
|
8
|
+
## [1.1.2] - 2015-12-14
|
|
9
|
+
### Added
|
|
10
|
+
- check-disk-usage.rb: Add option to include only certain mount points
|
|
11
|
+
|
|
8
12
|
## [1.1.1] - 2015-12-11
|
|
9
|
-
|
|
13
|
+
### Fixed
|
|
10
14
|
- check-disk-usage.rb fails on Windows with sys-filesystem (1.1.4)
|
|
11
15
|
- bump sys-filesystem to 1.1.5
|
|
12
16
|
|
data/bin/check-disk-usage.rb
CHANGED
|
@@ -48,6 +48,11 @@ class CheckDisk < Sensu::Plugin::Check::CLI
|
|
|
48
48
|
description: 'Ignore mount point(s)',
|
|
49
49
|
proc: proc { |a| a.split(',') }
|
|
50
50
|
|
|
51
|
+
option :includemnt,
|
|
52
|
+
description: 'Include only mount point(s)',
|
|
53
|
+
short: '-I MNT[,MNT]',
|
|
54
|
+
proc: proc { |a| a.split(',') }
|
|
55
|
+
|
|
51
56
|
option :ignorepathre,
|
|
52
57
|
short: '-p PATHRE',
|
|
53
58
|
description: 'Ignore mount point(s) matching regular expression',
|
|
@@ -90,7 +95,7 @@ class CheckDisk < Sensu::Plugin::Check::CLI
|
|
|
90
95
|
|
|
91
96
|
option :normal,
|
|
92
97
|
short: '-n NORMAL',
|
|
93
|
-
description: 'Levels are not adapted for filesystems of
|
|
98
|
+
description: 'Levels are not adapted for filesystems of exactly this '\
|
|
94
99
|
'size, where levels are reduced for smaller filesystems and raised '\
|
|
95
100
|
'for larger filesystems.',
|
|
96
101
|
proc: proc(&:to_f),
|
|
@@ -120,6 +125,7 @@ class CheckDisk < Sensu::Plugin::Check::CLI
|
|
|
120
125
|
next if config[:ignoremnt] && config[:ignoremnt].include?(line.mount_point)
|
|
121
126
|
next if config[:ignorepathre] && config[:ignorepathre].match(line.mount_point)
|
|
122
127
|
next if config[:ignoreopt] && config[:ignoreopt].include?(line.options)
|
|
128
|
+
next if config[:includemnt] && !config[:includemnt].include?(line.mount_point)
|
|
123
129
|
rescue
|
|
124
130
|
unknown 'An error occured getting the mount info'
|
|
125
131
|
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.1.
|
|
4
|
+
version: 1.1.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-12-
|
|
33
|
+
date: 2015-12-15 00:00:00.000000000 Z
|
|
34
34
|
dependencies:
|
|
35
35
|
- !ruby/object:Gem::Dependency
|
|
36
36
|
name: sensu-plugin
|
metadata.gz.sig
CHANGED
|
Binary file
|