sensu-plugins-zfs 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -3
- data/lib/sensu-plugins-zfs/version.rb +1 -1
- data/lib/sensu-plugins-zfs/zpool.rb +1 -1
- metadata +2 -30
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0fbd6eb63c731fa460c8667638f295ac6db40efc
|
4
|
+
data.tar.gz: 3444bca2a13830c61fcae9fd3e6be070dd8e8ea9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
10
|
-
|
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
|
-
- [
|
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.
|
@@ -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.
|
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
|
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
|