zabbix_sender_api 1.0.2 → 1.0.3
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 +4 -4
- data/README.md +4 -4
- data/lib/zabbix_sender_api/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c9123c68e858ea0ee8e481034932ed7f65d0d79bdaffa5cd4184b6aabb6b244c
|
4
|
+
data.tar.gz: 5be57097f6cf6b07ad00228b45646503ab0e330cecafc09406e3946835234bcd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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/
|
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
|
|