sensu-plugins-disk-checks 2.0.0 → 2.0.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
  SHA1:
3
- metadata.gz: e9e27d97d82cd497c6fe1fc5b96945f2b6c81aa5
4
- data.tar.gz: 207be7ea90fcd64d563cc74779e396b4c2a1c64a
3
+ metadata.gz: 1017c60b1c58d6bce40c4aeae7d8ae5f5df1d202
4
+ data.tar.gz: 7bb82598df6b65ae47fdf45aa0fe91099c1756aa
5
5
  SHA512:
6
- metadata.gz: 762876c2a66994b5de9d54455971acee350c91bcf91aba7fd00bee398c112113c90bd0d265799f8cec34fbf40a3ebb9ccc0583b1af2093aab4eedcbc1f86270a
7
- data.tar.gz: c9a35497d489ad4cc1b5c133b9f37a5a68f5398a142bbdcb1fe2bcb0cffaedb39eab21fbf120c9138b892261f1b14edadcb99e75db584cf4eb62772909a4963c
6
+ metadata.gz: 9fd0746371815af81bcbb2b31540e81642d2d341b5f33459d6724f1e94bea3771e48d230f0a3040fcdf7a5d91d5698c2a5c5bbb1d2d7529c7dbb81a214e81171
7
+ data.tar.gz: 7dab0601b071ad0ed8abe2edbefc4775e24b580096b2f8be4e0af14a1ce43a111752c6e2d272bc91808aeb52a1ea5e1fd8065b6534621b10407f33b9bb676792
@@ -5,7 +5,11 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
- ## [2.0.0]
8
+ ## [2.0.1] - 2016-06-15
9
+ ### Fixed
10
+ - metrics-disk-capacity.rb: fixed invalid string matching with =~ operator
11
+
12
+ ## [2.0.0] - 2016-06-14
9
13
  ### Changed
10
14
  - Updated Rubocop to 0.40, applied auto-correct.
11
15
  - metrics-disk.rb: Now using sysfs instead of lsblk for translating device mapper numbers to names
@@ -106,7 +110,8 @@ https://mathias-kettner.de/checkmk_filesystems.html
106
110
  ### Added
107
111
  - initial release
108
112
 
109
- [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-disk-checks/compare/2.0.0...HEAD
113
+ [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-disk-checks/compare/2.0.1...HEAD
114
+ [2.0.1]: https://github.com/sensu-plugins/sensu-plugins-disk-checks/compare/2.0.0...2.0.1
110
115
  [2.0.0]: https://github.com/sensu-plugins/sensu-plugins-disk-checks/compare/1.1.3...2.0.0
111
116
  [1.1.3]: https://github.com/sensu-plugins/sensu-plugins-disk-checks/compare/1.1.2...1.1.3
112
117
  [1.1.2]: https://github.com/sensu-plugins/sensu-plugins-disk-checks/compare/1.1.1...1.1.2
@@ -63,7 +63,7 @@ class DiskCapacity < Sensu::Plugin::Metric::CLI::Graphite
63
63
  fs, _type, _blocks, used, avail, capacity, _mnt = line.split
64
64
 
65
65
  timestamp = Time.now.to_i
66
- if fs =~ '/dev'
66
+ if fs =~ /\/dev/
67
67
  fs = fs.gsub('/dev/', '')
68
68
  metrics = {
69
69
  disk: {
@@ -89,7 +89,7 @@ class DiskCapacity < Sensu::Plugin::Metric::CLI::Graphite
89
89
  fs, _inodes, used, avail, capacity, _mnt = line.split
90
90
 
91
91
  timestamp = Time.now.to_i
92
- if fs =~ '/dev'
92
+ if fs =~ /\/dev/
93
93
  fs = fs.gsub('/dev/', '')
94
94
  metrics = {
95
95
  disk: {
@@ -2,7 +2,7 @@ module SensuPluginsDiskChecks
2
2
  module Version
3
3
  MAJOR = 2
4
4
  MINOR = 0
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.0.0
4
+ version: 2.0.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: 2016-06-14 00:00:00.000000000 Z
11
+ date: 2016-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sensu-plugin