zabbix_sender_api 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 735a9614074e16380ab7d139fc9a06cf6e4095ad765757458a392226976f0e54
4
- data.tar.gz: 419cd69eb0abfd3523dc10466fccdf8361341aa1e2a23f4e701114830be747d5
3
+ metadata.gz: c9123c68e858ea0ee8e481034932ed7f65d0d79bdaffa5cd4184b6aabb6b244c
4
+ data.tar.gz: 5be57097f6cf6b07ad00228b45646503ab0e330cecafc09406e3946835234bcd
5
5
  SHA512:
6
- metadata.gz: f549209f14df37a878454f539c7cee19c505010e919c31ba10e7a163b062e3b4f167ee775fc627a845672fbe99dfd0285bcdb26057cbe54a99c8b495d55ff922
7
- data.tar.gz: 0b362402db258d1e2f297b243521e9a3e02c2a1573fec8c095470eb9abe5ea2c4d36095e0d8bcc216baae30b45fdd670470c7f951a55f6cb65bbbdbefda7b244
6
+ metadata.gz: ccdd494c7326f82150dfce5f7296bcc51b8e337b43349339482ed5eadd8ddd1fc4bddafd3ff11b2fab369730c68b573efbceb2a53b8eb31fd58c871726e2a2d5
7
+ data.tar.gz: d4aa26a9b716fe8231f2a8d6bb4b457c6fc32100c8c1dc5f7c5095a3f03c5bb48f000568b90fb64c2d0cda1792f66f295708fb7dd99282c370d08cc4b94a9166
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  This gem describes an api that takes some of the drudgery out of the task of putting together bulk data for the zabbix_sender utility.
4
4
 
5
- Detailed documentation for this library is at [rubydoc.info](https://rubydoc.info/gems/zabbix_sender_ap)
5
+ **Detailed documentation for this library is at [rubydoc.info](https://rubydoc.info/gems/zabbix_sender_api)**
6
6
 
7
7
  zabbix_sender is a command line utility for sending monitoring data to Zabbix server or proxy. On the Zabbix server an item of type Zabbix trapper should be created with corresponding key.
8
8
 
@@ -43,11 +43,11 @@ It is analogous to:
43
43
  #!/usr/bin/env ruby
44
44
  require 'zabbix_sender_api'
45
45
 
46
- sender = Zabbix::Sender.new
46
+ sender = Zabbix::Sender::Pipe.new
47
47
 
48
48
  rawdata = { :myFirstKey => 0, :mySecondKey => 100 }
49
49
 
50
- data = Zabbix::Batch.new
50
+ data = Zabbix::Sender::Batch.new
51
51
 
52
52
  rawdata.each_pair {|key,value|
53
53
  data.addItemData(key: key,value: value)
@@ -69,7 +69,7 @@ puts data.to_senderinput
69
69
  To do low level discovery:
70
70
 
71
71
  ```ruby
72
- disco = Zabbix::Discovery.new(key: 'discoveryRuleKey')
72
+ disco = Zabbix::Sender::Discovery.new(key: 'discoveryRuleKey')
73
73
 
74
74
  disco.add_entity(:SOMEUSEFULVALUE => 'aValue', :ANOTHERONE => 'somethingElse')
75
75
 
@@ -1,3 +1,3 @@
1
1
  module ZabbixSenderApi
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zabbix_sender_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dave Parker