sensu-plugins-disk-checks 2.5.0 → 2.5.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
- SHA1:
3
- metadata.gz: 6e2270b4f0e3f5a79f427d625af1c3bc5bc08e0e
4
- data.tar.gz: 2093789afcdb4cdea74ae511a8cbc3f206d0d62c
2
+ SHA256:
3
+ metadata.gz: 3dcdf8a494bf31a521ed81f321701776a0787fe4f6904daace173daf3f9189ef
4
+ data.tar.gz: c6d016ba7250007408f4aacd211f423f2a00d65e3fceaef5fb48793883f5461f
5
5
  SHA512:
6
- metadata.gz: 3f44ad37fc75fa5cd63db38d76e8765495b751e315b41add5721dc70574f90ab4aae86142829c855066c73881c14fc052a4fd0fce8f55ec04d274480d586c2fd
7
- data.tar.gz: 8aec7d6c80cf117ece7a9a41d4c96e7389d2a943b6dce88f80d55bb31c18d98be37356584af64f047da9c9b3009e7b7852cbef2883d32d16187b603a88b4d624
6
+ metadata.gz: e4b25651b43fb6a432bc92a6388307e8ef1f492e187049d86a5461cae608d764b64010d53c6f0fa3886b5667c3edc9769343257640f46a244a6f9cbf9f288945
7
+ data.tar.gz: f27e711a3201bfe66288a8e5c95e02223c4080706814cf19ef0d6086c7244334d06123dc7d9477da89ebbdaafa65f903eb134a55c2ddfba108ca5a410e259394
data/CHANGELOG.md CHANGED
@@ -5,6 +5,10 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [2.5.1] - 2017-12-05
9
+ ### Fixed
10
+ - check-disk-usage.rb: now exits unknown instead of critical when retrieving mountpoints fail
11
+
8
12
  ## [2.5.0] - 2017-08-28
9
13
  ### Changed
10
14
  - check-smart.rb: The JSON file is now does not need to exist (@ChrisPortman)
@@ -156,7 +160,8 @@ https://mathias-kettner.de/checkmk_filesystems.html
156
160
  ### Added
157
161
  - initial release
158
162
 
159
- [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-disk-checks/compare/2.5.0...HEAD
163
+ [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-disk-checks/compare/2.5.1...HEAD
164
+ [2.5.1]: https://github.com/sensu-plugins/sensu-plugins-disk-checks/compare/2.5.0...2.5.1
160
165
  [2.5.0]: https://github.com/sensu-plugins/sensu-plugins-disk-checks/compare/2.4.2...2.5.0
161
166
  [2.4.2]: https://github.com/sensu-plugins/sensu-plugins-disk-checks/compare/2.4.1...2.4.2
162
167
  [2.4.1]: https://github.com/sensu-plugins/sensu-plugins-disk-checks/compare/2.4.0...2.4.1
@@ -118,7 +118,12 @@ class CheckDisk < Sensu::Plugin::Check::CLI
118
118
  # Get mount data
119
119
  #
120
120
  def fs_mounts
121
- Filesystem.mounts.each do |line|
121
+ begin
122
+ mounts = Filesystem.mounts
123
+ rescue
124
+ unknown 'An error occured getting the mount info'
125
+ end
126
+ mounts.each do |line|
122
127
  begin
123
128
  next if config[:fstype] && !config[:fstype].include?(line.mount_type)
124
129
  next if config[:ignoretype] && config[:ignoretype].include?(line.mount_type)
@@ -2,7 +2,7 @@ module SensuPluginsDiskChecks
2
2
  module Version
3
3
  MAJOR = 2
4
4
  MINOR = 5
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: 2.5.0
4
+ version: 2.5.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: 2017-08-29 00:00:00.000000000 Z
11
+ date: 2017-12-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sensu-plugin
@@ -220,7 +220,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
220
220
  version: '0'
221
221
  requirements: []
222
222
  rubyforge_project:
223
- rubygems_version: 2.6.11
223
+ rubygems_version: 2.7.3
224
224
  signing_key:
225
225
  specification_version: 4
226
226
  summary: Sensu plugins for disk checks