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_mgs-3712_snmp/template_net_zyxel_mgs-3712_snmp.yaml
parent0001c9fa70f91d94c7705304709519031709b3a1 (diff)
.........T [ZBX-19692] fixed issues with Zyxel templates
Diffstat (limited to 'templates/net/zyxel_snmp/zyxel_mgs-3712_snmp/template_net_zyxel_mgs-3712_snmp.yaml')
-rw-r--r--templates/net/zyxel_snmp/zyxel_mgs-3712_snmp/template_net_zyxel_mgs-3712_snmp.yaml47
1 files changed, 21 insertions, 26 deletions
diff --git a/templates/net/zyxel_snmp/zyxel_mgs-3712_snmp/template_net_zyxel_mgs-3712_snmp.yaml b/templates/net/zyxel_snmp/zyxel_mgs-3712_snmp/template_net_zyxel_mgs-3712_snmp.yaml
index f883259035d..d5731ef780b 100644
--- a/templates/net/zyxel_snmp/zyxel_mgs-3712_snmp/template_net_zyxel_mgs-3712_snmp.yaml
+++ b/templates/net/zyxel_snmp/zyxel_mgs-3712_snmp/template_net_zyxel_mgs-3712_snmp.yaml
@@ -1,6 +1,6 @@
zabbix_export:
version: '5.4'
- date: '2021-05-11T15:22:00Z'
+ date: '2021-07-22T14:52:27Z'
groups:
-
uuid: 36bff6c29af64692839d077febfc7079
@@ -63,7 +63,7 @@ zabbix_export:
snmp_oid: .1.3.6.1.2.1.1.4.0
key: zyxel.3712.contact
delay: 1h
- history: 2w
+ history: 7d
trends: '0'
value_type: CHAR
description: |
@@ -113,7 +113,7 @@ zabbix_export:
snmp_oid: 'discovery[{#SNMP.ARRAY},.1.3.6.1.4.1.890.1.5.8.47.1]'
key: zyxel.3712.fwversion
delay: 1h
- history: 2w
+ history: 7d
trends: '0'
value_type: CHAR
description: 'MIB: ZYXEL-MGS3712F-MIB'
@@ -156,7 +156,7 @@ zabbix_export:
snmp_oid: .1.3.6.1.2.1.1.6.0
key: zyxel.3712.location
delay: 1h
- history: 2w
+ history: 7d
trends: '0'
value_type: CHAR
description: |
@@ -180,7 +180,7 @@ zabbix_export:
snmp_oid: .1.3.6.1.2.1.2.2.1.6.1
key: zyxel.3712.mac
delay: 1h
- history: 2w
+ history: 7d
trends: '0'
value_type: CHAR
description: |
@@ -207,7 +207,7 @@ zabbix_export:
snmp_oid: .1.3.6.1.2.1.1.1.0
key: zyxel.3712.model
delay: 1h
- history: 2w
+ history: 7d
trends: '0'
value_type: CHAR
description: |
@@ -242,7 +242,7 @@ zabbix_export:
snmp_oid: .1.3.6.1.2.1.1.5.0
key: zyxel.3712.name
delay: 1h
- history: 2w
+ history: 7d
trends: '0'
value_type: CHAR
description: |
@@ -267,7 +267,7 @@ zabbix_export:
snmp_oid: .1.3.6.1.4.1.890.1.5.8.47.1.10.0
key: zyxel.3712.serialnumber
delay: 1h
- history: 2w
+ history: 7d
trends: '0'
value_type: CHAR
description: |
@@ -567,6 +567,7 @@ zabbix_export:
type: CALCULATED
key: 'zyxel.3712.net.if.in.util[{#SNMPINDEX}]'
history: 7d
+ value_type: FLOAT
units: '%'
params: 'last(//zyxel.3712.net.if.in.traffic[{#SNMPINDEX}]) * (last(//zyxel.3712.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(//zyxel.3712.net.if.highspeed[{#SNMPINDEX}]) + (last(//zyxel.3712.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100'
description: 'Interface utilization percentage'
@@ -577,6 +578,10 @@ zabbix_export:
- '0'
- '100'
error_handler: DISCARD_VALUE
+ -
+ type: JAVASCRIPT
+ parameters:
+ - 'return +parseFloat(value).toFixed(0);'
tags:
-
tag: Application
@@ -764,6 +769,7 @@ zabbix_export:
type: CALCULATED
key: 'zyxel.3712.net.if.out.util[{#SNMPINDEX}]'
history: 7d
+ value_type: FLOAT
units: '%'
params: 'last(//zyxel.3712.net.if.out.traffic[{#SNMPINDEX}]) * (last(//zyxel.3712.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(//zyxel.3712.net.if.highspeed[{#SNMPINDEX}]) + (last(//zyxel.3712.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100'
description: 'Interface utilization percentage'
@@ -774,6 +780,10 @@ zabbix_export:
- '0'
- '100'
error_handler: DISCARD_VALUE
+ -
+ type: JAVASCRIPT
+ parameters:
+ - 'return +parseFloat(value).toFixed(0);'
tags:
-
tag: Application
@@ -873,29 +883,14 @@ zabbix_export:
key: 'zyxel.3712.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:
-
@@ -903,7 +898,7 @@ zabbix_export:
operator: REGEXP
value: '.*'
status: ENABLED
- discover: DISCOVER
+ discover: NO_DISCOVER
-
uuid: 65477e8c3f8948aea5f6101b08e307cc
name: 'SFP with DDM discovery'