diff options
Diffstat (limited to 'templates/net/zyxel_snmp/zyxel_xgs-4728f_snmp')
-rw-r--r-- | templates/net/zyxel_snmp/zyxel_xgs-4728f_snmp/README.md | 6 | ||||
-rw-r--r-- | templates/net/zyxel_snmp/zyxel_xgs-4728f_snmp/template_net_zyxel_xgs-4728f_snmp.yaml | 47 |
2 files changed, 24 insertions, 29 deletions
diff --git a/templates/net/zyxel_snmp/zyxel_xgs-4728f_snmp/README.md b/templates/net/zyxel_snmp/zyxel_xgs-4728f_snmp/README.md index b2c5060732c..4c0a954d733 100644 --- a/templates/net/zyxel_snmp/zyxel_xgs-4728f_snmp/README.md +++ b/templates/net/zyxel_snmp/zyxel_xgs-4728f_snmp/README.md @@ -1,5 +1,5 @@ -# XGS-4728F SNMP +# ZYXEL XGS-4728F SNMP ## Overview @@ -83,8 +83,8 @@ There are no template links in this template. |Network_interfaces |ZYXEL XGS-4728F: 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.4728f.net.if.out.multicastpkts[{#SNMPINDEX}]<p>**Preprocessing**:</p><p>- CHANGE_PER_SECOND | |Network_interfaces |ZYXEL XGS-4728F: 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.4728f.net.if.out.broadcastpkts[{#SNMPINDEX}]<p>**Preprocessing**:</p><p>- CHANGE_PER_SECOND | |Network_interfaces |ZYXEL XGS-4728F: 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.4728f.net.if.highspeed[{#SNMPINDEX}]<p>**Preprocessing**:</p><p>- MULTIPLIER: `1000000`</p><p>- DISCARD_UNCHANGED_HEARTBEAT: `6h`</p> | -|Network_interfaces |ZYXEL XGS-4728F: Port {#SNMPINDEX}: Incoming utilization |<p>Interface utilization percentage</p> |CALCULATED |zyxel.4728f.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.4728f.net.if.in.traffic[{#SNMPINDEX}]) * (last(zyxel.4728f.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(zyxel.4728f.net.if.highspeed[{#SNMPINDEX}]) + (last(zyxel.4728f.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100 ` | -|Network_interfaces |ZYXEL XGS-4728F: Port {#SNMPINDEX}: Outgoing utilization |<p>Interface utilization percentage</p> |CALCULATED |zyxel.4728f.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.4728f.net.if.out.traffic[{#SNMPINDEX}]) * (last(zyxel.4728f.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(zyxel.4728f.net.if.highspeed[{#SNMPINDEX}]) + (last(zyxel.4728f.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100 ` | +|Network_interfaces |ZYXEL XGS-4728F: Port {#SNMPINDEX}: Incoming utilization |<p>Interface utilization percentage</p> |CALCULATED |zyxel.4728f.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.4728f.net.if.in.traffic[{#SNMPINDEX}]) * (last(zyxel.4728f.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(zyxel.4728f.net.if.highspeed[{#SNMPINDEX}]) + (last(zyxel.4728f.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100 ` | +|Network_interfaces |ZYXEL XGS-4728F: Port {#SNMPINDEX}: Outgoing utilization |<p>Interface utilization percentage</p> |CALCULATED |zyxel.4728f.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.4728f.net.if.out.traffic[{#SNMPINDEX}]) * (last(zyxel.4728f.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(zyxel.4728f.net.if.highspeed[{#SNMPINDEX}]) + (last(zyxel.4728f.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100 ` | |Network_interfaces |ZYXEL XGS-4728F: SFP {#SNMPINDEX}: Status |<p>MIB: ZYXEL-XGS4728F-MIB</p><p>Transceiver module status.</p> |SNMP |zyxel.4728f.sfp.status[{#SNMPINDEX}]<p>**Preprocessing**:</p><p>- DISCARD_UNCHANGED_HEARTBEAT: `1h`</p> | |Network_interfaces |ZYXEL XGS-4728F: SFP {#SNMPINDEX}: Vendor |<p>MIB: ZYXEL-XGS4728F-MIB</p><p>Transceiver module vendor name.</p> |SNMP |zyxel.4728f.sfp.vendor[{#SNMPINDEX}]<p>**Preprocessing**:</p><p>- DISCARD_UNCHANGED_HEARTBEAT: `1h`</p> | |Network_interfaces |ZYXEL XGS-4728F: SFP {#SNMPINDEX}: Part number |<p>MIB: ZYXEL-XGS4728F-MIB</p><p>Part number provided by transceiver module vendor.</p> |SNMP |zyxel.4728f.sfp.part[{#SNMPINDEX}]<p>**Preprocessing**:</p><p>- DISCARD_UNCHANGED_HEARTBEAT: `1h`</p> | diff --git a/templates/net/zyxel_snmp/zyxel_xgs-4728f_snmp/template_net_zyxel_xgs-4728f_snmp.yaml b/templates/net/zyxel_snmp/zyxel_xgs-4728f_snmp/template_net_zyxel_xgs-4728f_snmp.yaml index 767bbf84e53..b0023fda0d3 100644 --- a/templates/net/zyxel_snmp/zyxel_xgs-4728f_snmp/template_net_zyxel_xgs-4728f_snmp.yaml +++ b/templates/net/zyxel_snmp/zyxel_xgs-4728f_snmp/template_net_zyxel_xgs-4728f_snmp.yaml @@ -1,6 +1,6 @@ zabbix_export: version: '5.4' - date: '2021-05-11T15:22:44Z' + date: '2021-07-22T14:53:12Z' groups: - uuid: 36bff6c29af64692839d077febfc7079 @@ -64,7 +64,7 @@ zabbix_export: snmp_oid: .1.3.6.1.2.1.1.4.0 key: zyxel.4728f.contact delay: 1h - history: 2w + history: 7d trends: '0' value_type: CHAR description: | @@ -114,7 +114,7 @@ zabbix_export: snmp_oid: 'discovery[{#SNMP.ARRAY},.1.3.6.1.4.1.890.1.5.8.46.1]' key: zyxel.4728f.fwversion delay: 1h - history: 2w + history: 7d trends: '0' value_type: CHAR description: 'MIB: ZYXEL-XGS4728F-MIB' @@ -157,7 +157,7 @@ zabbix_export: snmp_oid: .1.3.6.1.2.1.1.6.0 key: zyxel.4728f.location delay: 1h - history: 2w + history: 7d trends: '0' value_type: CHAR description: | @@ -181,7 +181,7 @@ zabbix_export: snmp_oid: .1.3.6.1.2.1.2.2.1.6.1 key: zyxel.4728f.mac delay: 1h - history: 2w + history: 7d trends: '0' value_type: CHAR description: | @@ -208,7 +208,7 @@ zabbix_export: snmp_oid: .1.3.6.1.2.1.1.1.0 key: zyxel.4728f.model delay: 1h - history: 2w + history: 7d trends: '0' value_type: CHAR description: | @@ -243,7 +243,7 @@ zabbix_export: snmp_oid: .1.3.6.1.2.1.1.5.0 key: zyxel.4728f.name delay: 1h - history: 2w + history: 7d trends: '0' value_type: CHAR description: | @@ -268,7 +268,7 @@ zabbix_export: snmp_oid: .1.3.6.1.4.1.890.1.5.8.46.1.10.0 key: zyxel.4728f.serialnumber delay: 1h - history: 2w + history: 7d trends: '0' value_type: CHAR description: | @@ -603,6 +603,7 @@ zabbix_export: type: CALCULATED key: 'zyxel.4728f.net.if.in.util[{#SNMPINDEX}]' history: 7d + value_type: FLOAT units: '%' params: 'last(//zyxel.4728f.net.if.in.traffic[{#SNMPINDEX}]) * (last(//zyxel.4728f.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(//zyxel.4728f.net.if.highspeed[{#SNMPINDEX}]) + (last(//zyxel.4728f.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100' description: 'Interface utilization percentage' @@ -613,6 +614,10 @@ zabbix_export: - '0' - '100' error_handler: DISCARD_VALUE + - + type: JAVASCRIPT + parameters: + - 'return +parseFloat(value).toFixed(0);' tags: - tag: Application @@ -800,6 +805,7 @@ zabbix_export: type: CALCULATED key: 'zyxel.4728f.net.if.out.util[{#SNMPINDEX}]' history: 7d + value_type: FLOAT units: '%' params: 'last(//zyxel.4728f.net.if.out.traffic[{#SNMPINDEX}]) * (last(//zyxel.4728f.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(//zyxel.4728f.net.if.highspeed[{#SNMPINDEX}]) + (last(//zyxel.4728f.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100' description: 'Interface utilization percentage' @@ -810,6 +816,10 @@ zabbix_export: - '0' - '100' error_handler: DISCARD_VALUE + - + type: JAVASCRIPT + parameters: + - 'return +parseFloat(value).toFixed(0);' tags: - tag: Application @@ -909,29 +919,14 @@ zabbix_export: key: 'zyxel.4728f.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: - @@ -939,7 +934,7 @@ zabbix_export: operator: REGEXP value: '.*' status: ENABLED - discover: DISCOVER + discover: NO_DISCOVER - uuid: 6e0b5b991865448780e042d98168d72c name: 'SFP with DDM discovery' |