zfstozab 1.0.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/.gitignore +1 -0
- data/Gemfile +1 -2
- data/exe/zabbix-zfs.rb +2 -3
- data/lib/zfstozab/version.rb +1 -1
- data/zabbix-template-zfs.xml +112 -1051
- metadata +3 -4
- data/Gemfile.lock +0 -34
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0efc59e45b325151f7b404b3b00341f374a9baa9b1f758a9d7b8a15e9625c6d3
|
4
|
+
data.tar.gz: 27f2b1ff573614efb4349df0755eeca3f7b185624ec9e840f230e390c09cfe2d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c55326141b620f0e265c07455078fa25cb2feed8094aa09de0b5371a7bf8bada3fd03d8397d7df4d6ba614044d177101ae101d048c0d6cdce6d097c1d8358ab1
|
7
|
+
data.tar.gz: b9d2d2f68756f4116b0b85af522b0b4707fcd26e62a7c34e1f75bdf55080b40888d618659cdd9a252761ac0f8b5841fc9b28cc404b7228e36d1a900fd9087304
|
data/.gitignore
CHANGED
data/Gemfile
CHANGED
data/exe/zabbix-zfs.rb
CHANGED
@@ -13,13 +13,12 @@ opts = Optimist::options do
|
|
13
13
|
opt :procfsdir, "Path to the root of the zfs proc stuff", :type => :string, :default => procfsdir
|
14
14
|
opt :hostname, "Name of host being monitored",:type=>:string, :default => hostname
|
15
15
|
opt :proxy, "Proxy to send data to", :type => :string , :default => proxyaddr
|
16
|
-
opt :senderpath, "Path to zabbix_sender", :type=>:string , :default => "zabbix_sender"
|
17
16
|
opt :dump
|
18
17
|
end
|
19
18
|
|
20
19
|
zfsproc = Dir.new(opts[:procfsdir])
|
21
20
|
|
22
|
-
zabbix_sender = Zabbix::Sender::
|
21
|
+
zabbix_sender = Zabbix::Sender::Socket.new(proxy: opts[:proxy])
|
23
22
|
zabbixData = Zabbix::Sender::Batch.new(timestamp: Time.now, hostname: opts[:hostname])
|
24
23
|
|
25
24
|
|
@@ -61,5 +60,5 @@ zabbixData.addDiscovery(poolDisco)
|
|
61
60
|
if opts[:dump]
|
62
61
|
puts zabbixData.to_senderline
|
63
62
|
else
|
64
|
-
zabbix_sender.sendBatchAtomic(zabbixData)
|
63
|
+
puts zabbix_sender.sendBatchAtomic(zabbixData)
|
65
64
|
end
|
data/lib/zfstozab/version.rb
CHANGED