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 +4 -4
- data/CHANGELOG.md +7 -2
- data/bin/metrics-disk-capacity.rb +2 -2
- data/lib/sensu-plugins-disk-checks/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1017c60b1c58d6bce40c4aeae7d8ae5f5df1d202
|
4
|
+
data.tar.gz: 7bb82598df6b65ae47fdf45aa0fe91099c1756aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9fd0746371815af81bcbb2b31540e81642d2d341b5f33459d6724f1e94bea3771e48d230f0a3040fcdf7a5d91d5698c2a5c5bbb1d2d7529c7dbb81a214e81171
|
7
|
+
data.tar.gz: 7dab0601b071ad0ed8abe2edbefc4775e24b580096b2f8be4e0af14a1ce43a111752c6e2d272bc91808aeb52a1ea5e1fd8065b6534621b10407f33b9bb676792
|
data/CHANGELOG.md
CHANGED
@@ -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.
|
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.
|
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 =~
|
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 =~
|
92
|
+
if fs =~ /\/dev/
|
93
93
|
fs = fs.gsub('/dev/', '')
|
94
94
|
metrics = {
|
95
95
|
disk: {
|
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.
|
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-
|
11
|
+
date: 2016-06-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sensu-plugin
|