sensu-plugins-zfs 0.2.0 → 0.2.1

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: 75099d0d49813e9f02299006c073b45eb09333de
4
- data.tar.gz: 2825ef35fe4d24f17206a33fc57e705e52061430
3
+ metadata.gz: 8a62d800a0a7f7693b74c97b32efee59200fd796
4
+ data.tar.gz: 98140f27d0b7eb482790aaf43340af6c15120139
5
5
  SHA512:
6
- metadata.gz: 58388bb2e8d140aa988f9680e73335e0305a1ed48a311079f7e39c94d354970675629c807b1916fa07ab0e8ed878a8b61a955151de09d1bb0fda2d8c5578e906
7
- data.tar.gz: e8acbc08e9e2f88e743e43969c40125d772a8bf4263375f196a33dca9de2f8751958ae6e4bd239afdd6a2936bbdc9467fcdeae22a8347b89b74336c6ebab08a6
6
+ metadata.gz: 586f510d1d5e32bc0d6ff35eca56746ebb817d2f1684814b8cd2491db4d061d1f2dc71e6dd7b338579eadaccefdcd4ae3caefbc91ae526f3264dc35fd11cd42a
7
+ data.tar.gz: c86fce482e28291c441c128fd6961646affdc09f06df57c911234cea615b4e89588ea23dd120335b9c1b2e8bff7bd2a6b71fe4f3808c306d102645488178e2d1
data/bin/check-zpool.rb CHANGED
@@ -7,7 +7,7 @@ class CheckZPool < Sensu::Plugin::Check::CLI
7
7
  def run
8
8
  zpool = SensuPluginsZFS::ZPool.new
9
9
  state = zpool.state
10
- message = "zpool state is #{state}"
10
+ message "zpool state is #{state}"
11
11
  if state == "ONLINE"
12
12
  ok
13
13
  else
@@ -1,3 +1,3 @@
1
1
  module SensuPluginsZFS
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
@@ -1,7 +1,7 @@
1
1
  module SensuPluginsZFS
2
2
  class ZPool
3
3
  def state
4
- %x[zpool status | grep '^ state: ' | cut -d ' ' -f 3]
4
+ %x[zpool status | grep '^ state: ' | cut -d ' ' -f 3].strip
5
5
  end
6
6
  end
7
7
  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: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benjamin Nørgaard