zabbix-rails 0.2.4 → 0.2.5

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: d477e8482d7b336bc91a086a5b17d4623e4e6ecc3cc6e9ef86fc523fa57c97cb
4
- data.tar.gz: 20ca6fb13b28defc342218df40a2a69d1b87b6a898bced5239935158659f527f
3
+ metadata.gz: 83d29ce8108e3a961a912b374df2183d87ca82c3bc32a7740ac1776918fd1714
4
+ data.tar.gz: c95b0c117cbf172ea55798bcc49a0dec2459957a4c0060543fa0862d5ea7cd60
5
5
  SHA512:
6
- metadata.gz: e0b5ad8ce0ca98cbde47f8d3c745c400644853e8bbc4ce4f8151991da97cd3ce92f4aab0a370674dae50b78f7dd0dc003d1d1f386410d4e82620a0b16a2290b1
7
- data.tar.gz: 85a9134058479f03dd307caab468070c55d793a97efae018a0b919cca5f7de119ec97e2b6eddd623b923027e2a92f175ed6dfd85426b73ab37879c317a5d275a
6
+ metadata.gz: 20370a5a28d224ab5de353f00b0ab5ed41df9392f248d446f0eeb9767dfb00b248927752b1ad4108ecab89817da74e89561450d3358beb3a268145b14527d302
7
+ data.tar.gz: 3198490f86bcfca1976932222c48b188751879104202752479146c9591dd3036f5dc03e9241127f6acad551ad373b19317980b6e74c12482defc13f3f714c825
@@ -15,6 +15,9 @@ module Zabbix
15
15
  hostid = item[:hostid]
16
16
 
17
17
  # 封装数据之前确保设备属组已经存在
18
+ zabbix_connector.hostgroups.get_or_create_hostgroups(item.group) if item.group.present?
19
+
20
+ # 检查是否已存在监控对象
18
21
  search_id = zabbix_connector.hosts.get_id(host: item.sn)
19
22
  # 构建 zabbix-rails 监控对象数据结构,创建或者更新数据
20
23
  if hostid.present?
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Zabbix
4
- VERSION = "0.2.4"
4
+ VERSION = "0.2.5"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zabbix-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - WENWU.YAN