Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Bakaldin <alexander.bakaldin@zabbix.com>2021-07-22 18:01:28 +0300
committerAlexander Bakaldin <alexander.bakaldin@zabbix.com>2021-07-22 18:01:28 +0300
commit77337a0d2e222977e902f94c8ad250e017abb87b (patch)
treeb48327069ad48bc3d2cb97998eef9ed12e04400c /templates/net/zyxel_snmp/zyxel_mgs3520-28x_snmp/template_net_zyxel_mgs3520-28x_snmp.yaml
parent0001c9fa70f91d94c7705304709519031709b3a1 (diff)
.........T [ZBX-19692] fixed issues with Zyxel templates
Diffstat (limited to 'templates/net/zyxel_snmp/zyxel_mgs3520-28x_snmp/template_net_zyxel_mgs3520-28x_snmp.yaml')
-rw-r--r--templates/net/zyxel_snmp/zyxel_mgs3520-28x_snmp/template_net_zyxel_mgs3520-28x_snmp.yaml47
1 files changed, 21 insertions, 26 deletions
diff --git a/templates/net/zyxel_snmp/zyxel_mgs3520-28x_snmp/template_net_zyxel_mgs3520-28x_snmp.yaml b/templates/net/zyxel_snmp/zyxel_mgs3520-28x_snmp/template_net_zyxel_mgs3520-28x_snmp.yaml
index 8f9637e1a72..f594747fd49 100644
--- a/templates/net/zyxel_snmp/zyxel_mgs3520-28x_snmp/template_net_zyxel_mgs3520-28x_snmp.yaml
+++ b/templates/net/zyxel_snmp/zyxel_mgs3520-28x_snmp/template_net_zyxel_mgs3520-28x_snmp.yaml
@@ -1,6 +1,6 @@
zabbix_export:
version: '5.4'
- date: '2021-05-11T15:22:23Z'
+ date: '2021-07-22T14:52:56Z'
groups:
-
uuid: 36bff6c29af64692839d077febfc7079
@@ -66,7 +66,7 @@ zabbix_export:
snmp_oid: .1.3.6.1.2.1.1.4.0
key: zyxel.3520_28.contact
delay: 1h
- history: 2w
+ history: 7d
trends: '0'
value_type: CHAR
description: |
@@ -116,7 +116,7 @@ zabbix_export:
snmp_oid: .1.3.6.1.4.1.890.1.15.3.1.6.0
key: zyxel.3520_28.fwversion
delay: 1h
- history: 2w
+ history: 7d
trends: '0'
value_type: CHAR
description: 'MIB: ZYXEL-ES-COMMON'
@@ -146,7 +146,7 @@ zabbix_export:
snmp_oid: .1.3.6.1.2.1.1.6.0
key: zyxel.3520_28.location
delay: 1h
- history: 2w
+ history: 7d
trends: '0'
value_type: CHAR
description: |
@@ -170,7 +170,7 @@ zabbix_export:
snmp_oid: .1.3.6.1.2.1.2.2.1.6.1
key: zyxel.3520_28.mac
delay: 1h
- history: 2w
+ history: 7d
trends: '0'
value_type: CHAR
description: |
@@ -218,7 +218,7 @@ zabbix_export:
snmp_oid: .1.3.6.1.2.1.1.1.0
key: zyxel.3520_28.model
delay: 1h
- history: 2w
+ history: 7d
trends: '0'
value_type: CHAR
description: |
@@ -253,7 +253,7 @@ zabbix_export:
snmp_oid: .1.3.6.1.2.1.1.5.0
key: zyxel.3520_28.name
delay: 1h
- history: 2w
+ history: 7d
trends: '0'
value_type: CHAR
description: |
@@ -278,7 +278,7 @@ zabbix_export:
snmp_oid: .1.3.6.1.4.1.890.1.15.3.1.12.0
key: zyxel.3520_28.serialnumber
delay: 1h
- history: 2w
+ history: 7d
trends: '0'
value_type: CHAR
description: |
@@ -578,6 +578,7 @@ zabbix_export:
type: CALCULATED
key: 'zyxel.3520_28.net.if.in.util[{#SNMPINDEX}]'
history: 7d
+ value_type: FLOAT
units: '%'
params: 'last(//zyxel.3520_28.net.if.in.traffic[{#SNMPINDEX}]) * (last(//zyxel.3520_28.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(//zyxel.3520_28.net.if.highspeed[{#SNMPINDEX}]) + (last(//zyxel.3520_28.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100'
description: 'Interface utilization percentage'
@@ -588,6 +589,10 @@ zabbix_export:
- '0'
- '100'
error_handler: DISCARD_VALUE
+ -
+ type: JAVASCRIPT
+ parameters:
+ - 'return +parseFloat(value).toFixed(0);'
tags:
-
tag: Application
@@ -775,6 +780,7 @@ zabbix_export:
type: CALCULATED
key: 'zyxel.3520_28.net.if.out.util[{#SNMPINDEX}]'
history: 7d
+ value_type: FLOAT
units: '%'
params: 'last(//zyxel.3520_28.net.if.out.traffic[{#SNMPINDEX}]) * (last(//zyxel.3520_28.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(//zyxel.3520_28.net.if.highspeed[{#SNMPINDEX}]) + (last(//zyxel.3520_28.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100'
description: 'Interface utilization percentage'
@@ -785,6 +791,10 @@ zabbix_export:
- '0'
- '100'
error_handler: DISCARD_VALUE
+ -
+ type: JAVASCRIPT
+ parameters:
+ - 'return +parseFloat(value).toFixed(0);'
tags:
-
tag: Application
@@ -891,29 +901,14 @@ zabbix_export:
key: 'zyxel.3520_28.net.if.in.util[{#SNMPINDEX}]'
overrides:
-
- name: 'Trigger disabled'
+ name: 'Don''t create triggers for matching interface'
step: '1'
filter:
conditions:
-
macro: '{#ZYXEL.IF.NAME}'
- value: '.*'
- formulaid: A
- operations:
- -
- operationobject: TRIGGER_PROTOTYPE
- operator: REGEXP
- value: '.*'
- status: ENABLED
- discover: NO_DISCOVER
- -
- name: 'Trigger enabled'
- step: '2'
- filter:
- conditions:
- -
- macro: '{#ZYXEL.IF.NAME}'
value: '{$ZYXEL.LLD.FILTER.IF.CONTROL.MATCHES}'
+ operator: NOT_MATCHES_REGEX
formulaid: A
operations:
-
@@ -921,7 +916,7 @@ zabbix_export:
operator: REGEXP
value: '.*'
status: ENABLED
- discover: DISCOVER
+ discover: NO_DISCOVER
-
uuid: c313274b317c42cab5b7dd3c88d0c14b
name: 'SFP with DDM discovery'