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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6f768b8820795e99e87ea3af8ed4cdae063daef728e7c121d5bf9b51a155780b
4
- data.tar.gz: b15a5dd5f1ead39e38edff158b35a1b015864c51dc1f4ac9907e1e6ac7f9e1cb
3
+ metadata.gz: 8047acf4e23279eaeccd8c815bc8066957291f396b67ffbc640b3ecc5cadfd7b
4
+ data.tar.gz: dbffe9d1733b4d17bdb30c8aafc931b2693f4a3d9d724d3a7cf38d84fbfdbff0
5
5
  SHA512:
6
- metadata.gz: cc34a4e8f82f4c4ca922c65ee35e0ce998eaea72ad5f46138c016bb5226fc1c9387712d2668727fb0305494cc009f79ed1df48586dab81b66a9ad0cbb47c4e99
7
- data.tar.gz: 9a24440d4b7d0002ccd331fb43a3c3278af279f3834adb77d17c119583acc63fda4e1af1e23873cd0fe6912a350aa104c24a69928ebc6fb16e702ad6f6040bea
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 instance as a zabbix_sender line.
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 to_senderline
204
+ def to_discodata
204
205
  disco = { 'data'=>Array.new }
205
206
  disco['data'] = @entities.to_a
206
- @value = disco.to_json
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
@@ -1,3 +1,3 @@
1
1
  module ZabbixSenderApi
2
- VERSION = "1.0.5"
2
+ VERSION = "1.0.6"
3
3
  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.5
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-08-08 00:00:00.000000000 Z
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
- rubygems_version: 3.1.2
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