sensu-plugins-zfs 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 +4 -4
- data/bin/check-zpool.rb +2 -2
- data/lib/sensu-plugins-zfs/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 183780cd78d850ca4df74099c6ab32d80adfa824
|
4
|
+
data.tar.gz: e6c302360c0f34ad209e0fefb30f563ae5c068bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db7d9d2caaba44d9cf2d85d5e30a8a321c2fe1d33df155c67fefa40a688383d866682e8ff644f0adb9692e8d053cbe5fca2802225824c836912989ea49e570b5
|
7
|
+
data.tar.gz: b533ad3959a7ece387e7d15b8f61c0cb771411c35647cdf360e6419b2d9a06ea7f28d4d3dd7df6a4b7cf10ae5b0b19446721916fda3cc744a6e1e6552795cf8b
|
data/bin/check-zpool.rb
CHANGED
@@ -56,9 +56,9 @@ class CheckZPool < Sensu::Plugin::Check::CLI
|
|
56
56
|
end
|
57
57
|
|
58
58
|
def check_capacity(zp)
|
59
|
-
if zp.capacity > config[:cap_crit]
|
59
|
+
if zp.capacity > config[:cap_crit].to_i
|
60
60
|
critical "capacity for zpool #{zp.name} is above #{config[:cap_crit]}% (currently #{zp.capacity}%)"
|
61
|
-
elsif zp.capacity > config[:
|
61
|
+
elsif zp.capacity > config[:cap_warn].to_i
|
62
62
|
warning "capacity for zpool #{zp.name} is above #{config[:cap_warn]}% (currently #{zp.capacity}%)"
|
63
63
|
end
|
64
64
|
end
|