sensu-plugins-zfs 1.2.1 → 1.2.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: 0108f6d269c20efd7f0858ed354915502174cbf4
4
- data.tar.gz: bccab63f10b4fb6067400c4fcc955d2d24086c4a
3
+ metadata.gz: 0fbd6eb63c731fa460c8667638f295ac6db40efc
4
+ data.tar.gz: 3444bca2a13830c61fcae9fd3e6be070dd8e8ea9
5
5
  SHA512:
6
- metadata.gz: 794fee1a76a85e2dfe18f4cbbd99ee72c21f2c0f0bd47545f491e3f2360a514aaeea15b56a8073a91c5e9ccc3129a702a0f12cca1f6bfc3672d01cdb3705e6e5
7
- data.tar.gz: a01826478886bf1a0c362e04f0a4ee9a60b2bd4d9a02424e0e377fe01723d9c91cfda0c83fed240fa99890bb675b37ed55247b4ba7ebbbc6270eb225a9d81a97
6
+ metadata.gz: 5c8958feeca6031f08efbcfe9311d05c5f44f83f238423adf931244e6a0a51fada32c8b97bb52ed3521efa83f634fac4dd9109f7e4fb7ea89787b410eaa3eb78
7
+ data.tar.gz: 8d6be22858dad0e1f9358ed8bff35cfc537a7ebece5e74f82895433c57eb9060e439e4dec500790bd3e47da1b8b107645f4af2df63e78f71ff4577335ebccf5f
data/README.md CHANGED
@@ -6,12 +6,19 @@ Sensu plugin for zfs health checks.
6
6
 
7
7
  ### check-zpool.rb
8
8
 
9
- Checks if the zpool state is ONLINE and wether there has been any errors on
10
- vdevs.
9
+ This checks does the following checks against one or more zpools.
10
+
11
+ - Check state
12
+ - Check vdev errors
13
+ - Check capacity
14
+ - Check that a scrub has been run recently
15
+
16
+ The following flags can be used to configure the checks.
11
17
 
12
18
  - `-z, --zpool` What zpool to check. If omitted, we check all zpools.
13
19
  - `-c, --capacity-warn` Capacity threshold for when to warn. (default 80)
14
20
  - `-C, --capacity-crit` Capacity threshold for when to crit. (default 90)
21
+ - `-s, --scrubbing-interval` Warn when it is more than this number of days since last scrub. (default 7)
15
22
 
16
23
  ## Installation
17
24
  [Installation and setup](http://sensu-plugins.io/docs/installation_instructions.html)
@@ -25,7 +32,7 @@ I have a few ideas that would be nice:
25
32
  - [x] Check for zpool state
26
33
  - [x] Check for vdev errors
27
34
  - [x] Check for pool capacity
28
- - [ ] Check that disks have been scrubbed recently
35
+ - [x] Check that disks have been scrubbed recently
29
36
  - [ ] Metric for disk utilization
30
37
 
31
38
  Bug reports and pull requests are welcome on GitHub at https://github.com/blacksails/sensu-plugins-zfs.
@@ -1,3 +1,3 @@
1
1
  module SensuPluginsZFS
2
- VERSION = "1.2.1"
2
+ VERSION = "1.2.2"
3
3
  end
@@ -29,7 +29,7 @@ module SensuPluginsZFS
29
29
  elsif scrub_in_progress?
30
30
  return Time.now
31
31
  end
32
- Time.parse %[zpool status tank | grep '^ scan: scrub' | awk '{print $11" "$12" "$13" "$14" "$15}'].strip
32
+ Time.parse %x[sudo zpool status tank | grep '^ scan: scrub' | awk '{print $11" "$12" "$13" "$14" "$15}'].strip
33
33
  end
34
34
 
35
35
  private
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-plugins-zfs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benjamin Nørgaard
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-22 00:00:00.000000000 Z
11
+ date: 2017-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sensu-plugin
@@ -38,34 +38,6 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.14'
41
- - !ruby/object:Gem::Dependency
42
- name: rake
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: '10.0'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: '10.0'
55
- - !ruby/object:Gem::Dependency
56
- name: rspec
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - "~>"
60
- - !ruby/object:Gem::Version
61
- version: '3.0'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - "~>"
67
- - !ruby/object:Gem::Version
68
- version: '3.0'
69
41
  description: Sensu plugin for zfs
70
42
  email:
71
43
  - b@noergaard.dk