zabbix_manager 5.0.3 → 5.0.4
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/.idea/workspace.xml +15 -2
- data/lib/zabbix_manager/classes/items.rb +2 -1
- data/lib/zabbix_manager/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: 034a6a763df4c8337459dafae939113d20d243bb3a03edca7c53cb8f7e4735f5
|
4
|
+
data.tar.gz: 5cc9e8342583fff642f3e8190b4f92329e52076b94cc182e899bdea36ca1dda4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c70af5c6c152c2a6673fd4580038180525c88d0eb40589bf4708894fc0cb7a73e9b59daf8de101823739cceceb799cea82f87e6bc6f787457e80196e68486a28
|
7
|
+
data.tar.gz: 2ea559104053fd3b3bd5b9e6c7026062e80108dbf5861ff17ac4c0a316655be22850f082683a8292992b63afbf036ab5aa224dbd8bb85b6057bd324a140475d9
|
data/.idea/workspace.xml
CHANGED
@@ -5,7 +5,8 @@
|
|
5
5
|
</component>
|
6
6
|
<component name="ChangeListManager">
|
7
7
|
<list default="true" id="9f25f96c-828f-4aea-8886-dcbae369ba60" name="变更" comment="">
|
8
|
-
<change beforePath="$PROJECT_DIR
|
8
|
+
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
9
|
+
<change beforePath="$PROJECT_DIR$/lib/zabbix_manager/version.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/zabbix_manager/version.rb" afterDir="false" />
|
9
10
|
</list>
|
10
11
|
<option name="SHOW_DIALOG" value="false" />
|
11
12
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
@@ -46,11 +47,23 @@
|
|
46
47
|
<option name="number" value="Default" />
|
47
48
|
<option name="presentableId" value="Default" />
|
48
49
|
<updated>1646727041577</updated>
|
49
|
-
<workItem from="1646727043249" duration="
|
50
|
+
<workItem from="1646727043249" duration="3509000" />
|
51
|
+
<workItem from="1646732978147" duration="8000" />
|
50
52
|
</task>
|
51
53
|
<servers />
|
52
54
|
</component>
|
53
55
|
<component name="TypeScriptGeneratedFilesManager">
|
54
56
|
<option name="version" value="3" />
|
55
57
|
</component>
|
58
|
+
<component name="Vcs.Log.Tabs.Properties">
|
59
|
+
<option name="TAB_STATES">
|
60
|
+
<map>
|
61
|
+
<entry key="MAIN">
|
62
|
+
<value>
|
63
|
+
<State />
|
64
|
+
</value>
|
65
|
+
</entry>
|
66
|
+
</map>
|
67
|
+
</option>
|
68
|
+
</component>
|
56
69
|
</project>
|
@@ -83,7 +83,8 @@ class ZabbixManager
|
|
83
83
|
# 根据设备名称和接口名字查询监控项 | 15809 | GigabitEthernet1/0/12
|
84
84
|
def get_interface_items(hostid, name)
|
85
85
|
# 自动剔除收尾空白字串
|
86
|
-
|
86
|
+
_name = name&.gsub(%r"[^\/0-9]", "")&.strip
|
87
|
+
iface = "#{_name}("
|
87
88
|
|
88
89
|
# 模糊查询接口下所有监控项,同时过滤出特定的 snmp_oid
|
89
90
|
result = @client.api_request(
|