sensu-plugins-disk-usage 0.0.2 → 0.0.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cc6df1fd6438b637360525a436b321ba36977a2d
4
- data.tar.gz: 3cb8d77c63e54882ebc6dbd487c887afaafe25ac
3
+ metadata.gz: ae10928d282621491ba2c9a0cae07cd37323d617
4
+ data.tar.gz: 50b97067c2f42bf57dbd8c7f3e012998b1d20052
5
5
  SHA512:
6
- metadata.gz: 709b08feecf91b5caa1db66c0afba918c20db44c160cb6860fa123f3b94a23411ceb1191311ce672d2c80596eb27da9ab7b1db96be23d6384fac9d84faea5d08
7
- data.tar.gz: b5ffc2d5ab676b6c7f7cc88ffd1d957bf1a4dc51e443c92224a40b27c9cabfdb579af63b9a87e4ad7cbb888d494eb690e74c3d48507bbb8175bf2b01afbda630
6
+ metadata.gz: 64932dc972eb3964313c951241644069c17851fb1aba94f745e7fdfc97547f3d4cf253b27dc1cd4fa13e9492c5ff396f384d1f6f5a721c1a50f693625c737156
7
+ data.tar.gz: a2225daf0581b7d3676fea69f5f1979414da731b1f3959cd3c126df0e0565bf3378714d29648dff0f9c7fea155b1afc690a3b28a264f70a7ff9f99379a666fa2
data/README.md CHANGED
@@ -45,5 +45,7 @@ JSON example:
45
45
  }
46
46
  ```
47
47
 
48
+ Ideally, you would manage the configuration file via your favourite cfgmgmt tool (e.g. Puppet).
49
+
48
50
  ## Author
49
51
  Matteo Cerutti - <matteo.cerutti@hotmail.co.uk>
@@ -108,7 +108,7 @@ class CheckDiskUsage < Sensu::Plugin::Check::CLI
108
108
  end
109
109
 
110
110
  if config[:ignore_mount].size > 0
111
- next if config[:ignore_mount].include?(fs.mount_type)
111
+ next if config[:ignore_mount].include?(fs.mount_point)
112
112
  end
113
113
 
114
114
  if config[:ignore_mount_regex].size > 0
@@ -123,7 +123,7 @@ class CheckDiskUsage < Sensu::Plugin::Check::CLI
123
123
  end
124
124
 
125
125
  if config[:mount].size > 0
126
- next unless config[:mount].include?(fs.mount_type)
126
+ next unless config[:mount].include?(fs.mount_point)
127
127
  end
128
128
 
129
129
  if config[:mount_regex].size > 0
@@ -242,7 +242,7 @@ class CheckDiskUsage < Sensu::Plugin::Check::CLI
242
242
  warning if config[:warn]
243
243
  critical
244
244
  else
245
- ok "All mountpoints (#{@mounts.join(', ')}) are OK"
245
+ ok "All filesystems (#{@mounts.join(', ')}) are OK"
246
246
  end
247
247
  end
248
248
  end
@@ -2,7 +2,7 @@ module SensuPluginsDiskUsage
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 0
5
- PATCH = 2
5
+ PATCH = 3
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-usage
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matteo Cerutti
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-29 00:00:00.000000000 Z
11
+ date: 2016-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sensu-plugin