sensu-plugins-zfs 1.1.1 → 1.1.2

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: 410f4afebc46d4d9b8b7ad6a24331d497246200d
4
- data.tar.gz: 2f3c32f1ee94ee9a50381f746facb2c3d2edd54b
3
+ metadata.gz: 183780cd78d850ca4df74099c6ab32d80adfa824
4
+ data.tar.gz: e6c302360c0f34ad209e0fefb30f563ae5c068bc
5
5
  SHA512:
6
- metadata.gz: 456cfb0b6dd56e8bf13a8aecb2f93fb978f22e7c74c9e40fa522c9a00fd8be7cedc3b809dce9f02581c3cb0152af2e2dd6e20e6b6a0c57d9db7a7900848f6a2a
7
- data.tar.gz: 869413be2003390d911e95436c11d7a7040725ebb60c2d89604b471e0ea92c53ac5e22e50ada2a361200d03e4f16907c23fb455aece1ff8ecf7c683211a31828
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[:cap_crit]
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
@@ -1,3 +1,3 @@
1
1
  module SensuPluginsZFS
2
- VERSION = "1.1.1"
2
+ VERSION = "1.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-plugins-zfs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benjamin Nørgaard