diff options
Diffstat (limited to 'templates/net/zyxel_snmp/zyxel_mgs3500-24s_snmp')
-rw-r--r-- | templates/net/zyxel_snmp/zyxel_mgs3500-24s_snmp/README.md | 6 | ||||
-rw-r--r-- | templates/net/zyxel_snmp/zyxel_mgs3500-24s_snmp/template_net_zyxel_mgs3500-24s_snmp.yaml | 47 |
2 files changed, 24 insertions, 29 deletions
diff --git a/templates/net/zyxel_snmp/zyxel_mgs3500-24s_snmp/README.md b/templates/net/zyxel_snmp/zyxel_mgs3500-24s_snmp/README.md index ecc753e54ed..fb6c708d7e3 100644 --- a/templates/net/zyxel_snmp/zyxel_mgs3500-24s_snmp/README.md +++ b/templates/net/zyxel_snmp/zyxel_mgs3500-24s_snmp/README.md @@ -1,5 +1,5 @@ -# MES3500-24S SNMP +# ZYXEL MES3500-24S SNMP ## Overview @@ -82,8 +82,8 @@ There are no template links in this template. |Network_interfaces |ZYXEL MES3500-24S: 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.3500_24s.net.if.out.multicastpkts[{#SNMPINDEX}]<p>**Preprocessing**:</p><p>- CHANGE_PER_SECOND | |Network_interfaces |ZYXEL MES3500-24S: 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.3500_24s.net.if.out.broadcastpkts[{#SNMPINDEX}]<p>**Preprocessing**:</p><p>- CHANGE_PER_SECOND | |Network_interfaces |ZYXEL MES3500-24S: 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.3500_24s.net.if.highspeed[{#SNMPINDEX}]<p>**Preprocessing**:</p><p>- MULTIPLIER: `1000000`</p><p>- DISCARD_UNCHANGED_HEARTBEAT: `6h`</p> | -|Network_interfaces |ZYXEL MES3500-24S: Port {#SNMPINDEX}: Incoming utilization |<p>Interface utilization percentage</p> |CALCULATED |zyxel.3500_24s.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.3500_24s.net.if.in.traffic[{#SNMPINDEX}]) * (last(zyxel.3500_24s.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(zyxel.3500_24s.net.if.highspeed[{#SNMPINDEX}]) + (last(zyxel.3500_24s.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100 ` | -|Network_interfaces |ZYXEL MES3500-24S: Port {#SNMPINDEX}: Outgoing utilization |<p>Interface utilization percentage</p> |CALCULATED |zyxel.3500_24s.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.3500_24s.net.if.out.traffic[{#SNMPINDEX}]) * (last(zyxel.3500_24s.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(zyxel.3500_24s.net.if.highspeed[{#SNMPINDEX}]) + (last(zyxel.3500_24s.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100 ` | +|Network_interfaces |ZYXEL MES3500-24S: Port {#SNMPINDEX}: Incoming utilization |<p>Interface utilization percentage</p> |CALCULATED |zyxel.3500_24s.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.3500_24s.net.if.in.traffic[{#SNMPINDEX}]) * (last(zyxel.3500_24s.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(zyxel.3500_24s.net.if.highspeed[{#SNMPINDEX}]) + (last(zyxel.3500_24s.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100 ` | +|Network_interfaces |ZYXEL MES3500-24S: Port {#SNMPINDEX}: Outgoing utilization |<p>Interface utilization percentage</p> |CALCULATED |zyxel.3500_24s.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.3500_24s.net.if.out.traffic[{#SNMPINDEX}]) * (last(zyxel.3500_24s.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(zyxel.3500_24s.net.if.highspeed[{#SNMPINDEX}]) + (last(zyxel.3500_24s.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100 ` | |Network_interfaces |ZYXEL MES3500-24S: SFP {#SNMPINDEX}: Status |<p>MIB: ZYXEL-TRANSCEIVER-MIB</p><p>Transceiver module type.</p> |SNMP |zyxel.3500_24s.sfp.status[{#SNMPINDEX}]<p>**Preprocessing**:</p><p>- DISCARD_UNCHANGED_HEARTBEAT: `1h`</p> | |Network_interfaces |ZYXEL MES3500-24S: SFP {#SNMPINDEX}: Vendor |<p>MIB: ZYXEL-TRANSCEIVER-MIB</p><p>Transceiver module vendor name.</p> |SNMP |zyxel.3500_24s.sfp.vendor[{#SNMPINDEX}]<p>**Preprocessing**:</p><p>- DISCARD_UNCHANGED_HEARTBEAT: `1h`</p> | |Network_interfaces |ZYXEL MES3500-24S: SFP {#SNMPINDEX}: Part number |<p>MIB: ZYXEL-TRANSCEIVER-MIB</p><p>Part number provided by transceiver module vendor.</p> |SNMP |zyxel.3500_24s.sfp.part[{#SNMPINDEX}]<p>**Preprocessing**:</p><p>- DISCARD_UNCHANGED_HEARTBEAT: `1h`</p> | diff --git a/templates/net/zyxel_snmp/zyxel_mgs3500-24s_snmp/template_net_zyxel_mgs3500-24s_snmp.yaml b/templates/net/zyxel_snmp/zyxel_mgs3500-24s_snmp/template_net_zyxel_mgs3500-24s_snmp.yaml index 489cba8eb91..7eaee52058f 100644 --- a/templates/net/zyxel_snmp/zyxel_mgs3500-24s_snmp/template_net_zyxel_mgs3500-24s_snmp.yaml +++ b/templates/net/zyxel_snmp/zyxel_mgs3500-24s_snmp/template_net_zyxel_mgs3500-24s_snmp.yaml @@ -1,6 +1,6 @@ zabbix_export: version: '5.4' - date: '2021-05-11T15:21:48Z' + date: '2021-07-22T14:52:14Z' groups: - uuid: 36bff6c29af64692839d077febfc7079 @@ -66,7 +66,7 @@ zabbix_export: snmp_oid: .1.3.6.1.2.1.1.4.0 key: zyxel.3500_24s.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.3500_24s.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.3500_24s.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.3500_24s.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.3500_24s.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.3500_24s.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.3500_24s.serialnumber delay: 1h - history: 2w + history: 7d trends: '0' value_type: CHAR description: | @@ -578,6 +578,7 @@ zabbix_export: type: CALCULATED key: 'zyxel.3500_24s.net.if.in.util[{#SNMPINDEX}]' history: 7d + value_type: FLOAT units: '%' params: 'last(//zyxel.3500_24s.net.if.in.traffic[{#SNMPINDEX}]) * (last(//zyxel.3500_24s.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(//zyxel.3500_24s.net.if.highspeed[{#SNMPINDEX}]) + (last(//zyxel.3500_24s.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.3500_24s.net.if.out.util[{#SNMPINDEX}]' history: 7d + value_type: FLOAT units: '%' params: 'last(//zyxel.3500_24s.net.if.out.traffic[{#SNMPINDEX}]) * (last(//zyxel.3500_24s.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(//zyxel.3500_24s.net.if.highspeed[{#SNMPINDEX}]) + (last(//zyxel.3500_24s.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.3500_24s.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: f90783a6170c4802a1833ae25008b618 name: 'SFP with DDM discovery' |