diff options
Diffstat (limited to 'templates/module/interfaces_snmp/template_module_interfaces_snmp.yaml')
-rw-r--r-- | templates/module/interfaces_snmp/template_module_interfaces_snmp.yaml | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/templates/module/interfaces_snmp/template_module_interfaces_snmp.yaml b/templates/module/interfaces_snmp/template_module_interfaces_snmp.yaml index cb3996658ef..50985265fd0 100644 --- a/templates/module/interfaces_snmp/template_module_interfaces_snmp.yaml +++ b/templates/module/interfaces_snmp/template_module_interfaces_snmp.yaml @@ -1,11 +1,13 @@ zabbix_export: version: '5.4' - date: '2021-05-09T00:00:00Z' + date: '2021-05-10T19:41:52Z' groups: - + uuid: 57b7ae836ca64446ba2c296389c009b7 name: Templates/Modules templates: - + uuid: 809cd59886464ff3ad0a66d16fb1f2d8 template: 'Interfaces SNMP' name: 'Interfaces SNMP' description: | @@ -20,6 +22,7 @@ zabbix_export: name: Templates/Modules discovery_rules: - + uuid: ea9babbf98cf48688aa00faf500e171e name: 'Network interfaces discovery' type: SNMP_AGENT snmp_oid: 'discovery[{#IFOPERSTATUS},1.3.6.1.2.1.2.2.1.8,{#IFADMINSTATUS},1.3.6.1.2.1.2.2.1.7,{#IFALIAS},1.3.6.1.2.1.31.1.1.1.18,{#IFNAME},1.3.6.1.2.1.31.1.1.1.1,{#IFDESCR},1.3.6.1.2.1.2.2.1.2,{#IFTYPE},1.3.6.1.2.1.2.2.1.3]' @@ -85,6 +88,7 @@ zabbix_export: description: 'Discovering interfaces from IF-MIB.' item_prototypes: - + uuid: 2ba24b3517aa4dbfb2d56f9e6c082668 name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' type: SNMP_AGENT snmp_oid: '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' @@ -108,6 +112,7 @@ zabbix_export: tag: Application value: 'Interface {#IFNAME}({#IFALIAS})' - + uuid: 2c7296aa56884ef48bb66c25097848f9 name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' type: SNMP_AGENT snmp_oid: '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' @@ -127,6 +132,7 @@ zabbix_export: tag: Application value: 'Interface {#IFNAME}({#IFALIAS})' - + uuid: 633cdf45222b454198ec66308aa7a55d name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' type: SNMP_AGENT snmp_oid: '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' @@ -151,6 +157,7 @@ zabbix_export: tag: Application value: 'Interface {#IFNAME}({#IFALIAS})' - + uuid: baca586b493448959a945c9433c38fe7 name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' type: SNMP_AGENT snmp_oid: '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' @@ -174,6 +181,7 @@ zabbix_export: tag: Application value: 'Interface {#IFNAME}({#IFALIAS})' - + uuid: 2712f191e05046da85321c0ceeea85b3 name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' type: SNMP_AGENT snmp_oid: '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' @@ -193,6 +201,7 @@ zabbix_export: tag: Application value: 'Interface {#IFNAME}({#IFALIAS})' - + uuid: 9037dd45e90a45baa58014d20db3ab0f name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' type: SNMP_AGENT snmp_oid: '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' @@ -217,6 +226,7 @@ zabbix_export: tag: Application value: 'Interface {#IFNAME}({#IFALIAS})' - + uuid: b63cb94bb9954ee4ab56d2a7d25d5957 name: 'Interface {#IFNAME}({#IFALIAS}): Speed' type: SNMP_AGENT snmp_oid: '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}' @@ -242,6 +252,7 @@ zabbix_export: tag: Application value: 'Interface {#IFNAME}({#IFALIAS})' - + uuid: 0ac3b237358a4df69712d3829341766b name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' type: SNMP_AGENT snmp_oid: '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' @@ -265,6 +276,7 @@ zabbix_export: value: 'Interface {#IFNAME}({#IFALIAS})' trigger_prototypes: - + uuid: df4768a9a1b84070a8eef099c5768286 expression: '{$IFCONTROL:"{#IFNAME}"}=1 and (last(/Interfaces SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Interfaces SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Interfaces SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))=1)' recovery_mode: RECOVERY_EXPRESSION recovery_expression: 'last(/Interfaces SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' @@ -280,6 +292,7 @@ zabbix_export: WARNING: if closed manually - won't fire again on next poll, because of .diff. manual_close: 'YES' - + uuid: 565967032d23436486868eb495f7ed17 name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' type: SNMP_AGENT snmp_oid: '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}' @@ -305,6 +318,7 @@ zabbix_export: value: 'Interface {#IFNAME}({#IFALIAS})' trigger_prototypes: - + uuid: 12d34f87d8a54c30a7df457a2f531c4c expression: | change(/Interfaces SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/Interfaces SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and ( @@ -332,6 +346,7 @@ zabbix_export: expression: '{$IFCONTROL:"{#IFNAME}"}=1 and (last(/Interfaces SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Interfaces SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Interfaces SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))=1)' recovery_expression: 'last(/Interfaces SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' - + uuid: 1ee0a4fd4b934d4da93b492d9e784535 expression: | (avg(/Interfaces SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Interfaces SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or avg(/Interfaces SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Interfaces SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and @@ -351,6 +366,7 @@ zabbix_export: expression: '{$IFCONTROL:"{#IFNAME}"}=1 and (last(/Interfaces SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Interfaces SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Interfaces SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))=1)' recovery_expression: 'last(/Interfaces SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' - + uuid: c467cd13d7b946fc81cc4a49522f6d33 expression: | min(/Interfaces SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} or min(/Interfaces SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} @@ -370,6 +386,7 @@ zabbix_export: recovery_expression: 'last(/Interfaces SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' graph_prototypes: - + uuid: 748719ae10ea43da9efec7225dac54cb name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' graph_items: - @@ -465,6 +482,7 @@ zabbix_export: value: CHANGE_IF_NEEDED dashboards: - + uuid: b06fc59c5e744962b1ac5314e7e12cec name: 'Network interfaces' pages: - @@ -494,6 +512,7 @@ zabbix_export: host: 'Interfaces SNMP' valuemaps: - + uuid: 692e46f1836c4e2682a0dc882fec89a0 name: 'IF-MIB::ifOperStatus' mappings: - @@ -515,6 +534,7 @@ zabbix_export: value: '7' newvalue: lowerLayerDown - + uuid: 7a288ac5cdbf429b9d568b12b312ad70 name: 'IF-MIB::ifType' mappings: - |