diff options
author | Alexander Bakaldin <alexander.bakaldin@zabbix.com> | 2021-07-22 18:01:28 +0300 |
---|---|---|
committer | Alexander Bakaldin <alexander.bakaldin@zabbix.com> | 2021-07-22 18:01:28 +0300 |
commit | 77337a0d2e222977e902f94c8ad250e017abb87b (patch) | |
tree | b48327069ad48bc3d2cb97998eef9ed12e04400c /templates/net/zyxel_snmp/zyxel_ies-500x_snmp | |
parent | 0001c9fa70f91d94c7705304709519031709b3a1 (diff) |
.........T [ZBX-19692] fixed issues with Zyxel templates
Diffstat (limited to 'templates/net/zyxel_snmp/zyxel_ies-500x_snmp')
-rw-r--r-- | templates/net/zyxel_snmp/zyxel_ies-500x_snmp/README.md | 6 | ||||
-rw-r--r-- | templates/net/zyxel_snmp/zyxel_ies-500x_snmp/template_net_zyxel_ies-500x_snmp.yaml | 64 |
2 files changed, 25 insertions, 45 deletions
diff --git a/templates/net/zyxel_snmp/zyxel_ies-500x_snmp/README.md b/templates/net/zyxel_snmp/zyxel_ies-500x_snmp/README.md index f30923a83f3..e402d8ffead 100644 --- a/templates/net/zyxel_snmp/zyxel_ies-500x_snmp/README.md +++ b/templates/net/zyxel_snmp/zyxel_ies-500x_snmp/README.md @@ -1,5 +1,5 @@ -# IES-500x SNMP +# ZYXEL IES-500x SNMP ## Overview @@ -91,8 +91,8 @@ There are no template links in this template. |Network_interfaces |ZYXEL IES-500x: Port {#SNMPINDEX}: Outgoing multicast packages |<p>MIB: IF-MIB</p><p>The total number of packets that higher-level protocols</p><p>requested be transmitted, and which were addressed to a</p><p>multicast address at this sub-layer, including those that</p><p>were discarded or not sent. For a MAC layer protocol, this</p><p>includes both Group and Functional addresses.</p> |SNMP |zyxel.ies500x.net.if.out.multicastpkts[{#SNMPINDEX}]<p>**Preprocessing**:</p><p>- CHANGE_PER_SECOND | |Network_interfaces |ZYXEL IES-500x: Port {#SNMPINDEX}: Outgoing broadcast packages |<p>MIB: IF-MIB</p><p>The total number of packets that higher-level protocols</p><p>requested be transmitted, and which were addressed to a</p><p>broadcast address at this sub-layer, including those that</p><p>were discarded or not sent.</p> |SNMP |zyxel.ies500x.net.if.out.broadcastpkts[{#SNMPINDEX}]<p>**Preprocessing**:</p><p>- CHANGE_PER_SECOND | |Network_interfaces |ZYXEL IES-500x: Port {#SNMPINDEX}: Link speed |<p>MIB: IF-MIB</p><p>An estimate of the interface's current bandwidth in bits per second</p> |SNMP |zyxel.ies500x.net.if.highspeed[{#SNMPINDEX}]<p>**Preprocessing**:</p><p>- MULTIPLIER: `1000000`</p><p>- DISCARD_UNCHANGED_HEARTBEAT: `6h`</p> | -|Network_interfaces |ZYXEL IES-500x: Port {#SNMPINDEX}: Incoming utilization |<p>Interface utilization percentage</p> |CALCULATED |zyxel.ies500x.net.if.in.util[{#SNMPINDEX}]<p>**Preprocessing**:</p><p>- IN_RANGE: `0 100`</p><p>⛔️ON_FAIL: `DISCARD_VALUE -> `</p><p>**Expression**:</p>`last(zyxel.ies500x.net.if.in.traffic[{#SNMPINDEX}]) * (last(zyxel.ies500x.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(zyxel.ies500x.net.if.highspeed[{#SNMPINDEX}]) + (last(zyxel.ies500x.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100 ` | -|Network_interfaces |ZYXEL IES-500x: Port {#SNMPINDEX}: Outgoing utilization |<p>Interface utilization percentage</p> |CALCULATED |zyxel.ies500x.net.if.out.util[{#SNMPINDEX}]<p>**Preprocessing**:</p><p>- IN_RANGE: `0 100`</p><p>⛔️ON_FAIL: `DISCARD_VALUE -> `</p><p>**Expression**:</p>`last(zyxel.ies500x.net.if.out.traffic[{#SNMPINDEX}]) * (last(zyxel.ies500x.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(zyxel.ies500x.net.if.highspeed[{#SNMPINDEX}]) + (last(zyxel.ies500x.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100 ` | +|Network_interfaces |ZYXEL IES-500x: Port {#SNMPINDEX}: Incoming utilization |<p>Interface utilization percentage</p> |CALCULATED |zyxel.ies500x.net.if.in.util[{#SNMPINDEX}]<p>**Preprocessing**:</p><p>- IN_RANGE: `0 100`</p><p>⛔️ON_FAIL: `DISCARD_VALUE -> `</p><p>- JAVASCRIPT: `return +parseFloat(value).toFixed(0); `</p><p>**Expression**:</p>`last(zyxel.ies500x.net.if.in.traffic[{#SNMPINDEX}]) * (last(zyxel.ies500x.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(zyxel.ies500x.net.if.highspeed[{#SNMPINDEX}]) + (last(zyxel.ies500x.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100 ` | +|Network_interfaces |ZYXEL IES-500x: Port {#SNMPINDEX}: Outgoing utilization |<p>Interface utilization percentage</p> |CALCULATED |zyxel.ies500x.net.if.out.util[{#SNMPINDEX}]<p>**Preprocessing**:</p><p>- IN_RANGE: `0 100`</p><p>⛔️ON_FAIL: `DISCARD_VALUE -> `</p><p>- JAVASCRIPT: `return +parseFloat(value).toFixed(0); `</p><p>**Expression**:</p>`last(zyxel.ies500x.net.if.out.traffic[{#SNMPINDEX}]) * (last(zyxel.ies500x.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(zyxel.ies500x.net.if.highspeed[{#SNMPINDEX}]) + (last(zyxel.ies500x.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100 ` | |Network_interfaces |ZYXEL IES-500x: Slot {#ZYXEL.SLOT.ID} Port {#ZYXEL.PORTID}: Interface description |<p>MIB: IF-MIB</p><p>A textual string containing information about the interface</p> |SNMP |zyxel.ies500x.net.adsl.descr[{#SNMPINDEX}]<p>**Preprocessing**:</p><p>- DISCARD_UNCHANGED_HEARTBEAT: `6h`</p> | |Network_interfaces |ZYXEL IES-500x: Slot {#ZYXEL.SLOT.ID} Port {#ZYXEL.PORTID}: Interface name |<p>MIB: IF-MIB</p><p>A textual string containing information about the interface</p> |SNMP |zyxel.ies500x.net.adsl.name[{#SNMPINDEX}]<p>**Preprocessing**:</p><p>- DISCARD_UNCHANGED_HEARTBEAT: `6h`</p> | |Network_interfaces |ZYXEL IES-500x: Slot {#ZYXEL.SLOT.ID} Port {#ZYXEL.PORTID}: Operational status |<p>MIB: IF-MIB</p><p>The current operational state of the interface.</p><p>The testing(3) state indicates that no operational</p><p>packets can be passed.</p> |SNMP |zyxel.ies500x.net.adsl.operstatus[{#SNMPINDEX}]<p>**Preprocessing**:</p><p>- DISCARD_UNCHANGED_HEARTBEAT: `6h`</p> | diff --git a/templates/net/zyxel_snmp/zyxel_ies-500x_snmp/template_net_zyxel_ies-500x_snmp.yaml b/templates/net/zyxel_snmp/zyxel_ies-500x_snmp/template_net_zyxel_ies-500x_snmp.yaml index d686ea28da5..cf4d2e435b2 100644 --- a/templates/net/zyxel_snmp/zyxel_ies-500x_snmp/template_net_zyxel_ies-500x_snmp.yaml +++ b/templates/net/zyxel_snmp/zyxel_ies-500x_snmp/template_net_zyxel_ies-500x_snmp.yaml @@ -1,6 +1,6 @@ zabbix_export: version: '5.4' - date: '2021-05-11T15:19:59Z' + date: '2021-07-22T14:50:06Z' groups: - uuid: 36bff6c29af64692839d077febfc7079 @@ -64,7 +64,7 @@ zabbix_export: snmp_oid: .1.3.6.1.2.1.1.4.0 key: zyxel.ies500x.contact delay: 1h - history: 2w + history: 7d trends: '0' value_type: CHAR description: | @@ -89,7 +89,7 @@ zabbix_export: snmp_oid: .1.3.6.1.2.1.1.6.0 key: zyxel.ies500x.location delay: 1h - history: 2w + history: 7d trends: '0' value_type: CHAR description: | @@ -113,7 +113,7 @@ zabbix_export: snmp_oid: .1.3.6.1.2.1.2.2.1.6.1 key: zyxel.ies500x.mac delay: 1h - history: 2w + history: 7d trends: '0' value_type: CHAR description: | @@ -140,7 +140,7 @@ zabbix_export: snmp_oid: .1.3.6.1.2.1.1.1.0 key: zyxel.ies500x.model delay: 1h - history: 2w + history: 7d trends: '0' value_type: CHAR description: | @@ -175,7 +175,7 @@ zabbix_export: snmp_oid: .1.3.6.1.2.1.1.5.0 key: zyxel.ies500x.name delay: 1h - history: 2w + history: 7d trends: '0' value_type: CHAR description: | @@ -1036,29 +1036,14 @@ zabbix_export: return JSON.stringify(outArr); 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: - @@ -1066,7 +1051,7 @@ zabbix_export: operator: REGEXP value: '.*' status: ENABLED - discover: DISCOVER + discover: NO_DISCOVER - uuid: 5121e130194244869e45f9f7bda7cd01 name: 'Ethernet interface discovery' @@ -1266,6 +1251,7 @@ zabbix_export: type: CALCULATED key: 'zyxel.ies500x.net.if.in.util[{#SNMPINDEX}]' history: 7d + value_type: FLOAT units: '%' params: 'last(//zyxel.ies500x.net.if.in.traffic[{#SNMPINDEX}]) * (last(//zyxel.ies500x.net.if.highspeed[{#SNMPINDEX}]) <> 0) /( last(//zyxel.ies500x.net.if.highspeed[{#SNMPINDEX}]) + (last(//zyxel.ies500x.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100' description: 'Interface utilization percentage' @@ -1276,6 +1262,10 @@ zabbix_export: - '0' - '100' error_handler: DISCARD_VALUE + - + type: JAVASCRIPT + parameters: + - 'return +parseFloat(value).toFixed(0);' tags: - tag: Application @@ -1442,6 +1432,7 @@ zabbix_export: type: CALCULATED key: 'zyxel.ies500x.net.if.out.util[{#SNMPINDEX}]' history: 7d + value_type: FLOAT units: '%' params: 'last(//zyxel.ies500x.net.if.out.traffic[{#SNMPINDEX}]) * (last(//zyxel.ies500x.net.if.highspeed[{#SNMPINDEX}]) <> 0) /( last(//zyxel.ies500x.net.if.highspeed[{#SNMPINDEX}]) + (last(//zyxel.ies500x.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100' description: 'Interface utilization percentage' @@ -1452,6 +1443,10 @@ zabbix_export: - '0' - '100' error_handler: DISCARD_VALUE + - + type: JAVASCRIPT + parameters: + - 'return +parseFloat(value).toFixed(0);' tags: - tag: Application @@ -1530,29 +1525,14 @@ zabbix_export: key: 'zyxel.ies500x.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: - @@ -1560,7 +1540,7 @@ zabbix_export: operator: REGEXP value: '.*' status: ENABLED - discover: DISCOVER + discover: NO_DISCOVER - uuid: 3edd9015b1794d39819acf0a2fdc35ba name: 'Slot discovery' |