File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ zabbix_export :
2+ version : ' 6.2'
3+ date : ' 2023-01-04T12:42:00Z'
4+ template_groups :
5+ -
6+ uuid : 882098d2241643aca4bd404e2050d515
7+ name : test
8+ templates :
9+ -
10+ uuid : fd84cfb65bce434c876e697fe0c47c94
11+ template : windows_ip_adresses
12+ name : windows_ip_adresses
13+ groups :
14+ -
15+ name : test
16+ items :
17+ -
18+ uuid : ff5fed5607cb49449215ef73b05ddaa1
19+ name : get_ips
20+ type : ZABBIX_ACTIVE
21+ key : ' wmi.getall[root\cimv2,"select ipaddress from win32_networkadapterconfiguration where IPEnabled=True"]'
22+ trends : ' 0'
23+ value_type : TEXT
24+ preprocessing :
25+ -
26+ type : JAVASCRIPT
27+ parameters :
28+ - |
29+ var output = ''
30+
31+ var parse = JSON.parse(value)
32+
33+ for (var i = 0; i < parse.length; i++) {
34+ output += parse[i]['IPAddress'][0]
35+ if (i !== parse.length-1){
36+ output += ', '
37+ }
38+ }
39+
40+ return output
41+ tags :
42+ -
43+ tag : ip_addresses
44+ value : all_ips
You can’t perform that action at this time.
0 commit comments