zfstozab 1.0.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
  SHA256:
3
- metadata.gz: 938a1b9dc71e67d55b24fbe28cc1201f966c965bd31a9c96962b2595716cd661
4
- data.tar.gz: dda1e7f43888b6ef9acf995030a439ca15c609915eedc2249e1716b4bbfe198c
3
+ metadata.gz: 0efc59e45b325151f7b404b3b00341f374a9baa9b1f758a9d7b8a15e9625c6d3
4
+ data.tar.gz: 27f2b1ff573614efb4349df0755eeca3f7b185624ec9e840f230e390c09cfe2d
5
5
  SHA512:
6
- metadata.gz: a98ad7e98f9867208c5cf05ed8e3ea00ed5cdea883ae1a670bd113ca58a51d0b578604bb72adedac3c450db9581ff637753477dc70c9819473a1dc5d8d82dd57
7
- data.tar.gz: 4e1c0a256bb912115e066ebdb92ede44fa3e651b7a69adc30a62ea943aa1a28b5e05e85e48ae8a0a1bb1ecccc3a61f72ef92edb7adf65c4ace2358f65668ae3a
6
+ metadata.gz: c55326141b620f0e265c07455078fa25cb2feed8094aa09de0b5371a7bf8bada3fd03d8397d7df4d6ba614044d177101ae101d048c0d6cdce6d097c1d8358ab1
7
+ data.tar.gz: b9d2d2f68756f4116b0b85af522b0b4707fcd26e62a7c34e1f75bdf55080b40888d618659cdd9a252761ac0f8b5841fc9b28cc404b7228e36d1a900fd9087304
data/.gitignore CHANGED
@@ -6,3 +6,4 @@
6
6
  /pkg/
7
7
  /spec/reports/
8
8
  /tmp/
9
+ Gemfile.lock
data/Gemfile CHANGED
@@ -3,6 +3,5 @@ source "https://rubygems.org"
3
3
  # Specify your gem's dependencies in zfstozab.gemspec
4
4
  gemspec
5
5
 
6
- gem "rake", "~> 12.0"
6
+ gem "rake"
7
7
  gem 'pry'
8
- gem 'pry-byebug'
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::Pipe.new(proxy: opts[:proxy])
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
@@ -1,3 +1,3 @@
1
1
  module Zfstozab
2
- VERSION = "1.0.1"
2
+ VERSION = "1.1.2"
3
3
  end