sensu-plugins-disk-checks 1.1.1 → 1.1.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: ca1f489d19e5cd505804b937977b55c4cae971e4
4
- data.tar.gz: 849c9e7a6f4c61a8ed624aebe65b14c5d1818c70
3
+ metadata.gz: 622f5bf2da931ca722782ea642a949686e732b58
4
+ data.tar.gz: 9cd1be8138f58bee6a9ba0a7bf4bc09f0a72dce7
5
5
  SHA512:
6
- metadata.gz: 3b3bc566147a31e5f83b515b42e208522af3821c60f306ed55059706924f2e0c381d36f8de5071c436bcfe7916b87143ae26bd8a249b988e5fff682ba4130d97
7
- data.tar.gz: e4139b62a0859280342d69d3c297d3a8c578864f898aa9bcacf95b7b79cba2f7e150b5755057f408c1f58738678bcdc5686dffaceabe6ca5b89294b2d3297ce0
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
- ## Fixed
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
 
@@ -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 excatly this '\
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
@@ -2,7 +2,7 @@ module SensuPluginsDiskChecks
2
2
  module Version
3
3
  MAJOR = 1
4
4
  MINOR = 1
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.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-11 00:00:00.000000000 Z
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