zabbix_sender_api 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/zabbix_sender_api/api.rb +10 -3
- data/lib/zabbix_sender_api/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8047acf4e23279eaeccd8c815bc8066957291f396b67ffbc640b3ecc5cadfd7b
|
4
|
+
data.tar.gz: dbffe9d1733b4d17bdb30c8aafc931b2693f4a3d9d724d3a7cf38d84fbfdbff0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c4f066506376ef8ac762775b67ef5f37d5bf211583cea9121b3566512b0ddda64b8df94bdadb61d5a17ff095d64c169d13aed7a9c719499883a0bad2d56d437
|
7
|
+
data.tar.gz: 540dcdcadcc73689eccfe0a0b4256ef34cf6e91ff60eaad9a8132c51eb8c123f1034691344dc2b91f0a534ce8af0b4e5afdc2f1afb95cef289416cf8122da262
|
@@ -198,12 +198,19 @@ class Discovery < ItemData
|
|
198
198
|
@entities.add(zabbified)
|
199
199
|
end
|
200
200
|
##
|
201
|
-
# Render this discovery
|
201
|
+
# Render this discovery as the structure an external discovery script should return. You can use this
|
202
|
+
# if you're writing custom external discovery logic
|
202
203
|
#
|
203
|
-
def
|
204
|
+
def to_discodata
|
204
205
|
disco = { 'data'=>Array.new }
|
205
206
|
disco['data'] = @entities.to_a
|
206
|
-
|
207
|
+
return disco.to_json
|
208
|
+
end
|
209
|
+
##
|
210
|
+
# Render this discovery instance as a zabbix_sender line.
|
211
|
+
#
|
212
|
+
def to_senderline
|
213
|
+
@value = self.to_discodata
|
207
214
|
super
|
208
215
|
end
|
209
216
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zabbix_sender_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dave Parker
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-12-16 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: This gem describes an api to the zabbix sender facility. It saves tons
|
14
14
|
of hassle when you're cranking out custom polling logic
|
@@ -58,7 +58,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
58
58
|
- !ruby/object:Gem::Version
|
59
59
|
version: '0'
|
60
60
|
requirements: []
|
61
|
-
|
61
|
+
rubyforge_project:
|
62
|
+
rubygems_version: 2.7.6
|
62
63
|
signing_key:
|
63
64
|
specification_version: 4
|
64
65
|
summary: Ruby frontend to the zabbix_sender command line tool
|