From 77337a0d2e222977e902f94c8ad250e017abb87b Mon Sep 17 00:00:00 2001 From: Alexander Bakaldin Date: Thu, 22 Jul 2021 18:01:28 +0300 Subject: .........T [ZBX-19692] fixed issues with Zyxel templates --- .../net/zyxel_snmp/zyxel_aam1212-51_snmp/README.md | 2 +- .../template_net_zyxel_aam1212-51_snmp.yaml | 58 +++++-------------- .../net/zyxel_snmp/zyxel_es3500-8pd_snmp/README.md | 6 +- .../template_net_zyxel_es3500-8pd_snmp.yaml | 47 +++++++-------- .../net/zyxel_snmp/zyxel_gs4012f_snmp/README.md | 6 +- .../template_net_zyxel_gs4012f_snmp.yaml | 47 +++++++-------- .../net/zyxel_snmp/zyxel_ies-500x_snmp/README.md | 6 +- .../template_net_zyxel_ies-500x_snmp.yaml | 64 ++++++++------------- .../net/zyxel_snmp/zyxel_ies-6000_snmp/README.md | 6 +- .../template_net_zyxel_ies-6000_snmp.yaml | 66 ++++++++-------------- .../net/zyxel_snmp/zyxel_ies1248-51_snmp/README.md | 2 +- .../template_net_zyxel_ies1248-51_snmp.yaml | 37 ++++-------- .../net/zyxel_snmp/zyxel_mes-3528_snmp/README.md | 6 +- .../template_net_zyxel_mes-3528_snmp.yaml | 47 +++++++-------- .../net/zyxel_snmp/zyxel_mes3500-10_snmp/README.md | 6 +- .../template_net_zyxel_mes3500-10_snmp.yaml | 47 +++++++-------- .../net/zyxel_snmp/zyxel_mes3500-24_snmp/README.md | 6 +- .../template_net_zyxel_mes3500-24_snmp.yaml | 47 +++++++-------- .../net/zyxel_snmp/zyxel_mgs-3712_snmp/README.md | 6 +- .../template_net_zyxel_mgs-3712_snmp.yaml | 47 +++++++-------- .../net/zyxel_snmp/zyxel_mgs-3712f_snmp/README.md | 6 +- .../template_net_zyxel_mgs-3712f_snmp.yaml | 47 +++++++-------- .../zyxel_snmp/zyxel_mgs3500-24s_snmp/README.md | 6 +- .../template_net_zyxel_mgs3500-24s_snmp.yaml | 47 +++++++-------- .../zyxel_snmp/zyxel_mgs3520-28x_snmp/README.md | 6 +- .../template_net_zyxel_mgs3520-28x_snmp.yaml | 47 +++++++-------- .../net/zyxel_snmp/zyxel_xgs-4728f_snmp/README.md | 6 +- .../template_net_zyxel_xgs-4728f_snmp.yaml | 47 +++++++-------- 28 files changed, 318 insertions(+), 453 deletions(-) (limited to 'templates') diff --git a/templates/net/zyxel_snmp/zyxel_aam1212-51_snmp/README.md b/templates/net/zyxel_snmp/zyxel_aam1212-51_snmp/README.md index 11acc692121..a2a77bcb5ba 100644 --- a/templates/net/zyxel_snmp/zyxel_aam1212-51_snmp/README.md +++ b/templates/net/zyxel_snmp/zyxel_aam1212-51_snmp/README.md @@ -1,5 +1,5 @@ -# AAM1212-51 IES-612 SNMP +# ZYXEL AAM1212-51 IES-612 SNMP ## Overview diff --git a/templates/net/zyxel_snmp/zyxel_aam1212-51_snmp/template_net_zyxel_aam1212-51_snmp.yaml b/templates/net/zyxel_snmp/zyxel_aam1212-51_snmp/template_net_zyxel_aam1212-51_snmp.yaml index 8ad19a3752b..9c15ccc7087 100644 --- a/templates/net/zyxel_snmp/zyxel_aam1212-51_snmp/template_net_zyxel_aam1212-51_snmp.yaml +++ b/templates/net/zyxel_snmp/zyxel_aam1212-51_snmp/template_net_zyxel_aam1212-51_snmp.yaml @@ -1,6 +1,6 @@ zabbix_export: version: '5.4' - date: '2021-05-26T05:07:56Z' + date: '2021-07-22T14:48:21Z' groups: - uuid: 36bff6c29af64692839d077febfc7079 @@ -64,7 +64,7 @@ zabbix_export: snmp_oid: .1.3.6.1.2.1.1.4.0 key: zyxel.aam1212.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.4.1.890.1.5.13.1.1.3.1.4.0.0 key: zyxel.aam1212.fwversion delay: 1h - history: 2w + history: 7d trends: '0' value_type: CHAR description: 'MIB: ZYXEL-IESCOMMON-MIB' @@ -119,7 +119,7 @@ zabbix_export: snmp_oid: .1.3.6.1.2.1.1.6.0 key: zyxel.aam1212.location delay: 1h - history: 2w + history: 7d trends: '0' value_type: CHAR description: | @@ -143,7 +143,7 @@ zabbix_export: snmp_oid: .1.3.6.1.2.1.2.2.1.6.1 key: zyxel.aam1212.mac 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.1.1.0 key: zyxel.aam1212.model delay: 1h - history: 2w + history: 7d trends: '0' value_type: CHAR description: | @@ -205,7 +205,7 @@ zabbix_export: snmp_oid: .1.3.6.1.2.1.1.5.0 key: zyxel.aam1212.name delay: 1h - history: 2w + history: 7d trends: '0' value_type: CHAR description: | @@ -230,7 +230,7 @@ zabbix_export: snmp_oid: .1.3.6.1.4.1.890.1.5.13.1.1.2.1.3.0 key: zyxel.aam1212.serialnumber delay: 1h - history: 2w + history: 7d trends: '0' value_type: CHAR description: | @@ -725,29 +725,14 @@ zabbix_export: key: 'zyxel.aam1212.net.adsl.out.traffic[{#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: - @@ -755,7 +740,7 @@ zabbix_export: operator: REGEXP value: '.*' status: ENABLED - discover: DISCOVER + discover: NO_DISCOVER - uuid: 8e327f4a888b417db390148e7a894d10 name: 'Ethernet interface discovery' @@ -932,29 +917,14 @@ zabbix_export: key: 'zyxel.aam1212.net.if.out.traffic[{#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: - @@ -962,7 +932,7 @@ zabbix_export: operator: REGEXP value: '.*' status: ENABLED - discover: DISCOVER + discover: NO_DISCOVER - uuid: 4bc61b4441a840a79bbd118a1d3cf66e name: 'Temperature discovery' diff --git a/templates/net/zyxel_snmp/zyxel_es3500-8pd_snmp/README.md b/templates/net/zyxel_snmp/zyxel_es3500-8pd_snmp/README.md index bff39895a1d..6e2356391e2 100644 --- a/templates/net/zyxel_snmp/zyxel_es3500-8pd_snmp/README.md +++ b/templates/net/zyxel_snmp/zyxel_es3500-8pd_snmp/README.md @@ -1,5 +1,5 @@ -# ES3500-8PD SNMP +# ZYXEL ES3500-8PD SNMP ## Overview @@ -81,8 +81,8 @@ There are no template links in this template. |Network_interfaces |ZYXEL ES3500-8PD: Port {#SNMPINDEX}: Outgoing multicast packages |

MIB: IF-MIB

The total number of packets that higher-level protocols

requested be transmitted, and which were addressed to a

multicast address at this sub-layer, including those that

were discarded or not sent. For a MAC layer protocol, this

includes both Group and Functional addresses.

|SNMP |zyxel.3500_8pd.net.if.out.multicastpkts[{#SNMPINDEX}]

**Preprocessing**:

- CHANGE_PER_SECOND | |Network_interfaces |ZYXEL ES3500-8PD: Port {#SNMPINDEX}: Outgoing broadcast packages |

MIB: IF-MIB

The total number of packets that higher-level protocols

requested be transmitted, and which were addressed to a

broadcast address at this sub-layer, including those that

were discarded or not sent.

|SNMP |zyxel.3500_8pd.net.if.out.broadcastpkts[{#SNMPINDEX}]

**Preprocessing**:

- CHANGE_PER_SECOND | |Network_interfaces |ZYXEL ES3500-8PD: Port {#SNMPINDEX}: Link speed |

MIB: IF-MIB

An estimate of the interface's current bandwidth in bits per second

|SNMP |zyxel.3500_8pd.net.if.highspeed[{#SNMPINDEX}]

**Preprocessing**:

- MULTIPLIER: `1000000`

- DISCARD_UNCHANGED_HEARTBEAT: `6h`

| -|Network_interfaces |ZYXEL ES3500-8PD: Port {#SNMPINDEX}: Incoming utilization |

Interface utilization percentage

|CALCULATED |zyxel.3500_8pd.net.if.in.util[{#SNMPINDEX}]

**Preprocessing**:

- IN_RANGE: `0 100`

⛔️ON_FAIL: `DISCARD_VALUE -> `

**Expression**:

`last(zyxel.3500_8pd.net.if.in.traffic[{#SNMPINDEX}]) * (last(zyxel.3500_8pd.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(zyxel.3500_8pd.net.if.highspeed[{#SNMPINDEX}]) + (last(zyxel.3500_8pd.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100 ` | -|Network_interfaces |ZYXEL ES3500-8PD: Port {#SNMPINDEX}: Outgoing utilization |

Interface utilization percentage

|CALCULATED |zyxel.3500_8pd.net.if.out.util[{#SNMPINDEX}]

**Preprocessing**:

- IN_RANGE: `0 100`

⛔️ON_FAIL: `DISCARD_VALUE -> `

**Expression**:

`last(zyxel.3500_8pd.net.if.out.traffic[{#SNMPINDEX}]) * (last(zyxel.3500_8pd.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(zyxel.3500_8pd.net.if.highspeed[{#SNMPINDEX}]) + (last(zyxel.3500_8pd.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100 ` | +|Network_interfaces |ZYXEL ES3500-8PD: Port {#SNMPINDEX}: Incoming utilization |

Interface utilization percentage

|CALCULATED |zyxel.3500_8pd.net.if.in.util[{#SNMPINDEX}]

**Preprocessing**:

- IN_RANGE: `0 100`

⛔️ON_FAIL: `DISCARD_VALUE -> `

- JAVASCRIPT: `return +parseFloat(value).toFixed(0); `

**Expression**:

`last(zyxel.3500_8pd.net.if.in.traffic[{#SNMPINDEX}]) * (last(zyxel.3500_8pd.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(zyxel.3500_8pd.net.if.highspeed[{#SNMPINDEX}]) + (last(zyxel.3500_8pd.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100 ` | +|Network_interfaces |ZYXEL ES3500-8PD: Port {#SNMPINDEX}: Outgoing utilization |

Interface utilization percentage

|CALCULATED |zyxel.3500_8pd.net.if.out.util[{#SNMPINDEX}]

**Preprocessing**:

- IN_RANGE: `0 100`

⛔️ON_FAIL: `DISCARD_VALUE -> `

- JAVASCRIPT: `return +parseFloat(value).toFixed(0); `

**Expression**:

`last(zyxel.3500_8pd.net.if.out.traffic[{#SNMPINDEX}]) * (last(zyxel.3500_8pd.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(zyxel.3500_8pd.net.if.highspeed[{#SNMPINDEX}]) + (last(zyxel.3500_8pd.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100 ` | |Network_interfaces |ZYXEL ES3500-8PD: SFP {#SNMPINDEX}: Status |

MIB: ZYXEL-ES3500-8PD-MIB

Transceiver module status.

|SNMP |zyxel.3500_8pd.sfp.status[{#SNMPINDEX}]

**Preprocessing**:

- DISCARD_UNCHANGED_HEARTBEAT: `1h`

| |Network_interfaces |ZYXEL ES3500-8PD: SFP {#SNMPINDEX}: Vendor |

MIB: ZYXEL-ES3500-8PD-MIB

Transceiver module vendor name.

|SNMP |zyxel.3500_8pd.sfp.vendor[{#SNMPINDEX}]

**Preprocessing**:

- DISCARD_UNCHANGED_HEARTBEAT: `1h`

| |Network_interfaces |ZYXEL ES3500-8PD: SFP {#SNMPINDEX}: Part number |

MIB: ZYXEL-ES3500-8PD-MIB

Part number provided by transceiver module vendor.

|SNMP |zyxel.3500_8pd.sfp.part[{#SNMPINDEX}]

**Preprocessing**:

- DISCARD_UNCHANGED_HEARTBEAT: `1h`

| diff --git a/templates/net/zyxel_snmp/zyxel_es3500-8pd_snmp/template_net_zyxel_es3500-8pd_snmp.yaml b/templates/net/zyxel_snmp/zyxel_es3500-8pd_snmp/template_net_zyxel_es3500-8pd_snmp.yaml index 7d04f855d88..543b4943532 100644 --- a/templates/net/zyxel_snmp/zyxel_es3500-8pd_snmp/template_net_zyxel_es3500-8pd_snmp.yaml +++ b/templates/net/zyxel_snmp/zyxel_es3500-8pd_snmp/template_net_zyxel_es3500-8pd_snmp.yaml @@ -1,6 +1,6 @@ zabbix_export: version: '5.4' - date: '2021-05-26T05:09:08Z' + date: '2021-07-22T14:49:14Z' groups: - uuid: 36bff6c29af64692839d077febfc7079 @@ -64,7 +64,7 @@ zabbix_export: snmp_oid: .1.3.6.1.2.1.1.4.0 key: zyxel.3500_8pd.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.72.1]' key: zyxel.3500_8pd.fwversion delay: 1h - history: 2w + history: 7d trends: '0' value_type: CHAR description: 'MIB: ZYXEL-ES3500-8PD-MIB' @@ -157,7 +157,7 @@ zabbix_export: snmp_oid: .1.3.6.1.2.1.1.6.0 key: zyxel.3500_8pd.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.3500_8pd.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.3500_8pd.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.3500_8pd.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.72.1.10.0 key: zyxel.3500_8pd.serialnumber delay: 1h - history: 2w + history: 7d trends: '0' value_type: CHAR description: | @@ -556,6 +556,7 @@ zabbix_export: type: CALCULATED key: 'zyxel.3500_8pd.net.if.in.util[{#SNMPINDEX}]' history: 7d + value_type: FLOAT units: '%' params: 'last(//zyxel.3500_8pd.net.if.in.traffic[{#SNMPINDEX}]) * (last(//zyxel.3500_8pd.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(//zyxel.3500_8pd.net.if.highspeed[{#SNMPINDEX}]) + (last(//zyxel.3500_8pd.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100' description: 'Interface utilization percentage' @@ -566,6 +567,10 @@ zabbix_export: - '0' - '100' error_handler: DISCARD_VALUE + - + type: JAVASCRIPT + parameters: + - 'return +parseFloat(value).toFixed(0);' tags: - tag: Application @@ -753,6 +758,7 @@ zabbix_export: type: CALCULATED key: 'zyxel.3500_8pd.net.if.out.util[{#SNMPINDEX}]' history: 7d + value_type: FLOAT units: '%' params: 'last(//zyxel.3500_8pd.net.if.out.traffic[{#SNMPINDEX}]) * (last(//zyxel.3500_8pd.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(//zyxel.3500_8pd.net.if.highspeed[{#SNMPINDEX}]) + (last(//zyxel.3500_8pd.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100' description: 'Interface utilization percentage' @@ -763,6 +769,10 @@ zabbix_export: - '0' - '100' error_handler: DISCARD_VALUE + - + type: JAVASCRIPT + parameters: + - 'return +parseFloat(value).toFixed(0);' tags: - tag: Application @@ -862,29 +872,14 @@ zabbix_export: key: 'zyxel.3500_8pd.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: - @@ -892,7 +887,7 @@ zabbix_export: operator: REGEXP value: '.*' status: ENABLED - discover: DISCOVER + discover: NO_DISCOVER - uuid: 21d6664eb56c41b388b4f4709a81d33d name: 'SFP with DDM discovery' diff --git a/templates/net/zyxel_snmp/zyxel_gs4012f_snmp/README.md b/templates/net/zyxel_snmp/zyxel_gs4012f_snmp/README.md index 0f39ab304b9..a50fd59e640 100644 --- a/templates/net/zyxel_snmp/zyxel_gs4012f_snmp/README.md +++ b/templates/net/zyxel_snmp/zyxel_gs4012f_snmp/README.md @@ -1,5 +1,5 @@ -# GS-4012F SNMP +# ZYXEL GS-4012F SNMP ## Overview @@ -73,8 +73,8 @@ There are no template links in this template. |Network_interfaces |ZYXEL GS-4012F: Port {#SNMPINDEX}: Outgoing multicast packages |

MIB: IF-MIB

The total number of packets that higher-level protocols

requested be transmitted, and which were addressed to a

multicast address at this sub-layer, including those that

were discarded or not sent. For a MAC layer protocol, this

includes both Group and Functional addresses.

|SNMP |zyxel.4012f.net.if.out.multicastpkts[{#SNMPINDEX}]

**Preprocessing**:

- CHANGE_PER_SECOND | |Network_interfaces |ZYXEL GS-4012F: Port {#SNMPINDEX}: Outgoing broadcast packages |

MIB: IF-MIB

The total number of packets that higher-level protocols

requested be transmitted, and which were addressed to a

broadcast address at this sub-layer, including those that

were discarded or not sent.

|SNMP |zyxel.4012f.net.if.out.broadcastpkts[{#SNMPINDEX}]

**Preprocessing**:

- CHANGE_PER_SECOND | |Network_interfaces |ZYXEL GS-4012F: Port {#SNMPINDEX}: Link speed |

MIB: IF-MIB

An estimate of the interface's current bandwidth in bits per second

|SNMP |zyxel.4012f.net.if.highspeed[{#SNMPINDEX}]

**Preprocessing**:

- MULTIPLIER: `1000000`

- DISCARD_UNCHANGED_HEARTBEAT: `6h`

| -|Network_interfaces |ZYXEL GS-4012F: Port {#SNMPINDEX}: Incoming utilization |

Interface utilization percentage

|CALCULATED |zyxel.4012f.net.if.in.util[{#SNMPINDEX}]

**Preprocessing**:

- IN_RANGE: `0 100`

⛔️ON_FAIL: `DISCARD_VALUE -> `

**Expression**:

`last(zyxel.4012f.net.if.in.traffic[{#SNMPINDEX}]) * (last(zyxel.4012f.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(zyxel.4012f.net.if.highspeed[{#SNMPINDEX}]) + (last(zyxel.4012f.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100 ` | -|Network_interfaces |ZYXEL GS-4012F: Port {#SNMPINDEX}: Outgoing utilization |

Interface utilization percentage

|CALCULATED |zyxel.4012f.net.if.out.util[{#SNMPINDEX}]

**Preprocessing**:

- IN_RANGE: `0 100`

⛔️ON_FAIL: `DISCARD_VALUE -> `

**Expression**:

`last(zyxel.4012f.net.if.out.traffic[{#SNMPINDEX}]) * (last(zyxel.4012f.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(zyxel.4012f.net.if.highspeed[{#SNMPINDEX}]) + (last(zyxel.4012f.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100 ` | +|Network_interfaces |ZYXEL GS-4012F: Port {#SNMPINDEX}: Incoming utilization |

Interface utilization percentage

|CALCULATED |zyxel.4012f.net.if.in.util[{#SNMPINDEX}]

**Preprocessing**:

- IN_RANGE: `0 100`

⛔️ON_FAIL: `DISCARD_VALUE -> `

- JAVASCRIPT: `return +parseFloat(value).toFixed(0); `

**Expression**:

`last(zyxel.4012f.net.if.in.traffic[{#SNMPINDEX}]) * (last(zyxel.4012f.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(zyxel.4012f.net.if.highspeed[{#SNMPINDEX}]) + (last(zyxel.4012f.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100 ` | +|Network_interfaces |ZYXEL GS-4012F: Port {#SNMPINDEX}: Outgoing utilization |

Interface utilization percentage

|CALCULATED |zyxel.4012f.net.if.out.util[{#SNMPINDEX}]

**Preprocessing**:

- IN_RANGE: `0 100`

⛔️ON_FAIL: `DISCARD_VALUE -> `

- JAVASCRIPT: `return +parseFloat(value).toFixed(0); `

**Expression**:

`last(zyxel.4012f.net.if.out.traffic[{#SNMPINDEX}]) * (last(zyxel.4012f.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(zyxel.4012f.net.if.highspeed[{#SNMPINDEX}]) + (last(zyxel.4012f.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100 ` | |Power_supply |ZYXEL GS-4012F: Nominal "{#ZYXEL.VOLT.NOMINAL}" |

MIB: ZYXEL-GS4012F-MIB

The current voltage reading.

|SNMP |zyxel.4012f.volt[{#SNMPINDEX}]

**Preprocessing**:

- MULTIPLIER: `0.001`

- DISCARD_UNCHANGED_HEARTBEAT: `1h`

| |Status |ZYXEL GS-4012F: SNMP agent availability |

-

|INTERNAL |zabbix[host,snmp,available]

**Preprocessing**:

- DISCARD_UNCHANGED_HEARTBEAT: `1h`

| |Status |ZYXEL GS-4012F: Uptime |

MIB: RFC1213-MIB

The time (in hundredths of a second) since the

network management portion of the system was last

re-initialized.

|SNMP |zyxel.4012f.uptime

**Preprocessing**:

- MULTIPLIER: `0.01`

| diff --git a/templates/net/zyxel_snmp/zyxel_gs4012f_snmp/template_net_zyxel_gs4012f_snmp.yaml b/templates/net/zyxel_snmp/zyxel_gs4012f_snmp/template_net_zyxel_gs4012f_snmp.yaml index ca897cf6b87..2b4981128e1 100644 --- a/templates/net/zyxel_snmp/zyxel_gs4012f_snmp/template_net_zyxel_gs4012f_snmp.yaml +++ b/templates/net/zyxel_snmp/zyxel_gs4012f_snmp/template_net_zyxel_gs4012f_snmp.yaml @@ -1,6 +1,6 @@ zabbix_export: version: '5.4' - date: '2021-05-11T15:19:49Z' + date: '2021-07-22T14:49:52Z' groups: - uuid: 36bff6c29af64692839d077febfc7079 @@ -63,7 +63,7 @@ zabbix_export: snmp_oid: .1.3.6.1.2.1.1.4.0 key: zyxel.4012f.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.20.1]' key: zyxel.4012f.fwversion delay: 1h - history: 2w + history: 7d trends: '0' value_type: CHAR description: 'MIB: ZYXEL-GS4012F-MIB' @@ -156,7 +156,7 @@ zabbix_export: snmp_oid: .1.3.6.1.2.1.1.6.0 key: zyxel.4012f.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.4012f.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.4012f.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.4012f.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.20.1.10.0 key: zyxel.4012f.serialnumber delay: 1h - history: 2w + history: 7d trends: '0' value_type: CHAR description: | @@ -567,6 +567,7 @@ zabbix_export: type: CALCULATED key: 'zyxel.4012f.net.if.in.util[{#SNMPINDEX}]' history: 7d + value_type: FLOAT units: '%' params: 'last(//zyxel.4012f.net.if.in.traffic[{#SNMPINDEX}]) * (last(//zyxel.4012f.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(//zyxel.4012f.net.if.highspeed[{#SNMPINDEX}]) + (last(//zyxel.4012f.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.4012f.net.if.out.util[{#SNMPINDEX}]' history: 7d + value_type: FLOAT units: '%' params: 'last(//zyxel.4012f.net.if.out.traffic[{#SNMPINDEX}]) * (last(//zyxel.4012f.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(//zyxel.4012f.net.if.highspeed[{#SNMPINDEX}]) + (last(//zyxel.4012f.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.4012f.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: de7fbcbcaa8a460d8048e7816ccc1a87 name: 'Temperature discovery' 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 |

MIB: IF-MIB

The total number of packets that higher-level protocols

requested be transmitted, and which were addressed to a

multicast address at this sub-layer, including those that

were discarded or not sent. For a MAC layer protocol, this

includes both Group and Functional addresses.

|SNMP |zyxel.ies500x.net.if.out.multicastpkts[{#SNMPINDEX}]

**Preprocessing**:

- CHANGE_PER_SECOND | |Network_interfaces |ZYXEL IES-500x: Port {#SNMPINDEX}: Outgoing broadcast packages |

MIB: IF-MIB

The total number of packets that higher-level protocols

requested be transmitted, and which were addressed to a

broadcast address at this sub-layer, including those that

were discarded or not sent.

|SNMP |zyxel.ies500x.net.if.out.broadcastpkts[{#SNMPINDEX}]

**Preprocessing**:

- CHANGE_PER_SECOND | |Network_interfaces |ZYXEL IES-500x: Port {#SNMPINDEX}: Link speed |

MIB: IF-MIB

An estimate of the interface's current bandwidth in bits per second

|SNMP |zyxel.ies500x.net.if.highspeed[{#SNMPINDEX}]

**Preprocessing**:

- MULTIPLIER: `1000000`

- DISCARD_UNCHANGED_HEARTBEAT: `6h`

| -|Network_interfaces |ZYXEL IES-500x: Port {#SNMPINDEX}: Incoming utilization |

Interface utilization percentage

|CALCULATED |zyxel.ies500x.net.if.in.util[{#SNMPINDEX}]

**Preprocessing**:

- IN_RANGE: `0 100`

⛔️ON_FAIL: `DISCARD_VALUE -> `

**Expression**:

`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 |

Interface utilization percentage

|CALCULATED |zyxel.ies500x.net.if.out.util[{#SNMPINDEX}]

**Preprocessing**:

- IN_RANGE: `0 100`

⛔️ON_FAIL: `DISCARD_VALUE -> `

**Expression**:

`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 |

Interface utilization percentage

|CALCULATED |zyxel.ies500x.net.if.in.util[{#SNMPINDEX}]

**Preprocessing**:

- IN_RANGE: `0 100`

⛔️ON_FAIL: `DISCARD_VALUE -> `

- JAVASCRIPT: `return +parseFloat(value).toFixed(0); `

**Expression**:

`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 |

Interface utilization percentage

|CALCULATED |zyxel.ies500x.net.if.out.util[{#SNMPINDEX}]

**Preprocessing**:

- IN_RANGE: `0 100`

⛔️ON_FAIL: `DISCARD_VALUE -> `

- JAVASCRIPT: `return +parseFloat(value).toFixed(0); `

**Expression**:

`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 |

MIB: IF-MIB

A textual string containing information about the interface

|SNMP |zyxel.ies500x.net.adsl.descr[{#SNMPINDEX}]

**Preprocessing**:

- DISCARD_UNCHANGED_HEARTBEAT: `6h`

| |Network_interfaces |ZYXEL IES-500x: Slot {#ZYXEL.SLOT.ID} Port {#ZYXEL.PORTID}: Interface name |

MIB: IF-MIB

A textual string containing information about the interface

|SNMP |zyxel.ies500x.net.adsl.name[{#SNMPINDEX}]

**Preprocessing**:

- DISCARD_UNCHANGED_HEARTBEAT: `6h`

| |Network_interfaces |ZYXEL IES-500x: Slot {#ZYXEL.SLOT.ID} Port {#ZYXEL.PORTID}: Operational status |

MIB: IF-MIB

The current operational state of the interface.

The testing(3) state indicates that no operational

packets can be passed.

|SNMP |zyxel.ies500x.net.adsl.operstatus[{#SNMPINDEX}]

**Preprocessing**:

- DISCARD_UNCHANGED_HEARTBEAT: `6h`

| 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' diff --git a/templates/net/zyxel_snmp/zyxel_ies-6000_snmp/README.md b/templates/net/zyxel_snmp/zyxel_ies-6000_snmp/README.md index 8e23c681a40..1010de0c283 100644 --- a/templates/net/zyxel_snmp/zyxel_ies-6000_snmp/README.md +++ b/templates/net/zyxel_snmp/zyxel_ies-6000_snmp/README.md @@ -1,5 +1,5 @@ -# IES-6000 SNMP +# ZYXEL IES-6000 SNMP ## Overview @@ -91,8 +91,8 @@ There are no template links in this template. |Network_interfaces |ZYXEL IES-6000: Port {#SNMPINDEX}: Outgoing multicast packages |

MIB: IF-MIB

The total number of packets that higher-level protocols

requested be transmitted, and which were addressed to a

multicast address at this sub-layer, including those that

were discarded or not sent. For a MAC layer protocol, this

includes both Group and Functional addresses.

|SNMP |zyxel.ies6000.net.if.out.multicastpkts[{#SNMPINDEX}]

**Preprocessing**:

- CHANGE_PER_SECOND | |Network_interfaces |ZYXEL IES-6000: Port {#SNMPINDEX}: Outgoing broadcast packages |

MIB: IF-MIB

The total number of packets that higher-level protocols

requested be transmitted, and which were addressed to a

broadcast address at this sub-layer, including those that

were discarded or not sent.

|SNMP |zyxel.ies6000.net.if.out.broadcastpkts[{#SNMPINDEX}]

**Preprocessing**:

- CHANGE_PER_SECOND | |Network_interfaces |ZYXEL IES-6000: Port {#SNMPINDEX}: Link speed |

MIB: IF-MIB

An estimate of the interface's current bandwidth in bits per second

|SNMP |zyxel.ies6000.net.if.highspeed[{#SNMPINDEX}]

**Preprocessing**:

- MULTIPLIER: `1000000`

- DISCARD_UNCHANGED_HEARTBEAT: `6h`

| -|Network_interfaces |ZYXEL IES-6000: Port {#SNMPINDEX}: Incoming utilization |

Interface utilization percentage

|CALCULATED |zyxel.ies6000.net.if.in.util[{#SNMPINDEX}]

**Preprocessing**:

- IN_RANGE: `0 100`

⛔️ON_FAIL: `DISCARD_VALUE -> `

**Expression**:

`last(zyxel.ies6000.net.if.in.traffic[{#SNMPINDEX}]) * (last(zyxel.ies6000.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(zyxel.ies6000.net.if.highspeed[{#SNMPINDEX}]) + (last(zyxel.ies6000.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100 ` | -|Network_interfaces |ZYXEL IES-6000: Port {#SNMPINDEX}: Outgoing utilization |

Interface utilization percentage

|CALCULATED |zyxel.ies6000.net.if.out.util[{#SNMPINDEX}]

**Preprocessing**:

- IN_RANGE: `0 100`

⛔️ON_FAIL: `DISCARD_VALUE -> `

**Expression**:

`last(zyxel.ies6000.net.if.out.traffic[{#SNMPINDEX}]) * (last(zyxel.ies6000.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(zyxel.ies6000.net.if.highspeed[{#SNMPINDEX}]) + (last(zyxel.ies6000.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100 ` | +|Network_interfaces |ZYXEL IES-6000: Port {#SNMPINDEX}: Incoming utilization |

Interface utilization percentage

|CALCULATED |zyxel.ies6000.net.if.in.util[{#SNMPINDEX}]

**Preprocessing**:

- IN_RANGE: `0 100`

⛔️ON_FAIL: `DISCARD_VALUE -> `

- JAVASCRIPT: `return +parseFloat(value).toFixed(0); `

**Expression**:

`last(zyxel.ies6000.net.if.in.traffic[{#SNMPINDEX}]) * (last(zyxel.ies6000.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(zyxel.ies6000.net.if.highspeed[{#SNMPINDEX}]) + (last(zyxel.ies6000.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100 ` | +|Network_interfaces |ZYXEL IES-6000: Port {#SNMPINDEX}: Outgoing utilization |

Interface utilization percentage

|CALCULATED |zyxel.ies6000.net.if.out.util[{#SNMPINDEX}]

**Preprocessing**:

- IN_RANGE: `0 100`

⛔️ON_FAIL: `DISCARD_VALUE -> `

- JAVASCRIPT: `return +parseFloat(value).toFixed(0); `

**Expression**:

`last(zyxel.ies6000.net.if.out.traffic[{#SNMPINDEX}]) * (last(zyxel.ies6000.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(zyxel.ies6000.net.if.highspeed[{#SNMPINDEX}]) + (last(zyxel.ies6000.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100 ` | |Network_interfaces |ZYXEL IES-6000: Slot {#ZYXEL.SLOT.ID} Port {#ZYXEL.PORTID}: Interface description |

MIB: IF-MIB

A textual string containing information about the interface

|SNMP |zyxel.ies6000.net.adsl.descr[{#SNMPINDEX}]

**Preprocessing**:

- DISCARD_UNCHANGED_HEARTBEAT: `6h`

| |Network_interfaces |ZYXEL IES-6000: Slot {#ZYXEL.SLOT.ID} Port {#ZYXEL.PORTID}: Interface name |

MIB: IF-MIB

A textual string containing information about the interface

|SNMP |zyxel.ies6000.net.adsl.name[{#SNMPINDEX}]

**Preprocessing**:

- DISCARD_UNCHANGED_HEARTBEAT: `6h`

| |Network_interfaces |ZYXEL IES-6000: Slot {#ZYXEL.SLOT.ID} Port {#ZYXEL.PORTID}: Operational status |

MIB: IF-MIB

The current operational state of the interface.

The testing(3) state indicates that no operational

packets can be passed.

|SNMP |zyxel.ies6000.net.adsl.operstatus[{#SNMPINDEX}]

**Preprocessing**:

- DISCARD_UNCHANGED_HEARTBEAT: `6h`

| diff --git a/templates/net/zyxel_snmp/zyxel_ies-6000_snmp/template_net_zyxel_ies-6000_snmp.yaml b/templates/net/zyxel_snmp/zyxel_ies-6000_snmp/template_net_zyxel_ies-6000_snmp.yaml index 1022ef46946..0ffcd545bb1 100644 --- a/templates/net/zyxel_snmp/zyxel_ies-6000_snmp/template_net_zyxel_ies-6000_snmp.yaml +++ b/templates/net/zyxel_snmp/zyxel_ies-6000_snmp/template_net_zyxel_ies-6000_snmp.yaml @@ -1,6 +1,6 @@ zabbix_export: version: '5.4' - date: '2021-05-11T15:20:13Z' + date: '2021-07-22T14:50:17Z' groups: - uuid: 36bff6c29af64692839d077febfc7079 @@ -64,7 +64,7 @@ zabbix_export: snmp_oid: .1.3.6.1.2.1.1.4.0 key: zyxel.ies6000.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.ies6000.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.ies6000.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.ies6000.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.ies6000.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: 8f9073a53cee4e6fb8c36feda5185900 name: 'Ethernet interface discovery' @@ -1266,6 +1251,7 @@ zabbix_export: type: CALCULATED key: 'zyxel.ies6000.net.if.in.util[{#SNMPINDEX}]' history: 7d + value_type: FLOAT units: '%' params: 'last(//zyxel.ies6000.net.if.in.traffic[{#SNMPINDEX}]) * (last(//zyxel.ies6000.net.if.highspeed[{#SNMPINDEX}]) <> 0) /( last(//zyxel.ies6000.net.if.highspeed[{#SNMPINDEX}]) + (last(//zyxel.ies6000.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 @@ -1327,7 +1317,7 @@ zabbix_export: trigger_prototypes: - uuid: a9aac7e6c66a4a69a77f8c165f9a9d5c - expression: 'last(/ZYXEL IES-6000 SNMP/zyxel.ies6000.net.if.operstatus[{#SNMPINDEX}])=2 and last(/ZYXEL IES-6000 SNMP/zyxel.ies6000.net.if.operstatus[{#SNMPINDEX}],#1)<>last(/ZYXEL IES-6000 SNMP/zyxel.ies6000.net.if.operstatus[{#SNMPINDEX}],#2)' + expression: 'last(/ZYXEL IES-6000 SNMP/zyxel.ies6000.net.if.operstatus[{#SNMPINDEX}])=2 and (last(/ZYXEL IES-6000 SNMP/zyxel.ies6000.net.if.operstatus[{#SNMPINDEX}],#1)<>last(/ZYXEL IES-6000 SNMP/zyxel.ies6000.net.if.operstatus[{#SNMPINDEX}],#2))=1' recovery_mode: RECOVERY_EXPRESSION recovery_expression: 'last(/ZYXEL IES-6000 SNMP/zyxel.ies6000.net.if.operstatus[{#SNMPINDEX}])<>2' name: 'ZYXEL IES-6000: Port {#SNMPINDEX}: Link down' @@ -1442,6 +1432,7 @@ zabbix_export: type: CALCULATED key: 'zyxel.ies6000.net.if.out.util[{#SNMPINDEX}]' history: 7d + value_type: FLOAT units: '%' params: 'last(//zyxel.ies6000.net.if.out.traffic[{#SNMPINDEX}]) * (last(//zyxel.ies6000.net.if.highspeed[{#SNMPINDEX}]) <> 0) /( last(//zyxel.ies6000.net.if.highspeed[{#SNMPINDEX}]) + (last(//zyxel.ies6000.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.ies6000.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: 10a176c3da924a95939cd35c0d0be862 name: 'Slot discovery' diff --git a/templates/net/zyxel_snmp/zyxel_ies1248-51_snmp/README.md b/templates/net/zyxel_snmp/zyxel_ies1248-51_snmp/README.md index 7c64cc80273..e076d1a5427 100644 --- a/templates/net/zyxel_snmp/zyxel_ies1248-51_snmp/README.md +++ b/templates/net/zyxel_snmp/zyxel_ies1248-51_snmp/README.md @@ -1,5 +1,5 @@ -# IES1248-51 SNMP +# ZYXEL IES1248-51 SNMP ## Overview diff --git a/templates/net/zyxel_snmp/zyxel_ies1248-51_snmp/template_net_zyxel_ies1248-51_snmp.yaml b/templates/net/zyxel_snmp/zyxel_ies1248-51_snmp/template_net_zyxel_ies1248-51_snmp.yaml index fe4f1b4b14b..4fb0e764f82 100644 --- a/templates/net/zyxel_snmp/zyxel_ies1248-51_snmp/template_net_zyxel_ies1248-51_snmp.yaml +++ b/templates/net/zyxel_snmp/zyxel_ies1248-51_snmp/template_net_zyxel_ies1248-51_snmp.yaml @@ -1,6 +1,6 @@ zabbix_export: version: '5.4' - date: '2021-05-11T15:20:25Z' + date: '2021-07-22T14:51:12Z' groups: - uuid: 36bff6c29af64692839d077febfc7079 @@ -64,7 +64,7 @@ zabbix_export: snmp_oid: .1.3.6.1.2.1.1.4.0 key: zyxel.ies1248.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.4.1.890.1.5.13.1.1.3.1.4.0.0 key: zyxel.ies1248.fwversion delay: 1h - history: 2w + history: 7d trends: '0' value_type: CHAR description: 'MIB: ZYXEL-IESCOMMON-MIB' @@ -119,7 +119,7 @@ zabbix_export: snmp_oid: .1.3.6.1.2.1.1.6.0 key: zyxel.ies1248.location delay: 1h - history: 2w + history: 7d trends: '0' value_type: CHAR description: | @@ -143,7 +143,7 @@ zabbix_export: snmp_oid: .1.3.6.1.2.1.2.2.1.6.1 key: zyxel.ies1248.mac 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.1.1.0 key: zyxel.ies1248.model delay: 1h - history: 2w + history: 7d trends: '0' value_type: CHAR description: | @@ -205,7 +205,7 @@ zabbix_export: snmp_oid: .1.3.6.1.2.1.1.5.0 key: zyxel.ies1248.name delay: 1h - history: 2w + history: 7d trends: '0' value_type: CHAR description: | @@ -230,7 +230,7 @@ zabbix_export: snmp_oid: .1.3.6.1.4.1.890.1.5.13.1.1.2.1.3.0 key: zyxel.ies1248.serialnumber delay: 1h - history: 2w + history: 7d trends: '0' value_type: CHAR description: | @@ -772,29 +772,14 @@ zabbix_export: key: 'zyxel.ies1248.net.adsl.out.traffic[{#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: - @@ -802,7 +787,7 @@ zabbix_export: operator: REGEXP value: '.*' status: ENABLED - discover: DISCOVER + discover: NO_DISCOVER - uuid: 4b32903336ad4c9e826cfd65a89a8960 name: 'Ethernet interface discovery' diff --git a/templates/net/zyxel_snmp/zyxel_mes-3528_snmp/README.md b/templates/net/zyxel_snmp/zyxel_mes-3528_snmp/README.md index f3ca11f398c..efbf250f1b6 100644 --- a/templates/net/zyxel_snmp/zyxel_mes-3528_snmp/README.md +++ b/templates/net/zyxel_snmp/zyxel_mes-3528_snmp/README.md @@ -1,5 +1,5 @@ -# MES-3528 SNMP +# ZYXEL MES-3528 SNMP ## Overview @@ -76,8 +76,8 @@ There are no template links in this template. |Network_interfaces |ZYXEL MES-3528: Port {#SNMPINDEX}: Outgoing multicast packages |

MIB: IF-MIB

The total number of packets that higher-level protocols

requested be transmitted, and which were addressed to a

multicast address at this sub-layer, including those that

were discarded or not sent. For a MAC layer protocol, this

includes both Group and Functional addresses.

|SNMP |zyxel.3528.net.if.out.multicastpkts[{#SNMPINDEX}]

**Preprocessing**:

- CHANGE_PER_SECOND | |Network_interfaces |ZYXEL MES-3528: Port {#SNMPINDEX}: Outgoing broadcast packages |

MIB: IF-MIB

The total number of packets that higher-level protocols

requested be transmitted, and which were addressed to a

broadcast address at this sub-layer, including those that

were discarded or not sent.

|SNMP |zyxel.3528.net.if.out.broadcastpkts[{#SNMPINDEX}]

**Preprocessing**:

- CHANGE_PER_SECOND | |Network_interfaces |ZYXEL MES-3528: Port {#SNMPINDEX}: Link speed |

MIB: IF-MIB

An estimate of the interface's current bandwidth in bits per second

|SNMP |zyxel.3528.net.if.highspeed[{#SNMPINDEX}]

**Preprocessing**:

- MULTIPLIER: `1000000`

- DISCARD_UNCHANGED_HEARTBEAT: `6h`

| -|Network_interfaces |ZYXEL MES-3528: Port {#SNMPINDEX}: Incoming utilization |

Interface utilization percentage

|CALCULATED |zyxel.3528.net.if.in.util[{#SNMPINDEX}]

**Preprocessing**:

- IN_RANGE: `0 100`

⛔️ON_FAIL: `DISCARD_VALUE -> `

**Expression**:

`last(zyxel.3528.net.if.in.traffic[{#SNMPINDEX}]) * (last(zyxel.3528.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(zyxel.3528.net.if.highspeed[{#SNMPINDEX}]) + (last(zyxel.3528.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100 ` | -|Network_interfaces |ZYXEL MES-3528: Port {#SNMPINDEX}: Outgoing utilization |

Interface utilization percentage

|CALCULATED |zyxel.3528.net.if.out.util[{#SNMPINDEX}]

**Preprocessing**:

- IN_RANGE: `0 100`

⛔️ON_FAIL: `DISCARD_VALUE -> `

**Expression**:

`last(zyxel.3528.net.if.out.traffic[{#SNMPINDEX}]) * (last(zyxel.3528.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(zyxel.3528.net.if.highspeed[{#SNMPINDEX}]) + (last(zyxel.3528.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100 ` | +|Network_interfaces |ZYXEL MES-3528: Port {#SNMPINDEX}: Incoming utilization |

Interface utilization percentage

|CALCULATED |zyxel.3528.net.if.in.util[{#SNMPINDEX}]

**Preprocessing**:

- IN_RANGE: `0 100`

⛔️ON_FAIL: `DISCARD_VALUE -> `

- JAVASCRIPT: `return +parseFloat(value).toFixed(0); `

**Expression**:

`last(zyxel.3528.net.if.in.traffic[{#SNMPINDEX}]) * (last(zyxel.3528.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(zyxel.3528.net.if.highspeed[{#SNMPINDEX}]) + (last(zyxel.3528.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100 ` | +|Network_interfaces |ZYXEL MES-3528: Port {#SNMPINDEX}: Outgoing utilization |

Interface utilization percentage

|CALCULATED |zyxel.3528.net.if.out.util[{#SNMPINDEX}]

**Preprocessing**:

- IN_RANGE: `0 100`

⛔️ON_FAIL: `DISCARD_VALUE -> `

- JAVASCRIPT: `return +parseFloat(value).toFixed(0); `

**Expression**:

`last(zyxel.3528.net.if.out.traffic[{#SNMPINDEX}]) * (last(zyxel.3528.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(zyxel.3528.net.if.highspeed[{#SNMPINDEX}]) + (last(zyxel.3528.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100 ` | |Network_interfaces |ZYXEL MES-3528: SFP {#SNMPINDEX}: Status |

MIB: ZYXEL-MES3528-MIB

Transceiver module status.

|SNMP |zyxel.3528.sfp.status[{#SNMPINDEX}]

**Preprocessing**:

- DISCARD_UNCHANGED_HEARTBEAT: `1h`

| |Network_interfaces |ZYXEL MES-3528: SFP {#SNMPINDEX}: Vendor |

MIB: ZYXEL-MES3528-MIB

Transceiver module vendor name.

|SNMP |zyxel.3528.sfp.vendor[{#SNMPINDEX}]

**Preprocessing**:

- DISCARD_UNCHANGED_HEARTBEAT: `1h`

| |Network_interfaces |ZYXEL MES-3528: SFP {#SNMPINDEX}: Part number |

MIB: ZYXEL-MES3528-MIB

Part number provided by transceiver module vendor.

|SNMP |zyxel.3528.sfp.part[{#SNMPINDEX}]

**Preprocessing**:

- DISCARD_UNCHANGED_HEARTBEAT: `1h`

| diff --git a/templates/net/zyxel_snmp/zyxel_mes-3528_snmp/template_net_zyxel_mes-3528_snmp.yaml b/templates/net/zyxel_snmp/zyxel_mes-3528_snmp/template_net_zyxel_mes-3528_snmp.yaml index a10cc41925c..e54fbd380a2 100644 --- a/templates/net/zyxel_snmp/zyxel_mes-3528_snmp/template_net_zyxel_mes-3528_snmp.yaml +++ b/templates/net/zyxel_snmp/zyxel_mes-3528_snmp/template_net_zyxel_mes-3528_snmp.yaml @@ -1,6 +1,6 @@ zabbix_export: version: '5.4' - date: '2021-05-11T15:20:38Z' + date: '2021-07-22T14:51:28Z' groups: - uuid: 36bff6c29af64692839d077febfc7079 @@ -64,7 +64,7 @@ zabbix_export: snmp_oid: .1.3.6.1.2.1.1.4.0 key: zyxel.3528.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.51.1]' key: zyxel.3528.fwversion delay: 1h - history: 2w + history: 7d trends: '0' value_type: CHAR description: 'MIB: ZYXEL-MES3528-MIB' @@ -157,7 +157,7 @@ zabbix_export: snmp_oid: .1.3.6.1.2.1.1.6.0 key: zyxel.3528.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.3528.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.3528.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.3528.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.51.1.10.0 key: zyxel.3528.serialnumber delay: 1h - history: 2w + history: 7d trends: '0' value_type: CHAR description: | @@ -521,6 +521,7 @@ zabbix_export: type: CALCULATED key: 'zyxel.3528.net.if.in.util[{#SNMPINDEX}]' history: 7d + value_type: FLOAT units: '%' params: 'last(//zyxel.3528.net.if.in.traffic[{#SNMPINDEX}]) * (last(//zyxel.3528.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(//zyxel.3528.net.if.highspeed[{#SNMPINDEX}]) + (last(//zyxel.3528.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100' description: 'Interface utilization percentage' @@ -531,6 +532,10 @@ zabbix_export: - '0' - '100' error_handler: DISCARD_VALUE + - + type: JAVASCRIPT + parameters: + - 'return +parseFloat(value).toFixed(0);' tags: - tag: Application @@ -718,6 +723,7 @@ zabbix_export: type: CALCULATED key: 'zyxel.3528.net.if.out.util[{#SNMPINDEX}]' history: 7d + value_type: FLOAT units: '%' params: 'last(//zyxel.3528.net.if.out.traffic[{#SNMPINDEX}]) * (last(//zyxel.3528.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(//zyxel.3528.net.if.highspeed[{#SNMPINDEX}]) + (last(//zyxel.3528.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100' description: 'Interface utilization percentage' @@ -728,6 +734,10 @@ zabbix_export: - '0' - '100' error_handler: DISCARD_VALUE + - + type: JAVASCRIPT + parameters: + - 'return +parseFloat(value).toFixed(0);' tags: - tag: Application @@ -827,29 +837,14 @@ zabbix_export: key: 'zyxel.3528.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: - @@ -857,7 +852,7 @@ zabbix_export: operator: REGEXP value: '.*' status: ENABLED - discover: DISCOVER + discover: NO_DISCOVER - uuid: a4850c41f31a4bdfa3506c2ef3077d88 name: 'SFP with DDM discovery' diff --git a/templates/net/zyxel_snmp/zyxel_mes3500-10_snmp/README.md b/templates/net/zyxel_snmp/zyxel_mes3500-10_snmp/README.md index c810d015aa2..a7748ca1eef 100644 --- a/templates/net/zyxel_snmp/zyxel_mes3500-10_snmp/README.md +++ b/templates/net/zyxel_snmp/zyxel_mes3500-10_snmp/README.md @@ -1,5 +1,5 @@ -# MES3500-10 SNMP +# ZYXEL MES3500-10 SNMP ## Overview @@ -81,8 +81,8 @@ There are no template links in this template. |Network_interfaces |ZYXEL MES3500-10: Port {#SNMPINDEX}: Outgoing multicast packages |

MIB: IF-MIB

The total number of packets that higher-level protocols

requested be transmitted, and which were addressed to a

multicast address at this sub-layer, including those that

were discarded or not sent. For a MAC layer protocol, this

includes both Group and Functional addresses.

|SNMP |zyxel.3500_10.net.if.out.multicastpkts[{#SNMPINDEX}]

**Preprocessing**:

- CHANGE_PER_SECOND | |Network_interfaces |ZYXEL MES3500-10: Port {#SNMPINDEX}: Outgoing broadcast packages |

MIB: IF-MIB

The total number of packets that higher-level protocols

requested be transmitted, and which were addressed to a

broadcast address at this sub-layer, including those that

were discarded or not sent.

|SNMP |zyxel.3500_10.net.if.out.broadcastpkts[{#SNMPINDEX}]

**Preprocessing**:

- CHANGE_PER_SECOND | |Network_interfaces |ZYXEL MES3500-10: Port {#SNMPINDEX}: Link speed |

MIB: IF-MIB

An estimate of the interface's current bandwidth in bits per second

|SNMP |zyxel.3500_10.net.if.highspeed[{#SNMPINDEX}]

**Preprocessing**:

- MULTIPLIER: `1000000`

- DISCARD_UNCHANGED_HEARTBEAT: `6h`

| -|Network_interfaces |ZYXEL MES3500-10: Port {#SNMPINDEX}: Incoming utilization |

Interface utilization percentage

|CALCULATED |zyxel.3500_10.net.if.in.util[{#SNMPINDEX}]

**Preprocessing**:

- IN_RANGE: `0 100`

⛔️ON_FAIL: `DISCARD_VALUE -> `

**Expression**:

`last(zyxel.3500_10.net.if.in.traffic[{#SNMPINDEX}]) * (last(zyxel.3500_10.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(zyxel.3500_10.net.if.highspeed[{#SNMPINDEX}]) + (last(zyxel.3500_10.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100 ` | -|Network_interfaces |ZYXEL MES3500-10: Port {#SNMPINDEX}: Outgoing utilization |

Interface utilization percentage

|CALCULATED |zyxel.3500_10.net.if.out.util[{#SNMPINDEX}]

**Preprocessing**:

- IN_RANGE: `0 100`

⛔️ON_FAIL: `DISCARD_VALUE -> `

**Expression**:

`last(zyxel.3500_10.net.if.out.traffic[{#SNMPINDEX}]) * (last(zyxel.3500_10.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(zyxel.3500_10.net.if.highspeed[{#SNMPINDEX}]) + (last(zyxel.3500_10.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100 ` | +|Network_interfaces |ZYXEL MES3500-10: Port {#SNMPINDEX}: Incoming utilization |

Interface utilization percentage

|CALCULATED |zyxel.3500_10.net.if.in.util[{#SNMPINDEX}]

**Preprocessing**:

- IN_RANGE: `0 100`

⛔️ON_FAIL: `DISCARD_VALUE -> `

- JAVASCRIPT: `return +parseFloat(value).toFixed(0); `

**Expression**:

`last(zyxel.3500_10.net.if.in.traffic[{#SNMPINDEX}]) * (last(zyxel.3500_10.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(zyxel.3500_10.net.if.highspeed[{#SNMPINDEX}]) + (last(zyxel.3500_10.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100 ` | +|Network_interfaces |ZYXEL MES3500-10: Port {#SNMPINDEX}: Outgoing utilization |

Interface utilization percentage

|CALCULATED |zyxel.3500_10.net.if.out.util[{#SNMPINDEX}]

**Preprocessing**:

- IN_RANGE: `0 100`

⛔️ON_FAIL: `DISCARD_VALUE -> `

- JAVASCRIPT: `return +parseFloat(value).toFixed(0); `

**Expression**:

`last(zyxel.3500_10.net.if.out.traffic[{#SNMPINDEX}]) * (last(zyxel.3500_10.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(zyxel.3500_10.net.if.highspeed[{#SNMPINDEX}]) + (last(zyxel.3500_10.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100 ` | |Network_interfaces |ZYXEL MES3500-10: SFP {#SNMPINDEX}: Status |

MIB: ZYXEL-MES3500-10-MIB

Transceiver module status.

|SNMP |zyxel.3500_10.sfp.status[{#SNMPINDEX}]

**Preprocessing**:

- DISCARD_UNCHANGED_HEARTBEAT: `1h`

| |Network_interfaces |ZYXEL MES3500-10: SFP {#SNMPINDEX}: Vendor |

MIB: ZYXEL-MES3500-10-MIB

Transceiver module vendor name.

|SNMP |zyxel.3500_10.sfp.vendor[{#SNMPINDEX}]

**Preprocessing**:

- DISCARD_UNCHANGED_HEARTBEAT: `1h`

| |Network_interfaces |ZYXEL MES3500-10: SFP {#SNMPINDEX}: Part number |

MIB: ZYXEL-MES3500-10-MIB

Part number provided by transceiver module vendor.

|SNMP |zyxel.3500_10.sfp.part[{#SNMPINDEX}]

**Preprocessing**:

- DISCARD_UNCHANGED_HEARTBEAT: `1h`

| diff --git a/templates/net/zyxel_snmp/zyxel_mes3500-10_snmp/template_net_zyxel_mes3500-10_snmp.yaml b/templates/net/zyxel_snmp/zyxel_mes3500-10_snmp/template_net_zyxel_mes3500-10_snmp.yaml index e5b7900bd05..824be0081d7 100644 --- a/templates/net/zyxel_snmp/zyxel_mes3500-10_snmp/template_net_zyxel_mes3500-10_snmp.yaml +++ b/templates/net/zyxel_snmp/zyxel_mes3500-10_snmp/template_net_zyxel_mes3500-10_snmp.yaml @@ -1,6 +1,6 @@ zabbix_export: version: '5.4' - date: '2021-05-11T15:20:53Z' + date: '2021-07-22T14:51:39Z' groups: - uuid: 36bff6c29af64692839d077febfc7079 @@ -64,7 +64,7 @@ zabbix_export: snmp_oid: .1.3.6.1.2.1.1.4.0 key: zyxel.3500_10.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.80.1]' key: zyxel.3500_10.fwversion delay: 1h - history: 2w + history: 7d trends: '0' value_type: CHAR description: 'MIB: ZYXEL-MES3500-10-MIB' @@ -157,7 +157,7 @@ zabbix_export: snmp_oid: .1.3.6.1.2.1.1.6.0 key: zyxel.3500_10.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.3500_10.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.3500_10.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.3500_10.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.80.1.10.0 key: zyxel.3500_10.serialnumber delay: 1h - history: 2w + history: 7d trends: '0' value_type: CHAR description: | @@ -556,6 +556,7 @@ zabbix_export: type: CALCULATED key: 'zyxel.3500_10.net.if.in.util[{#SNMPINDEX}]' history: 7d + value_type: FLOAT units: '%' params: 'last(//zyxel.3500_10.net.if.in.traffic[{#SNMPINDEX}]) * (last(//zyxel.3500_10.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(//zyxel.3500_10.net.if.highspeed[{#SNMPINDEX}]) + (last(//zyxel.3500_10.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100' description: 'Interface utilization percentage' @@ -566,6 +567,10 @@ zabbix_export: - '0' - '100' error_handler: DISCARD_VALUE + - + type: JAVASCRIPT + parameters: + - 'return +parseFloat(value).toFixed(0);' tags: - tag: Application @@ -753,6 +758,7 @@ zabbix_export: type: CALCULATED key: 'zyxel.3500_10.net.if.out.util[{#SNMPINDEX}]' history: 7d + value_type: FLOAT units: '%' params: 'last(//zyxel.3500_10.net.if.out.traffic[{#SNMPINDEX}]) * (last(//zyxel.3500_10.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(//zyxel.3500_10.net.if.highspeed[{#SNMPINDEX}]) + (last(//zyxel.3500_10.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100' description: 'Interface utilization percentage' @@ -763,6 +769,10 @@ zabbix_export: - '0' - '100' error_handler: DISCARD_VALUE + - + type: JAVASCRIPT + parameters: + - 'return +parseFloat(value).toFixed(0);' tags: - tag: Application @@ -862,29 +872,14 @@ zabbix_export: key: 'zyxel.3500_10.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: - @@ -892,7 +887,7 @@ zabbix_export: operator: REGEXP value: '.*' status: ENABLED - discover: DISCOVER + discover: NO_DISCOVER - uuid: 1c6952a276fa454bb83f64a11424b7ec name: 'SFP with DDM discovery' diff --git a/templates/net/zyxel_snmp/zyxel_mes3500-24_snmp/README.md b/templates/net/zyxel_snmp/zyxel_mes3500-24_snmp/README.md index 66fc6adbb45..60659cdb0d2 100644 --- a/templates/net/zyxel_snmp/zyxel_mes3500-24_snmp/README.md +++ b/templates/net/zyxel_snmp/zyxel_mes3500-24_snmp/README.md @@ -1,5 +1,5 @@ -# MES3500-24 SNMP +# ZYXEL MES3500-24 SNMP ## Overview @@ -81,8 +81,8 @@ There are no template links in this template. |Network_interfaces |ZYXEL MES3500-24: Port {#SNMPINDEX}: Outgoing multicast packages |

MIB: IF-MIB

The total number of packets that higher-level protocols

requested be transmitted, and which were addressed to a

multicast address at this sub-layer, including those that

were discarded or not sent. For a MAC layer protocol, this

includes both Group and Functional addresses.

|SNMP |zyxel.3500_24.net.if.out.multicastpkts[{#SNMPINDEX}]

**Preprocessing**:

- CHANGE_PER_SECOND | |Network_interfaces |ZYXEL MES3500-24: Port {#SNMPINDEX}: Outgoing broadcast packages |

MIB: IF-MIB

The total number of packets that higher-level protocols

requested be transmitted, and which were addressed to a

broadcast address at this sub-layer, including those that

were discarded or not sent.

|SNMP |zyxel.3500_24.net.if.out.broadcastpkts[{#SNMPINDEX}]

**Preprocessing**:

- CHANGE_PER_SECOND | |Network_interfaces |ZYXEL MES3500-24: Port {#SNMPINDEX}: Link speed |

MIB: IF-MIB

An estimate of the interface's current bandwidth in bits per second

|SNMP |zyxel.3500_24.net.if.highspeed[{#SNMPINDEX}]

**Preprocessing**:

- MULTIPLIER: `1000000`

- DISCARD_UNCHANGED_HEARTBEAT: `6h`

| -|Network_interfaces |ZYXEL MES3500-24: Port {#SNMPINDEX}: Incoming utilization |

Interface utilization percentage

|CALCULATED |zyxel.3500_24.net.if.in.util[{#SNMPINDEX}]

**Preprocessing**:

- IN_RANGE: `0 100`

⛔️ON_FAIL: `DISCARD_VALUE -> `

**Expression**:

`last(zyxel.3500_24.net.if.in.traffic[{#SNMPINDEX}]) * (last(zyxel.3500_24.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(zyxel.3500_24.net.if.highspeed[{#SNMPINDEX}]) + (last(zyxel.3500_24.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100 ` | -|Network_interfaces |ZYXEL MES3500-24: Port {#SNMPINDEX}: Outgoing utilization |

Interface utilization percentage

|CALCULATED |zyxel.3500_24.net.if.out.util[{#SNMPINDEX}]

**Preprocessing**:

- IN_RANGE: `0 100`

⛔️ON_FAIL: `DISCARD_VALUE -> `

**Expression**:

`last(zyxel.3500_24.net.if.out.traffic[{#SNMPINDEX}]) * (last(zyxel.3500_24.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(zyxel.3500_24.net.if.highspeed[{#SNMPINDEX}]) + (last(zyxel.3500_24.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100 ` | +|Network_interfaces |ZYXEL MES3500-24: Port {#SNMPINDEX}: Incoming utilization |

Interface utilization percentage

|CALCULATED |zyxel.3500_24.net.if.in.util[{#SNMPINDEX}]

**Preprocessing**:

- IN_RANGE: `0 100`

⛔️ON_FAIL: `DISCARD_VALUE -> `

- JAVASCRIPT: `return +parseFloat(value).toFixed(0); `

**Expression**:

`last(zyxel.3500_24.net.if.in.traffic[{#SNMPINDEX}]) * (last(zyxel.3500_24.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(zyxel.3500_24.net.if.highspeed[{#SNMPINDEX}]) + (last(zyxel.3500_24.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100 ` | +|Network_interfaces |ZYXEL MES3500-24: Port {#SNMPINDEX}: Outgoing utilization |

Interface utilization percentage

|CALCULATED |zyxel.3500_24.net.if.out.util[{#SNMPINDEX}]

**Preprocessing**:

- IN_RANGE: `0 100`

⛔️ON_FAIL: `DISCARD_VALUE -> `

- JAVASCRIPT: `return +parseFloat(value).toFixed(0); `

**Expression**:

`last(zyxel.3500_24.net.if.out.traffic[{#SNMPINDEX}]) * (last(zyxel.3500_24.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(zyxel.3500_24.net.if.highspeed[{#SNMPINDEX}]) + (last(zyxel.3500_24.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100 ` | |Network_interfaces |ZYXEL MES3500-24: SFP {#SNMPINDEX}: Status |

MIB: ZYXEL-MES3500-24-MIB

Transceiver module status.

|SNMP |zyxel.3500_24.sfp.status[{#SNMPINDEX}]

**Preprocessing**:

- DISCARD_UNCHANGED_HEARTBEAT: `1h`

| |Network_interfaces |ZYXEL MES3500-24: SFP {#SNMPINDEX}: Vendor |

MIB: ZYXEL-MES3500-24-MIB

Transceiver module vendor name.

|SNMP |zyxel.3500_24.sfp.vendor[{#SNMPINDEX}]

**Preprocessing**:

- DISCARD_UNCHANGED_HEARTBEAT: `1h`

| |Network_interfaces |ZYXEL MES3500-24: SFP {#SNMPINDEX}: Part number |

MIB: ZYXEL-MES3500-24-MIB

Part number provided by transceiver module vendor.

|SNMP |zyxel.3500_24.sfp.part[{#SNMPINDEX}]

**Preprocessing**:

- DISCARD_UNCHANGED_HEARTBEAT: `1h`

| diff --git a/templates/net/zyxel_snmp/zyxel_mes3500-24_snmp/template_net_zyxel_mes3500-24_snmp.yaml b/templates/net/zyxel_snmp/zyxel_mes3500-24_snmp/template_net_zyxel_mes3500-24_snmp.yaml index 154c7e331df..8869a9db8c3 100644 --- a/templates/net/zyxel_snmp/zyxel_mes3500-24_snmp/template_net_zyxel_mes3500-24_snmp.yaml +++ b/templates/net/zyxel_snmp/zyxel_mes3500-24_snmp/template_net_zyxel_mes3500-24_snmp.yaml @@ -1,6 +1,6 @@ zabbix_export: version: '5.4' - date: '2021-05-11T15:21:05Z' + date: '2021-07-22T14:51:53Z' groups: - uuid: 36bff6c29af64692839d077febfc7079 @@ -64,7 +64,7 @@ zabbix_export: snmp_oid: .1.3.6.1.2.1.1.4.0 key: zyxel.3500_24.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.68.1]' key: zyxel.3500_24.fwversion delay: 1h - history: 2w + history: 7d trends: '0' value_type: CHAR description: 'MIB: ZYXEL-MES3500-24-MIB' @@ -157,7 +157,7 @@ zabbix_export: snmp_oid: .1.3.6.1.2.1.1.6.0 key: zyxel.3500_24.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.3500_24.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.3500_24.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.3500_24.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.68.1.10.0 key: zyxel.3500_24.serialnumber delay: 1h - history: 2w + history: 7d trends: '0' value_type: CHAR description: | @@ -556,6 +556,7 @@ zabbix_export: type: CALCULATED key: 'zyxel.3500_24.net.if.in.util[{#SNMPINDEX}]' history: 7d + value_type: FLOAT units: '%' params: 'last(//zyxel.3500_24.net.if.in.traffic[{#SNMPINDEX}]) * (last(//zyxel.3500_24.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(//zyxel.3500_24.net.if.highspeed[{#SNMPINDEX}]) + (last(//zyxel.3500_24.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100' description: 'Interface utilization percentage' @@ -566,6 +567,10 @@ zabbix_export: - '0' - '100' error_handler: DISCARD_VALUE + - + type: JAVASCRIPT + parameters: + - 'return +parseFloat(value).toFixed(0);' tags: - tag: Application @@ -753,6 +758,7 @@ zabbix_export: type: CALCULATED key: 'zyxel.3500_24.net.if.out.util[{#SNMPINDEX}]' history: 7d + value_type: FLOAT units: '%' params: 'last(//zyxel.3500_24.net.if.out.traffic[{#SNMPINDEX}]) * (last(//zyxel.3500_24.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(//zyxel.3500_24.net.if.highspeed[{#SNMPINDEX}]) + (last(//zyxel.3500_24.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100' description: 'Interface utilization percentage' @@ -763,6 +769,10 @@ zabbix_export: - '0' - '100' error_handler: DISCARD_VALUE + - + type: JAVASCRIPT + parameters: + - 'return +parseFloat(value).toFixed(0);' tags: - tag: Application @@ -862,29 +872,14 @@ zabbix_export: key: 'zyxel.3500_24.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: - @@ -892,7 +887,7 @@ zabbix_export: operator: REGEXP value: '.*' status: ENABLED - discover: DISCOVER + discover: NO_DISCOVER - uuid: 302fdabe174e425d9f32d36694453331 name: 'SFP with DDM discovery' diff --git a/templates/net/zyxel_snmp/zyxel_mgs-3712_snmp/README.md b/templates/net/zyxel_snmp/zyxel_mgs-3712_snmp/README.md index 941d49e9bc2..6b43a8dc29c 100644 --- a/templates/net/zyxel_snmp/zyxel_mgs-3712_snmp/README.md +++ b/templates/net/zyxel_snmp/zyxel_mgs-3712_snmp/README.md @@ -1,5 +1,5 @@ -# MGS-3712 SNMP +# ZYXEL MGS-3712 SNMP ## Overview @@ -80,8 +80,8 @@ There are no template links in this template. |Network_interfaces |ZYXEL MGS-3712: Port {#SNMPINDEX}: Outgoing multicast packages |

MIB: IF-MIB

The total number of packets that higher-level protocols

requested be transmitted, and which were addressed to a

multicast address at this sub-layer, including those that

were discarded or not sent. For a MAC layer protocol, this

includes both Group and Functional addresses.

|SNMP |zyxel.3712.net.if.out.multicastpkts[{#SNMPINDEX}]

**Preprocessing**:

- CHANGE_PER_SECOND | |Network_interfaces |ZYXEL MGS-3712: Port {#SNMPINDEX}: Outgoing broadcast packages |

MIB: IF-MIB

The total number of packets that higher-level protocols

requested be transmitted, and which were addressed to a

broadcast address at this sub-layer, including those that

were discarded or not sent.

|SNMP |zyxel.3712.net.if.out.broadcastpkts[{#SNMPINDEX}]

**Preprocessing**:

- CHANGE_PER_SECOND | |Network_interfaces |ZYXEL MGS-3712: Port {#SNMPINDEX}: Link speed |

MIB: IF-MIB

An estimate of the interface's current bandwidth in bits per second

|SNMP |zyxel.3712.net.if.highspeed[{#SNMPINDEX}]

**Preprocessing**:

- MULTIPLIER: `1000000`

- DISCARD_UNCHANGED_HEARTBEAT: `6h`

| -|Network_interfaces |ZYXEL MGS-3712: Port {#SNMPINDEX}: Incoming utilization |

Interface utilization percentage

|CALCULATED |zyxel.3712.net.if.in.util[{#SNMPINDEX}]

**Preprocessing**:

- IN_RANGE: `0 100`

⛔️ON_FAIL: `DISCARD_VALUE -> `

**Expression**:

`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 ` | -|Network_interfaces |ZYXEL MGS-3712: Port {#SNMPINDEX}: Outgoing utilization |

Interface utilization percentage

|CALCULATED |zyxel.3712.net.if.out.util[{#SNMPINDEX}]

**Preprocessing**:

- IN_RANGE: `0 100`

⛔️ON_FAIL: `DISCARD_VALUE -> `

**Expression**:

`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 ` | +|Network_interfaces |ZYXEL MGS-3712: Port {#SNMPINDEX}: Incoming utilization |

Interface utilization percentage

|CALCULATED |zyxel.3712.net.if.in.util[{#SNMPINDEX}]

**Preprocessing**:

- IN_RANGE: `0 100`

⛔️ON_FAIL: `DISCARD_VALUE -> `

- JAVASCRIPT: `return +parseFloat(value).toFixed(0); `

**Expression**:

`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 ` | +|Network_interfaces |ZYXEL MGS-3712: Port {#SNMPINDEX}: Outgoing utilization |

Interface utilization percentage

|CALCULATED |zyxel.3712.net.if.out.util[{#SNMPINDEX}]

**Preprocessing**:

- IN_RANGE: `0 100`

⛔️ON_FAIL: `DISCARD_VALUE -> `

- JAVASCRIPT: `return +parseFloat(value).toFixed(0); `

**Expression**:

`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 ` | |Network_interfaces |ZYXEL MGS-3712: SFP {#SNMPINDEX}: Status |

MIB: ZYXEL-MGS3712F-MIB

Transceiver module status.

|SNMP |zyxel.3712.sfp.status[{#SNMPINDEX}]

**Preprocessing**:

- DISCARD_UNCHANGED_HEARTBEAT: `1h`

| |Network_interfaces |ZYXEL MGS-3712: SFP {#SNMPINDEX}: Vendor |

MIB: ZYXEL-MGS3712F-MIB

Transceiver module vendor name.

|SNMP |zyxel.3712.sfp.vendor[{#SNMPINDEX}]

**Preprocessing**:

- DISCARD_UNCHANGED_HEARTBEAT: `1h`

| |Network_interfaces |ZYXEL MGS-3712: SFP {#SNMPINDEX}: Part number |

MIB: ZYXEL-MGS3712F-MIB

Part number provided by transceiver module vendor.

|SNMP |zyxel.3712.sfp.part[{#SNMPINDEX}]

**Preprocessing**:

- DISCARD_UNCHANGED_HEARTBEAT: `1h`

| 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' diff --git a/templates/net/zyxel_snmp/zyxel_mgs-3712f_snmp/README.md b/templates/net/zyxel_snmp/zyxel_mgs-3712f_snmp/README.md index 420d2e89f70..f71bd2a886d 100644 --- a/templates/net/zyxel_snmp/zyxel_mgs-3712f_snmp/README.md +++ b/templates/net/zyxel_snmp/zyxel_mgs-3712f_snmp/README.md @@ -1,5 +1,5 @@ -# MGS-3712F SNMP +# ZYXEL MGS-3712F SNMP ## Overview @@ -80,8 +80,8 @@ There are no template links in this template. |Network_interfaces |ZYXEL MGS-3712F: Port {#SNMPINDEX}: Outgoing multicast packages |

MIB: IF-MIB

The total number of packets that higher-level protocols

requested be transmitted, and which were addressed to a

multicast address at this sub-layer, including those that

were discarded or not sent. For a MAC layer protocol, this

includes both Group and Functional addresses.

|SNMP |zyxel.3712f.net.if.out.multicastpkts[{#SNMPINDEX}]

**Preprocessing**:

- CHANGE_PER_SECOND | |Network_interfaces |ZYXEL MGS-3712F: Port {#SNMPINDEX}: Outgoing broadcast packages |

MIB: IF-MIB

The total number of packets that higher-level protocols

requested be transmitted, and which were addressed to a

broadcast address at this sub-layer, including those that

were discarded or not sent.

|SNMP |zyxel.3712f.net.if.out.broadcastpkts[{#SNMPINDEX}]

**Preprocessing**:

- CHANGE_PER_SECOND | |Network_interfaces |ZYXEL MGS-3712F: Port {#SNMPINDEX}: Link speed |

MIB: IF-MIB

An estimate of the interface's current bandwidth in bits per second

|SNMP |zyxel.3712f.net.if.highspeed[{#SNMPINDEX}]

**Preprocessing**:

- MULTIPLIER: `1000000`

- DISCARD_UNCHANGED_HEARTBEAT: `6h`

| -|Network_interfaces |ZYXEL MGS-3712F: Port {#SNMPINDEX}: Incoming utilization |

Interface utilization percentage

|CALCULATED |zyxel.3712f.net.if.in.util[{#SNMPINDEX}]

**Preprocessing**:

- IN_RANGE: `0 100`

⛔️ON_FAIL: `DISCARD_VALUE -> `

**Expression**:

`last(zyxel.3712f.net.if.in.traffic[{#SNMPINDEX}]) * (last(zyxel.3712f.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(zyxel.3712f.net.if.highspeed[{#SNMPINDEX}]) + (last(zyxel.3712f.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100 ` | -|Network_interfaces |ZYXEL MGS-3712F: Port {#SNMPINDEX}: Outgoing utilization |

Interface utilization percentage

|CALCULATED |zyxel.3712f.net.if.out.util[{#SNMPINDEX}]

**Preprocessing**:

- IN_RANGE: `0 100`

⛔️ON_FAIL: `DISCARD_VALUE -> `

**Expression**:

`last(zyxel.3712f.net.if.out.traffic[{#SNMPINDEX}]) * (last(zyxel.3712f.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(zyxel.3712f.net.if.highspeed[{#SNMPINDEX}]) + (last(zyxel.3712f.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100 ` | +|Network_interfaces |ZYXEL MGS-3712F: Port {#SNMPINDEX}: Incoming utilization |

Interface utilization percentage

|CALCULATED |zyxel.3712f.net.if.in.util[{#SNMPINDEX}]

**Preprocessing**:

- IN_RANGE: `0 100`

⛔️ON_FAIL: `DISCARD_VALUE -> `

- JAVASCRIPT: `return +parseFloat(value).toFixed(0); `

**Expression**:

`last(zyxel.3712f.net.if.in.traffic[{#SNMPINDEX}]) * (last(zyxel.3712f.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(zyxel.3712f.net.if.highspeed[{#SNMPINDEX}]) + (last(zyxel.3712f.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100 ` | +|Network_interfaces |ZYXEL MGS-3712F: Port {#SNMPINDEX}: Outgoing utilization |

Interface utilization percentage

|CALCULATED |zyxel.3712f.net.if.out.util[{#SNMPINDEX}]

**Preprocessing**:

- IN_RANGE: `0 100`

⛔️ON_FAIL: `DISCARD_VALUE -> `

- JAVASCRIPT: `return +parseFloat(value).toFixed(0); `

**Expression**:

`last(zyxel.3712f.net.if.out.traffic[{#SNMPINDEX}]) * (last(zyxel.3712f.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(zyxel.3712f.net.if.highspeed[{#SNMPINDEX}]) + (last(zyxel.3712f.net.if.highspeed[{#SNMPINDEX}]) = 0) ) * 100 ` | |Network_interfaces |ZYXEL MGS-3712F: SFP {#SNMPINDEX}: Status |

MIB: ZYXEL-MGS3712F-MIB

Transceiver module status.

|SNMP |zyxel.3712f.sfp.status[{#SNMPINDEX}]

**Preprocessing**:

- DISCARD_UNCHANGED_HEARTBEAT: `1h`

| |Network_interfaces |ZYXEL MGS-3712F: SFP {#SNMPINDEX}: Vendor |

MIB: ZYXEL-MGS3712F-MIB

Transceiver module vendor name.

|SNMP |zyxel.3712f.sfp.vendor[{#SNMPINDEX}]

**Preprocessing**:

- DISCARD_UNCHANGED_HEARTBEAT: `1h`

| |Network_interfaces |ZYXEL MGS-3712F: SFP {#SNMPINDEX}: Part number |

MIB: ZYXEL-MGS3712F-MIB

Part number provided by transceiver module vendor.

|SNMP |zyxel.3712f.sfp.part[{#SNMPINDEX}]

**Preprocessing**:

- DISCARD_UNCHANGED_HEARTBEAT: `1h`

| diff --git a/templates/net/zyxel_snmp/zyxel_mgs-3712f_snmp/template_net_zyxel_mgs-3712f_snmp.yaml b/templates/net/zyxel_snmp/zyxel_mgs-3712f_snmp/template_net_zyxel_mgs-3712f_snmp.yaml index 1b30fa40af0..c18454d0131 100644 --- a/templates/net/zyxel_snmp/zyxel_mgs-3712f_snmp/template_net_zyxel_mgs-3712f_snmp.yaml +++ b/templates/net/zyxel_snmp/zyxel_mgs-3712f_snmp/template_net_zyxel_mgs-3712f_snmp.yaml @@ -1,6 +1,6 @@ zabbix_export: version: '5.4' - date: '2021-05-11T15:22:12Z' + date: '2021-07-22T14:52:40Z' groups: - uuid: 36bff6c29af64692839d077febfc7079 @@ -63,7 +63,7 @@ zabbix_export: snmp_oid: .1.3.6.1.2.1.1.4.0 key: zyxel.3712f.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.48.1]' key: zyxel.3712f.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.3712f.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.3712f.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.3712f.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.3712f.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.48.1.10.0 key: zyxel.3712f.serialnumber delay: 1h - history: 2w + history: 7d trends: '0' value_type: CHAR description: | @@ -567,6 +567,7 @@ zabbix_export: type: CALCULATED key: 'zyxel.3712f.net.if.in.util[{#SNMPINDEX}]' history: 7d + value_type: FLOAT units: '%' params: 'last(//zyxel.3712f.net.if.in.traffic[{#SNMPINDEX}]) * (last(//zyxel.3712f.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(//zyxel.3712f.net.if.highspeed[{#SNMPINDEX}]) + (last(//zyxel.3712f.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.3712f.net.if.out.util[{#SNMPINDEX}]' history: 7d + value_type: FLOAT units: '%' params: 'last(//zyxel.3712f.net.if.out.traffic[{#SNMPINDEX}]) * (last(//zyxel.3712f.net.if.highspeed[{#SNMPINDEX}]) <> 0) / ( last(//zyxel.3712f.net.if.highspeed[{#SNMPINDEX}]) + (last(//zyxel.3712f.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.3712f.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: d48eedbbb8ad448da866d11d6f40ce91 name: 'SFP with DDM discovery' 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 |

MIB: IF-MIB

The total number of packets that higher-level protocols

requested be transmitted, and which were addressed to a

multicast address at this sub-layer, including those that

were discarded or not sent. For a MAC layer protocol, this

includes both Group and Functional addresses.

|SNMP |zyxel.3500_24s.net.if.out.multicastpkts[{#SNMPINDEX}]

**Preprocessing**:

- CHANGE_PER_SECOND | |Network_interfaces |ZYXEL MES3500-24S: Port {#SNMPINDEX}: Outgoing broadcast packages |

MIB: IF-MIB

The total number of packets that higher-level protocols

requested be transmitted, and which were addressed to a

broadcast address at this sub-layer, including those that

were discarded or not sent.

|SNMP |zyxel.3500_24s.net.if.out.broadcastpkts[{#SNMPINDEX}]

**Preprocessing**:

- CHANGE_PER_SECOND | |Network_interfaces |ZYXEL MES3500-24S: Port {#SNMPINDEX}: Link speed |

MIB: IF-MIB

An estimate of the interface's current bandwidth in bits per second

|SNMP |zyxel.3500_24s.net.if.highspeed[{#SNMPINDEX}]

**Preprocessing**:

- MULTIPLIER: `1000000`

- DISCARD_UNCHANGED_HEARTBEAT: `6h`

| -|Network_interfaces |ZYXEL MES3500-24S: Port {#SNMPINDEX}: Incoming utilization |

Interface utilization percentage

|CALCULATED |zyxel.3500_24s.net.if.in.util[{#SNMPINDEX}]

**Preprocessing**:

- IN_RANGE: `0 100`

⛔️ON_FAIL: `DISCARD_VALUE -> `

**Expression**:

`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 |

Interface utilization percentage

|CALCULATED |zyxel.3500_24s.net.if.out.util[{#SNMPINDEX}]

**Preprocessing**:

- IN_RANGE: `0 100`

⛔️ON_FAIL: `DISCARD_VALUE -> `

**Expression**:

`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 |

Interface utilization percentage

|CALCULATED |zyxel.3500_24s.net.if.in.util[{#SNMPINDEX}]

**Preprocessing**:

- IN_RANGE: `0 100`

⛔️ON_FAIL: `DISCARD_VALUE -> `

- JAVASCRIPT: `return +parseFloat(value).toFixed(0); `

**Expression**:

`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 |

Interface utilization percentage

|CALCULATED |zyxel.3500_24s.net.if.out.util[{#SNMPINDEX}]

**Preprocessing**:

- IN_RANGE: `0 100`

⛔️ON_FAIL: `DISCARD_VALUE -> `

- JAVASCRIPT: `return +parseFloat(value).toFixed(0); `

**Expression**:

`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 |

MIB: ZYXEL-TRANSCEIVER-MIB

Transceiver module type.

|SNMP |zyxel.3500_24s.sfp.status[{#SNMPINDEX}]

**Preprocessing**:

- DISCARD_UNCHANGED_HEARTBEAT: `1h`

| |Network_interfaces |ZYXEL MES3500-24S: SFP {#SNMPINDEX}: Vendor |

MIB: ZYXEL-TRANSCEIVER-MIB

Transceiver module vendor name.

|SNMP |zyxel.3500_24s.sfp.vendor[{#SNMPINDEX}]

**Preprocessing**:

- DISCARD_UNCHANGED_HEARTBEAT: `1h`

| |Network_interfaces |ZYXEL MES3500-24S: SFP {#SNMPINDEX}: Part number |

MIB: ZYXEL-TRANSCEIVER-MIB

Part number provided by transceiver module vendor.

|SNMP |zyxel.3500_24s.sfp.part[{#SNMPINDEX}]

**Preprocessing**:

- DISCARD_UNCHANGED_HEARTBEAT: `1h`

| 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' diff --git a/templates/net/zyxel_snmp/zyxel_mgs3520-28x_snmp/README.md b/templates/net/zyxel_snmp/zyxel_mgs3520-28x_snmp/README.md index 15329cace06..74e5ee9f774 100644 --- a/templates/net/zyxel_snmp/zyxel_mgs3520-28x_snmp/README.md +++ b/templates/net/zyxel_snmp/zyxel_mgs3520-28x_snmp/README.md @@ -1,5 +1,5 @@ -# MGS3520-28x SNMP +# ZYXEL MGS3520-28x SNMP ## Overview @@ -83,8 +83,8 @@ There are no template links in this template. |Network_interfaces |ZYXEL MGS3520-28x: Port {#SNMPINDEX}: Outgoing multicast packages |

MIB: IF-MIB

The total number of packets that higher-level protocols

requested be transmitted, and which were addressed to a

multicast address at this sub-layer, including those that

were discarded or not sent. For a MAC layer protocol, this

includes both Group and Functional addresses.

|SNMP |zyxel.3520_28.net.if.out.multicastpkts[{#SNMPINDEX}]

**Preprocessing**:

- CHANGE_PER_SECOND | |Network_interfaces |ZYXEL MGS3520-28x: Port {#SNMPINDEX}: Outgoing broadcast packages |

MIB: IF-MIB

The total number of packets that higher-level protocols

requested be transmitted, and which were addressed to a

broadcast address at this sub-layer, including those that

were discarded or not sent.

|SNMP |zyxel.3520_28.net.if.out.broadcastpkts[{#SNMPINDEX}]

**Preprocessing**:

- CHANGE_PER_SECOND | |Network_interfaces |ZYXEL MGS3520-28x: Port {#SNMPINDEX}: Link speed |

MIB: IF-MIB

An estimate of the interface's current bandwidth in bits per second

|SNMP |zyxel.3520_28.net.if.highspeed[{#SNMPINDEX}]

**Preprocessing**:

- MULTIPLIER: `1000000`

- DISCARD_UNCHANGED_HEARTBEAT: `6h`

| -|Network_interfaces |ZYXEL MGS3520-28x: Port {#SNMPINDEX}: Incoming utilization |

Interface utilization percentage

|CALCULATED |zyxel.3520_28.net.if.in.util[{#SNMPINDEX}]

**Preprocessing**:

- IN_RANGE: `0 100`

⛔️ON_FAIL: `DISCARD_VALUE -> `

**Expression**:

`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 ` | -|Network_interfaces |ZYXEL MGS3520-28x: Port {#SNMPINDEX}: Outgoing utilization |

Interface utilization percentage

|CALCULATED |zyxel.3520_28.net.if.out.util[{#SNMPINDEX}]

**Preprocessing**:

- IN_RANGE: `0 100`

⛔️ON_FAIL: `DISCARD_VALUE -> `

**Expression**:

`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 ` | +|Network_interfaces |ZYXEL MGS3520-28x: Port {#SNMPINDEX}: Incoming utilization |

Interface utilization percentage

|CALCULATED |zyxel.3520_28.net.if.in.util[{#SNMPINDEX}]

**Preprocessing**:

- IN_RANGE: `0 100`

⛔️ON_FAIL: `DISCARD_VALUE -> `

- JAVASCRIPT: `return +parseFloat(value).toFixed(0); `

**Expression**:

`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 ` | +|Network_interfaces |ZYXEL MGS3520-28x: Port {#SNMPINDEX}: Outgoing utilization |

Interface utilization percentage

|CALCULATED |zyxel.3520_28.net.if.out.util[{#SNMPINDEX}]

**Preprocessing**:

- IN_RANGE: `0 100`

⛔️ON_FAIL: `DISCARD_VALUE -> `

- JAVASCRIPT: `return +parseFloat(value).toFixed(0); `

**Expression**:

`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 ` | |Network_interfaces |ZYXEL MGS3520-28x: SFP {#SNMPINDEX}: Status |

MIB: ZYXEL-TRANSCEIVER-MIB

Transceiver module type.

|SNMP |zyxel.3520_28.sfp.status[{#SNMPINDEX}]

**Preprocessing**:

- DISCARD_UNCHANGED_HEARTBEAT: `1h`

| |Network_interfaces |ZYXEL MGS3520-28x: SFP {#SNMPINDEX}: Vendor |

MIB: ZYXEL-TRANSCEIVER-MIB

Transceiver module vendor name.

|SNMP |zyxel.3520_28.sfp.vendor[{#SNMPINDEX}]

**Preprocessing**:

- DISCARD_UNCHANGED_HEARTBEAT: `1h`

| |Network_interfaces |ZYXEL MGS3520-28x: SFP {#SNMPINDEX}: Part number |

MIB: ZYXEL-TRANSCEIVER-MIB

Part number provided by transceiver module vendor.

|SNMP |zyxel.3520_28.sfp.part[{#SNMPINDEX}]

**Preprocessing**:

- DISCARD_UNCHANGED_HEARTBEAT: `1h`

| 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' 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 |

MIB: IF-MIB

The total number of packets that higher-level protocols

requested be transmitted, and which were addressed to a

multicast address at this sub-layer, including those that

were discarded or not sent. For a MAC layer protocol, this

includes both Group and Functional addresses.

|SNMP |zyxel.4728f.net.if.out.multicastpkts[{#SNMPINDEX}]

**Preprocessing**:

- CHANGE_PER_SECOND | |Network_interfaces |ZYXEL XGS-4728F: Port {#SNMPINDEX}: Outgoing broadcast packages |

MIB: IF-MIB

The total number of packets that higher-level protocols

requested be transmitted, and which were addressed to a

broadcast address at this sub-layer, including those that

were discarded or not sent.

|SNMP |zyxel.4728f.net.if.out.broadcastpkts[{#SNMPINDEX}]

**Preprocessing**:

- CHANGE_PER_SECOND | |Network_interfaces |ZYXEL XGS-4728F: Port {#SNMPINDEX}: Link speed |

MIB: IF-MIB

An estimate of the interface's current bandwidth in bits per second

|SNMP |zyxel.4728f.net.if.highspeed[{#SNMPINDEX}]

**Preprocessing**:

- MULTIPLIER: `1000000`

- DISCARD_UNCHANGED_HEARTBEAT: `6h`

| -|Network_interfaces |ZYXEL XGS-4728F: Port {#SNMPINDEX}: Incoming utilization |

Interface utilization percentage

|CALCULATED |zyxel.4728f.net.if.in.util[{#SNMPINDEX}]

**Preprocessing**:

- IN_RANGE: `0 100`

⛔️ON_FAIL: `DISCARD_VALUE -> `

**Expression**:

`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 |

Interface utilization percentage

|CALCULATED |zyxel.4728f.net.if.out.util[{#SNMPINDEX}]

**Preprocessing**:

- IN_RANGE: `0 100`

⛔️ON_FAIL: `DISCARD_VALUE -> `

**Expression**:

`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 |

Interface utilization percentage

|CALCULATED |zyxel.4728f.net.if.in.util[{#SNMPINDEX}]

**Preprocessing**:

- IN_RANGE: `0 100`

⛔️ON_FAIL: `DISCARD_VALUE -> `

- JAVASCRIPT: `return +parseFloat(value).toFixed(0); `

**Expression**:

`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 |

Interface utilization percentage

|CALCULATED |zyxel.4728f.net.if.out.util[{#SNMPINDEX}]

**Preprocessing**:

- IN_RANGE: `0 100`

⛔️ON_FAIL: `DISCARD_VALUE -> `

- JAVASCRIPT: `return +parseFloat(value).toFixed(0); `

**Expression**:

`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 |

MIB: ZYXEL-XGS4728F-MIB

Transceiver module status.

|SNMP |zyxel.4728f.sfp.status[{#SNMPINDEX}]

**Preprocessing**:

- DISCARD_UNCHANGED_HEARTBEAT: `1h`

| |Network_interfaces |ZYXEL XGS-4728F: SFP {#SNMPINDEX}: Vendor |

MIB: ZYXEL-XGS4728F-MIB

Transceiver module vendor name.

|SNMP |zyxel.4728f.sfp.vendor[{#SNMPINDEX}]

**Preprocessing**:

- DISCARD_UNCHANGED_HEARTBEAT: `1h`

| |Network_interfaces |ZYXEL XGS-4728F: SFP {#SNMPINDEX}: Part number |

MIB: ZYXEL-XGS4728F-MIB

Part number provided by transceiver module vendor.

|SNMP |zyxel.4728f.sfp.part[{#SNMPINDEX}]

**Preprocessing**:

- DISCARD_UNCHANGED_HEARTBEAT: `1h`

| 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' -- cgit v1.2.3