From 400b6b8a7133b5f5e1b4067c043e7f5abafa8e5d Mon Sep 17 00:00:00 2001 From: HalbeBruno Date: Sat, 9 Aug 2025 16:14:06 -0300 Subject: [PATCH] update templates --- .gitignore | 1 + README.md | 0 mod/install.sh | 0 sql/zbx_db_partitiong.sql | 0 templates/huawei/README.md | 60 - templates/huawei/Template_Huawei-BGP.yaml | 204 --- templates/huawei/Template_Huawei-BNG.yaml | 1593 ----------------- .../Template_Huawei-Interfaces-SNMP.yaml | 1068 ----------- ...ate_Huawei-Resources-NetEngine-SNMPv2.yaml | 258 --- ...Huawei-Resources-VirtualSystem-SNMPv2.yaml | 73 - .../Template_Huawei-S5700_S6700-SNMP.yaml | 74 - .../huawei/Template_Huawei-VRP-SNMP.yaml | 1068 ----------- .../proxmox-prometheus-pve-exporter/README.md | 97 - .../huawei/README.md | 0 .../install-prometheus.sh | 59 - .../pve-exporter.sh | 48 - 16 files changed, 1 insertion(+), 4602 deletions(-) create mode 100644 .gitignore mode change 100644 => 100755 README.md mode change 100644 => 100755 mod/install.sh mode change 100644 => 100755 sql/zbx_db_partitiong.sql delete mode 100644 templates/huawei/README.md delete mode 100644 templates/huawei/Template_Huawei-BGP.yaml delete mode 100644 templates/huawei/Template_Huawei-BNG.yaml delete mode 100644 templates/huawei/Template_Huawei-Interfaces-SNMP.yaml delete mode 100644 templates/huawei/Template_Huawei-Resources-NetEngine-SNMPv2.yaml delete mode 100644 templates/huawei/Template_Huawei-Resources-VirtualSystem-SNMPv2.yaml delete mode 100644 templates/huawei/Template_Huawei-S5700_S6700-SNMP.yaml delete mode 100644 templates/huawei/Template_Huawei-VRP-SNMP.yaml delete mode 100644 templates/proxmox-prometheus-pve-exporter/README.md delete mode 100644 templates/proxmox-prometheus-pve-exporter/huawei/README.md delete mode 100644 templates/proxmox-prometheus-pve-exporter/install-prometheus.sh delete mode 100644 templates/proxmox-prometheus-pve-exporter/pve-exporter.sh diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f2cb0d1 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +templates_old diff --git a/README.md b/README.md old mode 100644 new mode 100755 diff --git a/mod/install.sh b/mod/install.sh old mode 100644 new mode 100755 diff --git a/sql/zbx_db_partitiong.sql b/sql/zbx_db_partitiong.sql old mode 100644 new mode 100755 diff --git a/templates/huawei/README.md b/templates/huawei/README.md deleted file mode 100644 index 70a1e1a..0000000 --- a/templates/huawei/README.md +++ /dev/null @@ -1,60 +0,0 @@ -# Templates Huawei - -**Template Huawei VRP-SNMP** - Informações básicas da "caixa" - -**Template Huawei Resources NetEngine** Informações hardware - - CPU Utilization - CPU Utilization (average 1 min) - CPU Utilization (average 5 min) - Memory total - Memory utilization - - Fan Speed - Fan Status - - PSU Slot Corrente - PSU Slot Power - PSU Slot Status - PSU Slot Voltagem - -**Template Huawei Resources VirtualSystem SNMPv2** Informações de "hardware" do virtual system - - CPU Utilization - Memory total - Memory utilization - - -**Template Huawei Interfaces SNMP** - Metricas e informaçòes das interfaces - - Interface Bits received - Interface Bits sent - Interface Interface type - Interface Operational status - Interface Inbound packets discarded - Interface Inbound packets with errors - Interface Outbound packets discarded - Interface Outbound packets with errors - Interface Duplex status - Interface Speed - -**Template Huawei BNG** - Metricas BNG - - PPPoE Max sessions - Total Dual-Stack Online Num - Total IPv4 Online Num - Total IPv6 Online Num - Total PPPoE Online Num - -**Template Huawei BGP** - Informações Peers BGP - - Total IPv4 FIB Routes - Total IPv4 RIB Routes - Total IPv6 FIB Routes - BGP4 Peer(s) - -**Template Huawei S5700-S6700 SNMP** - Informações sobre as MPU dos Switchs. - - CPU Utilization - Memory total - Memory utilization \ No newline at end of file diff --git a/templates/huawei/Template_Huawei-BGP.yaml b/templates/huawei/Template_Huawei-BGP.yaml deleted file mode 100644 index d5b15fa..0000000 --- a/templates/huawei/Template_Huawei-BGP.yaml +++ /dev/null @@ -1,204 +0,0 @@ -zabbix_export: - version: '7.0' - template_groups: - - uuid: 36bff6c29af64692839d077febfc7079 - name: 'Templates/Network devices' - - uuid: b01bb96a1ed547e1a8770677a646aa3c - name: 'Templates IPv0' - templates: - - uuid: 24ddc6a9eda54bdb99c4aeb7022cd103 - template: 'Template Huawei BGP - by IPv0' - name: 'Template Huawei BGP - by IPv0' - description: 'Template for Huawei VRP to monitor BGP sessions' - vendor: - name: IPv0 - version: 7.0-1 - groups: - - name: 'Templates/Network devices' - - name: 'Templates IPv0' - items: - - uuid: 2dc84ab8ef1c482cbb615197eec0314d - name: 'Total IPv4 FIB Routes' - type: SNMP_AGENT - snmp_oid: .1.3.6.1.2.1.4.24.3.0 - key: hwIPv4FibRoutes - delay: 5m - history: 7d - trends: 30d - units: Prefixes - tags: - - tag: Application - value: 'Routing Table Info' - - uuid: 834909c6333e41388f89806f1555a42a - name: 'Total IPv4 RIB Routes' - type: SNMP_AGENT - snmp_oid: .1.3.6.1.4.1.2011.5.25.177.9.1.0 - key: hwIPv4RibRoutes - delay: 5m - history: 7d - trends: 30d - units: Prefixes - tags: - - tag: Application - value: 'Routing Table Info' - - uuid: 9b3f36e9881446468f758a72a5088b7d - name: 'Total IPv6 FIB Routes' - type: SNMP_AGENT - snmp_oid: 1.3.6.1.2.1.55.1.9.0 - key: hwIPv6FibRoutes - delay: 5m - history: 7d - trends: 30d - units: Prefixes - tags: - - tag: Application - value: 'Routing Table Info' - discovery_rules: - - uuid: 8a2ee36a480a46b4b6b115de4ed21529 - name: 'BGP4 Peer(s)' - type: EXTERNAL - key: 'discovery_hw_bgp_peers.py["{HOST.CONN}","{$SNMP_COMMUNITY}","{$SNMP_PORTA}"]' - delay: 1h - enabled_lifetime_type: DISABLE_NEVER - description: 'discovery[{#BGPPEER},.1.3.6.1.4.1.2011.5.25.177.1.1.2.1.4.0,{#ASNUM},.1.3.6.1.4.1.2011.5.25.177.1.1.2.1.2.0,{#ADMSTATUS},.1.3.6.1.4.1.2011.5.25.177.1.1.2.1.11.0]' - item_prototypes: - - uuid: 5f3b6d48b21d448293e28d0afa949d5b - name: 'IP Peer AS{#ASNUM} ({#PEERNAME})' - type: SNMP_AGENT - snmp_oid: '.1.3.6.1.4.1.2011.5.25.177.1.1.2.1.4.0.{#SNMPINDEX}' - key: 'Bgp.Peer[{#SNMPINDEX}]' - delay: 1h - value_type: TEXT - trends: '0' - status: DISABLED - discover: NO_DISCOVER - tags: - - tag: bgp - value: peers - - tag: peer - value: '{#ASNUM}' - - uuid: 16d190973c3344419e313bc89b0af6d0 - name: 'Uptime {#BGPPEER} - AS{#ASNUM} - ({#PEERNAME})' - type: SNMP_AGENT - snmp_oid: '1.3.6.1.4.1.2011.5.25.177.1.1.2.1.7.0.{#SNMPINDEX}' - key: 'BgpPeerFsmEstablishedTime[{#BGPPEER}]' - history: 30d - trends: 90d - units: uptime - tags: - - tag: bgp - value: peers - - tag: bgp - value: uptime - - tag: peer - value: '{#ASNUM}' - - uuid: e5cbcc63ee5c4646bb0c783314f1bf43 - name: 'Prefixos {#BGPPEER} - AS{#ASNUM} - ({#PEERNAME})' - type: SNMP_AGENT - snmp_oid: '1.3.6.1.4.1.2011.5.25.177.1.1.3.1.1.0.{#SNMPINDEX}' - key: 'BgpPeerRoutes[{#BGPPEER}]' - history: 30d - trends: 90d - units: prefixes - tags: - - tag: bgp - value: peers - - tag: bgp - value: prefixos - - tag: peer - value: '{#ASNUM}' - - uuid: b195302e6eed4f56b00f01623dfa7271 - name: 'Status {#BGPPEER} - AS{#ASNUM} - ({#PEERNAME})' - type: SNMP_AGENT - snmp_oid: '1.3.6.1.4.1.2011.5.25.177.1.1.2.1.5.0.{#SNMPINDEX}' - key: 'BgpPeerState[{#BGPPEER}]' - history: 30d - trends: 90d - valuemap: - name: BgpPeerState - tags: - - tag: bgp - value: peers - - tag: bgp - value: status - - tag: peer - value: '{#ASNUM}' - trigger_prototypes: - - uuid: 1b3049a16e7b4bd487ea83e7897139d9 - expression: | - last(/Template Huawei BGP - by IPv0/BgpPeerState[{#BGPPEER}])<>6 - and - last(/Template Huawei BGP - by IPv0/BgpPeerState[{#BGPPEER}],#2)=6 - recovery_mode: RECOVERY_EXPRESSION - recovery_expression: 'last(/Template Huawei BGP - by IPv0/BgpPeerState[{#BGPPEER}])=6' - name: 'Peer {#BGPPEER} - AS{#ASNUM} - ({#PEERNAME}) is DOWN!' - priority: AVERAGE - manual_close: 'YES' - tags: - - tag: bgp-peer - timeout: 10s - tags: - - tag: ipv0 - - tag: target - value: huawei - macros: - - macro: '{$SNMP_PORTA}' - value: '161' - valuemaps: - - uuid: e1fae0345e234608b70c9a389b654e0b - name: BgpPeerState - mappings: - - value: '1' - newvalue: idle - - value: '2' - newvalue: connect - - value: '3' - newvalue: active - - value: '4' - newvalue: opensent - - value: '5' - newvalue: openconfirm - - value: '6' - newvalue: established - graphs: - - uuid: eb7826ff54d043b4b928b6db4fb6d4ae - name: 'FIB - IPv4' - graph_items: - - sortorder: '1' - drawtype: FILLED_REGION - color: 00EE00 - item: - host: 'Template Huawei BGP - by IPv0' - key: hwIPv4FibRoutes - - uuid: ee655f29b1784cdfa4b733d87f742379 - name: 'FIB - IPv6' - graph_items: - - sortorder: '1' - color: F63100 - item: - host: 'Template Huawei BGP - by IPv0' - key: hwIPv6FibRoutes - - uuid: 10ad7fa634e348538077986b6b4d5905 - name: 'RIB - IPv4' - graph_items: - - sortorder: '1' - drawtype: FILLED_REGION - color: EE0000 - item: - host: 'Template Huawei BGP - by IPv0' - key: hwIPv4RibRoutes - - uuid: 6da07b4c9eaf4814874c95ec9bd828c1 - name: 'RIB x FIB - IPv4' - graph_items: - - sortorder: '1' - drawtype: BOLD_LINE - color: 00EE00 - item: - host: 'Template Huawei BGP - by IPv0' - key: hwIPv4FibRoutes - - sortorder: '2' - drawtype: BOLD_LINE - color: EE0000 - item: - host: 'Template Huawei BGP - by IPv0' - key: hwIPv4RibRoutes diff --git a/templates/huawei/Template_Huawei-BNG.yaml b/templates/huawei/Template_Huawei-BNG.yaml deleted file mode 100644 index 80e3810..0000000 --- a/templates/huawei/Template_Huawei-BNG.yaml +++ /dev/null @@ -1,1593 +0,0 @@ -zabbix_export: - version: '7.0' - template_groups: - - uuid: 36bff6c29af64692839d077febfc7079 - name: 'Templates/Network devices' - - uuid: b01bb96a1ed547e1a8770677a646aa3c - name: 'Templates IPv0' - templates: - - uuid: 8019ebc6b1f84449aff15749ad75354e - template: 'Template Huawei BNG - by IPv0' - name: 'Template Huawei BNG - by IPv0' - description: 'Template Huawei BRAS' - vendor: - name: IPv0 - version: 7.0-1 - groups: - - name: 'Templates/Network devices' - - name: 'Templates IPv0' - items: - - uuid: 77ef68bca6d84a95bd4b0a4cdd7363b8 - name: 'PPPoE Max sessions' - type: SNMP_AGENT - snmp_oid: 1.3.6.1.4.1.2011.5.2.1.14.1.8.0 - key: hwHistoricMaxOnlineNum - history: 90d - tags: - - tag: application - value: bng - - uuid: 72c0ca1c59904ec9808e7e4a84358aa2 - name: 'Total Dual-Stack Online Num' - type: SNMP_AGENT - snmp_oid: .1.3.6.1.4.1.2011.5.2.1.14.1.17.0 - key: hwTotalDualStackOnlineNum - delay: 3m - history: 90d - units: '!con' - description: 'Número total de conexões PPPoE online (IPv6)' - tags: - - tag: application - value: bng - - uuid: 750acc592cb647e79149bab0f73ceeef - name: 'Total IPv4 Online Num' - type: SNMP_AGENT - snmp_oid: .1.3.6.1.4.1.2011.5.2.1.14.1.15.0 - key: hwTotalIPv4OnlineNum - delay: 3m - history: 90d - units: '!con' - description: 'Total IPv4 Online' - tags: - - tag: application - value: bng - - uuid: e9913eaf35ff498badcc0194ea17c329 - name: 'Total IPv6 Online Num' - type: SNMP_AGENT - snmp_oid: .1.3.6.1.4.1.2011.5.2.1.14.1.16.0 - key: hwTotalIPv6OnlineNum - delay: 3m - history: 90d - units: '!con' - description: 'Número total de conexões PPPoE online (IPv6)' - tags: - - tag: application - value: bng - - uuid: c6a53e9ba90d4c2d8fa65ca109c0d4d4 - name: 'Total PPPoE Online Num' - type: SNMP_AGENT - snmp_oid: .1.3.6.1.4.1.2011.5.2.1.14.1.2.0 - key: hwTotalPPPoeOnlineNum - delay: 30s - history: 90d - units: '!con' - description: 'Número total de conexões PPPoE online' - tags: - - tag: application - value: bng - discovery_rules: - - uuid: 0220b3eebd224f7cada844e61a5a72fd - name: 'PPPoE Access-User Interface Discovery' - type: SNMP_AGENT - snmp_oid: 'discovery[{#VLANACCESSIFINDEX},.1.3.6.1.4.1.2011.5.25.40.1.1.13.1.1,{#VLANACCESSQINQVLANID},.1.3.6.1.4.1.2011.5.25.40.1.1.13.1.2,{#VLANACCESSVLANID},.1.3.6.1.4.1.2011.5.25.40.1.1.13.1.3]' - key: hwBRASIfVlan - delay: 1h - enabled_lifetime_type: DISABLE_NEVER - description: 'Descoberta de Interfaces PPPoE' - item_prototypes: - - uuid: 7d50a1fba7b94db99edfe23902993a2d - name: 'PPPoE Access-User Inferface {#VLANACCESSQINQVLANID}.{#VLANACCESSVLANID}' - type: SNMP_AGENT - snmp_oid: '.1.3.6.1.4.1.2011.5.25.40.1.1.13.1.4.{#VLANACCESSIFINDEX}.{#VLANACCESSQINQVLANID}.{#VLANACCESSVLANID}' - key: 'hwBRASIfVlanAccessUserNumber.[{#VLANACCESSIFINDEX}.{#VLANACCESSQINQVLANID}.{#VLANACCESSVLANID}]' - history: 7d - trends: 3650d - units: '!con' - description: 'PPPoE Connections on Interface' - tags: - - tag: application - value: bng - graph_prototypes: - - uuid: a5ad3974759446fdaedb9d2a39fe62ea - name: '2PPPoE Connections Interface {#VLANACCESSQINQVLANID}.{#VLANACCESSVLANID}' - graph_items: - - drawtype: GRADIENT_LINE - color: 199C0D - item: - host: 'Template Huawei BNG - by IPv0' - key: 'hwBRASIfVlanAccessUserNumber.[{#VLANACCESSIFINDEX}.{#VLANACCESSQINQVLANID}.{#VLANACCESSVLANID}]' - - uuid: 5e10744e555f4c2083d93a58b39b437e - name: 'IP-Pool-Group Discovery' - type: SNMP_AGENT - snmp_oid: 'discovery[{#IPPOOLGROUPNAME},.1.3.6.1.4.1.2011.6.8.1.10.1.1]' - key: hwIPPoolGroupName - delay: 1h - status: DISABLED - enabled_lifetime_type: DISABLE_NEVER - description: 'Descoberta de IP Pool-Groups' - item_prototypes: - - uuid: 6271ff4b234d411580fbc44a89797919 - name: 'IP-Pool-Group {#IPPOOLGROUPNAME} Total IP Conflited' - type: SNMP_AGENT - snmp_oid: '.1.3.6.1.4.1.2011.6.8.1.12.1.5.{#SNMPINDEX}' - key: 'hwIPPoolGroupIPConflictedNum.[{#SNMPINDEX}]' - history: 7d - trends: 3650d - units: '!ips' - tags: - - tag: Application - value: IP-Pool-Group - - uuid: e2c8d9421b5b461b8ae53482110dee82 - name: 'IP-Pool-Group {#IPPOOLGROUPNAME} Total IP Free' - type: SNMP_AGENT - snmp_oid: '.1.3.6.1.4.1.2011.6.8.1.12.1.8.{#SNMPINDEX}' - key: 'hwIPPoolGroupIPFreeNum.[{#SNMPINDEX}]' - history: 7d - trends: 3650d - units: '!ips' - tags: - - tag: Application - value: IP-Pool-Group - trigger_prototypes: - - uuid: 5eb850bfcc894ce4bfe78fe523365b71 - expression: | - {$IP_POOL_GROUP_TRIGGER_USAGE}=1 and - avg(/Template Huawei BNG - by IPv0/hwIPPoolGroupIPFreeNum.[{#SNMPINDEX}],5m)=0 - name: 'Endereços IPv4 ESGOTADOS em {#IPPOOLGROUPNAME}' - priority: DISASTER - - uuid: a9c56c7a1c1c42f58742a94ffd8faaea - name: 'IP-Pool-Group {#IPPOOLGROUPNAME} Total IP Num' - type: SNMP_AGENT - snmp_oid: '.1.3.6.1.4.1.2011.6.8.1.12.1.3.{#SNMPINDEX}' - key: 'hwIPPoolGroupIPTotalNum.[{#SNMPINDEX}]' - history: 7d - trends: 3650d - units: '!ips' - tags: - - tag: Application - value: IP-Pool-Group - - uuid: c2f5a5cc25d548aea3112aa6069597df - name: 'IP-Pool-Group {#IPPOOLGROUPNAME} Total IP Used' - type: SNMP_AGENT - snmp_oid: '.1.3.6.1.4.1.2011.6.8.1.12.1.4.{#SNMPINDEX}' - key: 'hwIPPoolGroupIPUsedNum.[{#SNMPINDEX}]' - history: 7d - trends: 3650d - units: '!ips' - tags: - - tag: Application - value: IP-Pool-Group - - uuid: eb0336bbcf64410cbb9502ea542feceb - name: 'IP-Pool-Group {#IPPOOLGROUPNAME} Percent Usage' - type: CALCULATED - key: 'hwIPPoolGroupIPUsedPercent.[{#SNMPINDEX}]' - history: 7d - value_type: FLOAT - trends: 3650d - units: '%' - params: '(100*last(//.1.3.6.1.4.1.2011.6.8.1.12.1.4.[{#SNMPINDEX}]))/last(//.1.3.6.1.4.1.2011.6.8.1.12.1.3.[{#SNMPINDEX}])' - preprocessing: - - type: JAVASCRIPT - parameters: - - 'return Math.round(value* 100) / 100' - tags: - - tag: Application - value: IP-Pool-Group - trigger_prototypes: - - uuid: 59c5633eca76422ea0b881eebaf1421c - expression: | - {$IP_POOL_GROUP_TRIGGER_USAGE}=1 and - avg(/Template Huawei BNG - by IPv0/hwIPPoolGroupIPUsedPercent.[{#SNMPINDEX}],5m)>={$IP_POOL_USAGE_THRESHOLD} - name: 'Uso de Endereços IPv4 em {#IPPOOLGROUPNAME} está acima de {$IP_POOL_USAGE_THRESHOLD}%' - priority: HIGH - dependencies: - - name: 'Endereços IPv4 ESGOTADOS em {#IPPOOLGROUPNAME}' - expression: | - {$IP_POOL_GROUP_TRIGGER_USAGE}=1 and - avg(/Template Huawei BNG - by IPv0/hwIPPoolGroupIPFreeNum.[{#SNMPINDEX}],5m)=0 - graph_prototypes: - - uuid: b6474457ffc942429317619de506c421 - name: 'IP-Pool-Group {#IPPOOLGROUPNAME} Usage Statistics' - graph_items: - - drawtype: GRADIENT_LINE - color: 199C0D - item: - host: 'Template Huawei BNG - by IPv0' - key: 'hwIPPoolGroupIPTotalNum.[{#SNMPINDEX}]' - - sortorder: '1' - drawtype: BOLD_LINE - color: 0040FF - item: - host: 'Template Huawei BNG - by IPv0' - key: 'hwIPPoolGroupIPUsedNum.[{#SNMPINDEX}]' - - sortorder: '2' - drawtype: BOLD_LINE - color: FFFF00 - item: - host: 'Template Huawei BNG - by IPv0' - key: 'hwIPPoolGroupIPFreeNum.[{#SNMPINDEX}]' - - sortorder: '3' - drawtype: BOLD_LINE - color: '000000' - item: - host: 'Template Huawei BNG - by IPv0' - key: 'hwIPPoolGroupIPUsedPercent.[{#SNMPINDEX}]' - - sortorder: '4' - drawtype: BOLD_LINE - color: F63100 - item: - host: 'Template Huawei BNG - by IPv0' - key: 'hwIPPoolGroupIPConflictedNum.[{#SNMPINDEX}]' - - uuid: 20b19670d1eb4037a06ffb15d0ae33f2 - name: 'IP-Pool Discovery' - type: SNMP_AGENT - snmp_oid: 'discovery[{#IPPOOLNAME},.1.3.6.1.4.1.2011.6.8.1.1.1.2]' - key: hwIPPoolName - delay: 1h - enabled_lifetime_type: DISABLE_NEVER - description: 'Descoberta de IP Pools' - item_prototypes: - - uuid: eb92e71c05c14f33b93f5c7e05c625b2 - name: 'IP-Pool {#IPPOOLNAME} Total IP Conflict' - type: SNMP_AGENT - snmp_oid: '.1.3.6.1.4.1.2011.6.8.1.1.1.17.{#SNMPINDEX}' - key: 'hwIPPoolIPConflictNum.[{#SNMPINDEX}]' - history: 1d - trends: 3650d - units: '!ips' - tags: - - tag: application - value: ip-pool - - uuid: 36447f759fca42478308f57b385060c2 - name: 'IP-Pool {#IPPOOLNAME} Total IP Idle' - type: SNMP_AGENT - snmp_oid: '.1.3.6.1.4.1.2011.6.8.1.1.1.19.{#SNMPINDEX}' - key: 'hwIPPoolIPIdleNum.[{#SNMPINDEX}]' - history: 1d - trends: 3650d - units: '!ips' - tags: - - tag: application - value: ip-pool - trigger_prototypes: - - uuid: 938b6f9b82514da6b114ce8d46a969da - expression: | - {$IP_POOL_TRIGGER_USAGE}=1 and - avg(/Template Huawei BNG - by IPv0/hwIPPoolIPIdleNum.[{#SNMPINDEX}],5m)=0 - name: 'Endereços IPv4 ESGOTADOS em {#IPPOOLNAME}' - priority: DISASTER - - uuid: e753b11d04d44e92a7dbb13c3ac6d54c - name: 'IP-Pool {#IPPOOLNAME} Total IP Num' - type: SNMP_AGENT - snmp_oid: '.1.3.6.1.4.1.2011.6.8.1.1.1.15.{#SNMPINDEX}' - key: 'hwIPPoolIPTotalNum.[{#SNMPINDEX}]' - history: 1d - trends: 3650d - units: '!ips' - tags: - - tag: application - value: ip-pool - - uuid: b41d97e730614deba835851f6cf85aef - name: 'IP-Pool {#IPPOOLNAME} Total IP Used' - type: SNMP_AGENT - snmp_oid: '.1.3.6.1.4.1.2011.6.8.1.1.1.16.{#SNMPINDEX}' - key: 'hwIPPoolIPUsedNum.[{#SNMPINDEX}]' - history: 1d - trends: 3650d - units: '!ips' - tags: - - tag: application - value: ip-pool - - uuid: 670ffe2052ac4088a9ab6e0984fa404c - name: 'IP-Pool {#IPPOOLNAME} Percent Usage' - type: CALCULATED - key: 'hwIPPoolIPUsedPercent.[{#SNMPINDEX}]' - history: 1d - value_type: FLOAT - trends: 3650d - units: '%' - params: '(100*last(//hwIPPoolIPUsedNum.[{#SNMPINDEX}]))/last(//hwIPPoolIPTotalNum.[{#SNMPINDEX}])' - preprocessing: - - type: JAVASCRIPT - parameters: - - 'return Math.round(value* 100) / 100' - tags: - - tag: application - value: ip-pool - trigger_prototypes: - - uuid: 2ee14325144f40cca4dc722d0849e25d - expression: | - {$IP_POOL_TRIGGER_USAGE}=1 and - avg(/Template Huawei BNG - by IPv0/hwIPPoolIPUsedPercent.[{#SNMPINDEX}],5m)>={$IP_POOL_USAGE_THRESHOLD} - name: 'Uso de Endereços IPv4 em {#IPPOOLNAME} está acima de {$IP_POOL_USAGE_THRESHOLD}%' - priority: HIGH - dependencies: - - name: 'Endereços IPv4 ESGOTADOS em {#IPPOOLNAME}' - expression: | - {$IP_POOL_TRIGGER_USAGE}=1 and - avg(/Template Huawei BNG - by IPv0/hwIPPoolIPIdleNum.[{#SNMPINDEX}],5m)=0 - graph_prototypes: - - uuid: ea202761416b4f2daf8202ac6d9a7ebe - name: 'IP-Pool {#IPPOOLNAME} Usage Statistics' - graph_items: - - drawtype: GRADIENT_LINE - color: 199C0D - item: - host: 'Template Huawei BNG - by IPv0' - key: 'hwIPPoolIPTotalNum.[{#SNMPINDEX}]' - - sortorder: '1' - drawtype: BOLD_LINE - color: 0040FF - item: - host: 'Template Huawei BNG - by IPv0' - key: 'hwIPPoolIPUsedNum.[{#SNMPINDEX}]' - - sortorder: '2' - drawtype: BOLD_LINE - color: FFFF00 - item: - host: 'Template Huawei BNG - by IPv0' - key: 'hwIPPoolIPIdleNum.[{#SNMPINDEX}]' - - sortorder: '3' - drawtype: BOLD_LINE - color: '000000' - item: - host: 'Template Huawei BNG - by IPv0' - key: 'hwIPPoolIPUsedPercent.[{#SNMPINDEX}]' - - sortorder: '4' - drawtype: BOLD_LINE - color: F63100 - item: - host: 'Template Huawei BNG - by IPv0' - key: 'hwIPPoolIPConflictNum.[{#SNMPINDEX}]' - tags: - - tag: ipv0 - - tag: target - value: huawei - macros: - - macro: '{$IP_POOL_GROUP_TRIGGER_USAGE}' - value: '1' - description: 'Fire triggers when ip-pool-group usage percent >= {$IP_POOL_USAGE_THRESHOLD}' - - macro: '{$IP_POOL_TRIGGER_USAGE}' - value: '0' - description: 'Fire triggers when ip-pool usage percent >= {$IP_POOL_USAGE_THRESHOLD}' - - macro: '{$IP_POOL_USAGE_THRESHOLD}' - value: '90' - description: 'Percent threshold of Pool Usage' - dashboards: - - uuid: e1b4c47a8f0446f19031e000559b5726 - name: '{HOST.NAME} Dashborad' - pages: - - widgets: - - type: itemhistory - width: '36' - fields: - - type: STRING - name: reference - value: AAAAA - - type: INTEGER - name: show_as_html - value: '1' - - type: INTEGER - name: show_lines - value: '1' - - type: INTEGER - name: show_timestamp - value: '1' - - type: graph - 'y': '2' - width: '18' - height: '5' - fields: - - type: STRING - name: reference - value: AAAAC - - type: INTEGER - name: source_type - value: '1' - - type: graphprototype - 'y': '7' - width: '36' - height: '5' - fields: - - type: INTEGER - name: columns - value: '1' - - type: STRING - name: reference - value: AAAAG - - type: INTEGER - name: rows - value: '1' - - type: INTEGER - name: source_type - value: '2' - - type: graphprototype - 'y': '12' - width: '72' - height: '5' - fields: - - type: INTEGER - name: columns - value: '1' - - type: GRAPH_PROTOTYPE - name: graphid - value: - host: 'Template Huawei BNG - by IPv0' - name: 'IP-Pool-Group {#IPPOOLGROUPNAME} Usage Statistics' - - type: STRING - name: reference - value: AAAAI - - type: INTEGER - name: rows - value: '1' - - type: INTEGER - name: source_type - value: '2' - - type: graph - x: '18' - 'y': '2' - width: '18' - height: '5' - fields: - - type: ITEM - name: itemid - value: - host: 'Template Huawei BNG - by IPv0' - key: hwTotalPPPoeOnlineNum - - type: STRING - name: reference - value: AAAAD - - type: INTEGER - name: source_type - value: '1' - - type: itemhistory - x: '36' - width: '36' - fields: - - type: STRING - name: reference - value: AAAAB - - type: INTEGER - name: show_as_html - value: '1' - - type: INTEGER - name: show_lines - value: '1' - - type: INTEGER - name: show_timestamp - value: '1' - - type: graph - x: '36' - 'y': '2' - width: '18' - height: '5' - fields: - - type: ITEM - name: itemid - value: - host: 'Template Huawei BNG - by IPv0' - key: hwTotalDualStackOnlineNum - - type: STRING - name: reference - value: AAAAE - - type: INTEGER - name: source_type - value: '1' - - type: graphprototype - x: '36' - 'y': '7' - width: '36' - height: '5' - fields: - - type: INTEGER - name: columns - value: '1' - - type: STRING - name: reference - value: AAAAH - - type: INTEGER - name: rows - value: '1' - - type: INTEGER - name: source_type - value: '2' - - type: graph - x: '54' - 'y': '2' - width: '18' - height: '5' - fields: - - type: ITEM - name: itemid - value: - host: 'Template Huawei BNG - by IPv0' - key: hwTotalIPv6OnlineNum - - type: STRING - name: reference - value: AAAAF - - type: INTEGER - name: source_type - value: '1' - - uuid: 8b42cf6f17774d2bb27fa57ed1426e93 - template: 'Template Huawei VRP SNMP Mod. - by IPv0' - name: 'Template Huawei VRP SNMP Mod. - by IPv0' - description: | - Template Net Huawei VRP Modding by IPv0 - - MIBs used: - EtherLike-MIB - HUAWEI-ENTITY-EXTENT-MIB - HOST-RESOURCES-MIB - SNMPv2-MIB - ENTITY-MIB - IF-MIB - vendor: - name: IPv0 - version: 7.0-1 - groups: - - name: 'Templates/Network devices' - - name: 'Templates IPv0' - items: - - uuid: 3163a410774148d291203a411fb5b1d1 - name: 'ICMP ping' - type: SIMPLE - key: icmpping - valuemap: - name: 'Service state' - tags: - - tag: component - value: health - - tag: component - value: network - triggers: - - uuid: 278300fcdffc4ac0b7753d4896e110f2 - expression: 'max(/Template Huawei VRP SNMP Mod. - by IPv0/icmpping,#3)=0' - name: 'Unavailable by ICMP ping' - priority: HIGH - description: 'Last three attempts returned timeout. Please check device connectivity.' - tags: - - tag: scope - value: availability - - uuid: 6bcbad05dbe34d159c0dfd5a54c68a13 - name: 'ICMP loss' - type: SIMPLE - key: icmppingloss - value_type: FLOAT - units: '%' - tags: - - tag: component - value: health - - tag: component - value: network - triggers: - - uuid: aae2fd5007ee411ba29f735641f88ad6 - expression: 'min(/Template Huawei VRP SNMP Mod. - by IPv0/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Template Huawei VRP SNMP Mod. - by IPv0/icmppingloss,5m)<100' - name: 'High ICMP ping loss' - opdata: 'Loss: {ITEM.LASTVALUE1}' - priority: WARNING - dependencies: - - name: 'Unavailable by ICMP ping' - expression: 'max(/Template Huawei VRP SNMP Mod. - by IPv0/icmpping,#3)=0' - tags: - - tag: scope - value: availability - - tag: scope - value: performance - - uuid: 222c2467178b4dc78ca25b3ed63d0854 - name: 'ICMP response time' - type: SIMPLE - key: icmppingsec - value_type: FLOAT - units: s - tags: - - tag: component - value: health - - tag: component - value: network - triggers: - - uuid: aaf1405734cb43b2a14867a8f371e765 - expression: 'avg(/Template Huawei VRP SNMP Mod. - by IPv0/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' - name: 'High ICMP ping response time' - opdata: 'Value: {ITEM.LASTVALUE1}' - priority: WARNING - description: 'Average ICMP response time is too high.' - dependencies: - - name: 'High ICMP ping loss' - expression: 'min(/Template Huawei VRP SNMP Mod. - by IPv0/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Template Huawei VRP SNMP Mod. - by IPv0/icmppingloss,5m)<100' - - name: 'Unavailable by ICMP ping' - expression: 'max(/Template Huawei VRP SNMP Mod. - by IPv0/icmpping,#3)=0' - tags: - - tag: scope - value: availability - - tag: scope - value: performance - - uuid: 8e8a479136e843af8396d1f646492404 - name: 'SNMP traps (fallback)' - type: SNMP_TRAP - key: snmptrap.fallback - delay: '0' - value_type: LOG - trends: '0' - description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' - logtimefmt: 'hh:mm:sszyyyy/MM/dd' - tags: - - tag: component - value: network - - uuid: 1d715fbd73e249ff8e1ad3d507daab92 - name: 'System contact details' - type: SNMP_AGENT - snmp_oid: 1.3.6.1.2.1.1.4.0 - key: 'system.contact[sysContact.0]' - delay: 15m - value_type: CHAR - trends: '0' - description: | - MIB: SNMPv2-MIB - The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. - inventory_link: CONTACT - preprocessing: - - type: DISCARD_UNCHANGED_HEARTBEAT - parameters: - - 12h - tags: - - tag: component - value: system - - uuid: f0232856363b48dda0f9e0778434851f - name: 'System description' - type: SNMP_AGENT - snmp_oid: 1.3.6.1.2.1.1.1.0 - key: 'system.descr[sysDescr.0]' - delay: 15m - value_type: CHAR - trends: '0' - description: | - MIB: SNMPv2-MIB - A textual description of the entity. This value should - include the full name and version identification of the system's hardware type, software operating-system, and - networking software. - preprocessing: - - type: DISCARD_UNCHANGED_HEARTBEAT - parameters: - - 12h - tags: - - tag: component - value: system - - uuid: 0209e2f3c69e4419a5f0eb2b5572a462 - name: 'Uptime (hardware)' - type: SNMP_AGENT - snmp_oid: 1.3.6.1.2.1.25.1.1.0 - key: 'system.hw.uptime[hrSystemUptime.0]' - delay: 30s - trends: '0' - units: uptime - description: | - MIB: HOST-RESOURCES-MIB - The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. - preprocessing: - - type: CHECK_NOT_SUPPORTED - parameters: - - '-1' - error_handler: CUSTOM_VALUE - error_handler_params: '0' - - type: MULTIPLIER - parameters: - - '0.01' - tags: - - tag: component - value: system - - uuid: 959d4a74c46f4c078f72afade7248257 - name: 'System location' - type: SNMP_AGENT - snmp_oid: 1.3.6.1.2.1.1.6.0 - key: 'system.location[sysLocation.0]' - delay: 15m - value_type: CHAR - trends: '0' - description: | - MIB: SNMPv2-MIB - Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. - inventory_link: LOCATION - preprocessing: - - type: DISCARD_UNCHANGED_HEARTBEAT - parameters: - - 12h - tags: - - tag: component - value: system - - uuid: bf488d5a18364b3b85c77657d0c453e0 - name: 'System name' - type: SNMP_AGENT - snmp_oid: 1.3.6.1.2.1.1.5.0 - key: system.name - delay: 15m - value_type: CHAR - trends: '0' - description: | - MIB: SNMPv2-MIB - An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. - inventory_link: NAME - preprocessing: - - type: DISCARD_UNCHANGED_HEARTBEAT - parameters: - - 12h - tags: - - tag: component - value: system - triggers: - - uuid: a78b8535de9744d8a56937b95a19751b - expression: 'last(/Template Huawei VRP SNMP Mod. - by IPv0/system.name,#1)<>last(/Template Huawei VRP SNMP Mod. - by IPv0/system.name,#2) and length(last(/Template Huawei VRP SNMP Mod. - by IPv0/system.name))>0' - name: 'System name has changed' - event_name: 'System name has changed (new name: {ITEM.VALUE})' - priority: INFO - description: 'The name of the system has changed. Acknowledge to close the problem manually.' - manual_close: 'YES' - tags: - - tag: scope - value: notice - - tag: scope - value: security - - uuid: 3e2b55deda1640b28ea91bc59b15a6ed - name: 'Uptime (network)' - type: SNMP_AGENT - snmp_oid: 1.3.6.1.2.1.1.3.0 - key: 'system.net.uptime[sysUpTime.0]' - delay: 30s - trends: '0' - units: uptime - description: | - MIB: SNMPv2-MIB - Time (in hundredths of a second) since the network management portion of the system was last re-initialized. - preprocessing: - - type: MULTIPLIER - parameters: - - '0.01' - tags: - - tag: component - value: system - - uuid: 98a5e0961dee4ac4a450938a71051aaf - name: 'System object ID' - type: SNMP_AGENT - snmp_oid: 1.3.6.1.2.1.1.2.0 - key: 'system.objectid[sysObjectID.0]' - delay: 15m - value_type: CHAR - trends: '0' - description: | - MIB: SNMPv2-MIB - The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. - preprocessing: - - type: DISCARD_UNCHANGED_HEARTBEAT - parameters: - - 12h - tags: - - tag: component - value: system - - uuid: 79e6d6e431784a8b85e168629b048141 - name: 'SNMP agent availability' - type: INTERNAL - key: 'zabbix[host,snmp,available]' - description: | - Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. - Possible values: - 0 - not available - 1 - available - 2 - unknown - valuemap: - name: zabbix.host.available - tags: - - tag: component - value: health - - tag: component - value: network - triggers: - - uuid: 42f884771dc849fe847a25421b1fecc2 - expression: 'max(/Template Huawei VRP SNMP Mod. - by IPv0/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' - name: 'No SNMP data collection' - opdata: 'Current state: {ITEM.LASTVALUE1}' - priority: WARNING - description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' - dependencies: - - name: 'Unavailable by ICMP ping' - expression: 'max(/Template Huawei VRP SNMP Mod. - by IPv0/icmpping,#3)=0' - tags: - - tag: scope - value: availability - discovery_rules: - - uuid: c5026208b73142b7be1a02514c0d5c0c - name: 'FAN Discovery' - type: SNMP_AGENT - snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.2011.5.25.31.1.1.10.1.1]' - key: discovery.fans - delay: 1h - status: DISABLED - item_prototypes: - - uuid: bd05e33039cc446bb24b7f83408b9bac - name: '#{#SNMPVALUE}: Fan status' - type: SNMP_AGENT - snmp_oid: '1.3.6.1.4.1.2011.5.25.31.1.1.10.1.7.{#SNMPINDEX}' - key: 'sensor.fan.status[hwEntityFanState.{#SNMPINDEX}]' - delay: 3m - trends: '0' - description: 'MIB: HUAWEI-ENTITY-EXTENT-MIB' - valuemap: - name: 'HUAWEI-ENTITY-EXTENT-MIB::hwEntityFanState' - tags: - - tag: component - value: fan - trigger_prototypes: - - uuid: 6c770c41c0e34dffa53a41f5c68796f4 - expression: 'count(/Template Huawei VRP SNMP Mod. - by IPv0/sensor.fan.status[hwEntityFanState.{#SNMPINDEX}],#1,"eq","{$FAN_CRIT_STATUS}")=1' - name: '#{#SNMPVALUE}: Fan is in critical state' - opdata: 'Current state: {ITEM.LASTVALUE1}' - priority: AVERAGE - description: 'Please check the fan unit' - tags: - - tag: scope - value: availability - - tag: scope - value: performance - - uuid: 771015e3d9244857b417106f3cebbac7 - name: 'Entity Discovery' - type: SNMP_AGENT - snmp_oid: 'discovery[{#ENT_CLASS},1.3.6.1.2.1.47.1.1.1.1.5,{#ENT_NAME},1.3.6.1.2.1.47.1.1.1.1.7]' - key: entity.discovery - delay: 1h - filter: - conditions: - - macro: '{#ENT_CLASS}' - value: '3' - formulaid: A - item_prototypes: - - uuid: 33bd42968c4745a683a05be17c8fc433 - name: '{#ENT_NAME}: Hardware model name' - type: SNMP_AGENT - snmp_oid: '1.3.6.1.2.1.47.1.1.1.1.2.{#SNMPINDEX}' - key: 'system.hw.model[entPhysicalDescr.{#SNMPINDEX}]' - delay: 1h - value_type: CHAR - trends: '0' - description: 'MIB: ENTITY-MIB' - preprocessing: - - type: DISCARD_UNCHANGED_HEARTBEAT - parameters: - - 1d - tags: - - tag: component - value: system - tags: - - tag: ipv0 - - tag: target - value: huawei - - tag: target - value: huawei-vrp - macros: - - macro: '{$CPU.UTIL.CRIT}' - value: '90' - - macro: '{$FAN_CRIT_STATUS}' - value: '2' - - macro: '{$ICMP_LOSS_WARN}' - value: '20' - description: 'Warning threshold of ICMP packet loss in %.' - - macro: '{$ICMP_RESPONSE_TIME_WARN}' - value: '0.15' - description: 'Warning threshold of the average ICMP response time in seconds.' - - macro: '{$IF.ERRORS.WARN}' - value: '2' - description: 'Warning threshold of error packet rate. Can be used with interface name as context.' - - macro: '{$IF.UTIL.MAX}' - value: '90' - - macro: '{$IFCONTROL}' - value: '1' - - macro: '{$MEMORY.UTIL.MAX}' - value: '90' - - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' - value: '^.*' - - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' - value: ^2$ - description: 'Ignore down(2) administrative status' - - macro: '{$NET.IF.IFALIAS.MATCHES}' - value: '.*' - - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' - value: CHANGE_IF_NEEDED - - macro: '{$NET.IF.IFDESCR.MATCHES}' - value: '.*' - - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' - value: CHANGE_IF_NEEDED - - macro: '{$NET.IF.IFNAME.MATCHES}' - value: '^.*$' - - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' - value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' - description: 'Filter out loopbacks, nulls, docker veth links and docker0 bridge by default' - - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' - value: '^.*$' - - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' - value: ^6$ - description: 'Ignore notPresent(6)' - - macro: '{$NET.IF.IFTYPE.MATCHES}' - value: '.*' - - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' - value: CHANGE_IF_NEEDED - - macro: '{$SNMP.TIMEOUT}' - value: 5m - description: 'Time interval for the SNMP availability trigger.' - - macro: '{$TEMP_CRIT}' - value: '60' - - macro: '{$TEMP_CRIT_LOW}' - value: '5' - - macro: '{$TEMP_WARN}' - value: '50' - dashboards: - - uuid: ccc5b78f14fa4e19a174cb4b91bb1e97 - name: 'Network interfaces' - pages: - - widgets: - - type: graphprototype - width: '72' - height: '5' - fields: - - type: INTEGER - name: columns - value: '1' - - type: STRING - name: reference - value: AAAAA - valuemaps: - - uuid: 8f7f4286a3db47e78e6a632ac08fedc3 - name: 'EtherLike-MIB::dot3StatsDuplexStatus' - mappings: - - value: '1' - newvalue: unknown - - value: '2' - newvalue: halfDuplex - - value: '3' - newvalue: fullDuplex - - uuid: 19ca1af0ec4c4a499271299cdf7d8fa5 - name: 'HUAWEI-ENTITY-EXTENT-MIB::hwEntityFanState' - mappings: - - value: '1' - newvalue: normal - - value: '2' - newvalue: abnormal - - uuid: 890b65b065a8440f8defdf57d9d117e2 - name: 'IF-MIB::ifOperStatus' - mappings: - - value: '1' - newvalue: up - - value: '2' - newvalue: down - - value: '4' - newvalue: unknown - - value: '5' - newvalue: dormant - - value: '6' - newvalue: notPresent - - value: '7' - newvalue: lowerLayerDown - - uuid: e20f3a057d7b487bb170d014e47abd81 - name: 'IF-MIB::ifType' - mappings: - - value: '1' - newvalue: other - - value: '2' - newvalue: regular1822 - - value: '3' - newvalue: hdh1822 - - value: '4' - newvalue: ddnX25 - - value: '5' - newvalue: rfc877x25 - - value: '6' - newvalue: ethernetCsmacd - - value: '7' - newvalue: iso88023Csmacd - - value: '8' - newvalue: iso88024TokenBus - - value: '9' - newvalue: iso88025TokenRing - - value: '10' - newvalue: iso88026Man - - value: '11' - newvalue: starLan - - value: '12' - newvalue: proteon10Mbit - - value: '13' - newvalue: proteon80Mbit - - value: '14' - newvalue: hyperchannel - - value: '15' - newvalue: fddi - - value: '16' - newvalue: lapb - - value: '17' - newvalue: sdlc - - value: '18' - newvalue: ds1 - - value: '19' - newvalue: e1 - - value: '20' - newvalue: basicISDN - - value: '21' - newvalue: primaryISDN - - value: '22' - newvalue: propPointToPointSerial - - value: '23' - newvalue: ppp - - value: '24' - newvalue: softwareLoopback - - value: '25' - newvalue: eon - - value: '26' - newvalue: ethernet3Mbit - - value: '27' - newvalue: nsip - - value: '28' - newvalue: slip - - value: '29' - newvalue: ultra - - value: '30' - newvalue: ds3 - - value: '31' - newvalue: sip - - value: '32' - newvalue: frameRelay - - value: '33' - newvalue: rs232 - - value: '34' - newvalue: para - - value: '35' - newvalue: arcnet - - value: '36' - newvalue: arcnetPlus - - value: '37' - newvalue: atm - - value: '38' - newvalue: miox25 - - value: '39' - newvalue: sonet - - value: '40' - newvalue: x25ple - - value: '41' - newvalue: iso88022llc - - value: '42' - newvalue: localTalk - - value: '43' - newvalue: smdsDxi - - value: '44' - newvalue: frameRelayService - - value: '45' - newvalue: v35 - - value: '46' - newvalue: hssi - - value: '47' - newvalue: hippi - - value: '48' - newvalue: modem - - value: '49' - newvalue: aal5 - - value: '50' - newvalue: sonetPath - - value: '51' - newvalue: sonetVT - - value: '52' - newvalue: smdsIcip - - value: '53' - newvalue: propVirtual - - value: '54' - newvalue: propMultiplexor - - value: '55' - newvalue: ieee80212 - - value: '56' - newvalue: fibreChannel - - value: '57' - newvalue: hippiInterface - - value: '58' - newvalue: frameRelayInterconnect - - value: '59' - newvalue: aflane8023 - - value: '60' - newvalue: aflane8025 - - value: '61' - newvalue: cctEmul - - value: '62' - newvalue: fastEther - - value: '63' - newvalue: isdn - - value: '64' - newvalue: v11 - - value: '65' - newvalue: v36 - - value: '66' - newvalue: g703at64k - - value: '67' - newvalue: g703at2mb - - value: '68' - newvalue: qllc - - value: '69' - newvalue: fastEtherFX - - value: '70' - newvalue: channel - - value: '71' - newvalue: ieee80211 - - value: '72' - newvalue: ibm370parChan - - value: '73' - newvalue: escon - - value: '74' - newvalue: dlsw - - value: '75' - newvalue: isdns - - value: '76' - newvalue: isdnu - - value: '77' - newvalue: lapd - - value: '78' - newvalue: ipSwitch - - value: '79' - newvalue: rsrb - - value: '80' - newvalue: atmLogical - - value: '81' - newvalue: ds0 - - value: '82' - newvalue: ds0Bundle - - value: '83' - newvalue: bsc - - value: '84' - newvalue: async - - value: '85' - newvalue: cnr - - value: '86' - newvalue: iso88025Dtr - - value: '87' - newvalue: eplrs - - value: '88' - newvalue: arap - - value: '89' - newvalue: propCnls - - value: '90' - newvalue: hostPad - - value: '91' - newvalue: termPad - - value: '92' - newvalue: frameRelayMPI - - value: '93' - newvalue: x213 - - value: '94' - newvalue: adsl - - value: '95' - newvalue: radsl - - value: '96' - newvalue: sdsl - - value: '97' - newvalue: vdsl - - value: '98' - newvalue: iso88025CRFPInt - - value: '99' - newvalue: myrinet - - value: '100' - newvalue: voiceEM - - value: '101' - newvalue: voiceFXO - - value: '102' - newvalue: voiceFXS - - value: '103' - newvalue: voiceEncap - - value: '104' - newvalue: voiceOverIp - - value: '105' - newvalue: atmDxi - - value: '106' - newvalue: atmFuni - - value: '107' - newvalue: atmIma - - value: '108' - newvalue: pppMultilinkBundle - - value: '109' - newvalue: ipOverCdlc - - value: '110' - newvalue: ipOverClaw - - value: '111' - newvalue: stackToStack - - value: '112' - newvalue: virtualIpAddress - - value: '113' - newvalue: mpc - - value: '114' - newvalue: ipOverAtm - - value: '115' - newvalue: iso88025Fiber - - value: '116' - newvalue: tdlc - - value: '117' - newvalue: gigabitEthernet - - value: '118' - newvalue: hdlc - - value: '119' - newvalue: lapf - - value: '120' - newvalue: v37 - - value: '121' - newvalue: x25mlp - - value: '122' - newvalue: x25huntGroup - - value: '123' - newvalue: trasnpHdlc - - value: '124' - newvalue: interleave - - value: '125' - newvalue: fast - - value: '126' - newvalue: ip - - value: '127' - newvalue: docsCableMaclayer - - value: '128' - newvalue: docsCableDownstream - - value: '129' - newvalue: docsCableUpstream - - value: '130' - newvalue: a12MppSwitch - - value: '131' - newvalue: tunnel - - value: '132' - newvalue: coffee - - value: '133' - newvalue: ces - - value: '134' - newvalue: atmSubInterface - - value: '135' - newvalue: l2vlan - - value: '136' - newvalue: l3ipvlan - - value: '137' - newvalue: l3ipxvlan - - value: '138' - newvalue: digitalPowerline - - value: '139' - newvalue: mediaMailOverIp - - value: '140' - newvalue: dtm - - value: '141' - newvalue: dcn - - value: '142' - newvalue: ipForward - - value: '143' - newvalue: msdsl - - value: '144' - newvalue: ieee1394 - - value: '145' - newvalue: if-gsn - - value: '146' - newvalue: dvbRccMacLayer - - value: '147' - newvalue: dvbRccDownstream - - value: '148' - newvalue: dvbRccUpstream - - value: '149' - newvalue: atmVirtual - - value: '150' - newvalue: mplsTunnel - - value: '151' - newvalue: srp - - value: '152' - newvalue: voiceOverAtm - - value: '153' - newvalue: voiceOverFrameRelay - - value: '154' - newvalue: idsl - - value: '155' - newvalue: compositeLink - - value: '156' - newvalue: ss7SigLink - - value: '157' - newvalue: propWirelessP2P - - value: '158' - newvalue: frForward - - value: '159' - newvalue: rfc1483 - - value: '160' - newvalue: usb - - value: '161' - newvalue: ieee8023adLag - - value: '162' - newvalue: bgppolicyaccounting - - value: '163' - newvalue: frf16MfrBundle - - value: '164' - newvalue: h323Gatekeeper - - value: '165' - newvalue: h323Proxy - - value: '166' - newvalue: mpls - - value: '167' - newvalue: mfSigLink - - value: '168' - newvalue: hdsl2 - - value: '169' - newvalue: shdsl - - value: '170' - newvalue: ds1FDL - - value: '171' - newvalue: pos - - value: '172' - newvalue: dvbAsiIn - - value: '173' - newvalue: dvbAsiOut - - value: '174' - newvalue: plc - - value: '175' - newvalue: nfas - - value: '176' - newvalue: tr008 - - value: '177' - newvalue: gr303RDT - - value: '178' - newvalue: gr303IDT - - value: '179' - newvalue: isup - - value: '180' - newvalue: propDocsWirelessMaclayer - - value: '181' - newvalue: propDocsWirelessDownstream - - value: '182' - newvalue: propDocsWirelessUpstream - - value: '183' - newvalue: hiperlan2 - - value: '184' - newvalue: propBWAp2Mp - - value: '185' - newvalue: sonetOverheadChannel - - value: '186' - newvalue: digitalWrapperOverheadChannel - - value: '187' - newvalue: aal2 - - value: '188' - newvalue: radioMAC - - value: '189' - newvalue: atmRadio - - value: '190' - newvalue: imt - - value: '191' - newvalue: mvl - - value: '192' - newvalue: reachDSL - - value: '193' - newvalue: frDlciEndPt - - value: '194' - newvalue: atmVciEndPt - - value: '195' - newvalue: opticalChannel - - value: '196' - newvalue: opticalTransport - - value: '197' - newvalue: propAtm - - value: '198' - newvalue: voiceOverCable - - value: '199' - newvalue: infiniband - - value: '200' - newvalue: teLink - - value: '201' - newvalue: q2931 - - value: '202' - newvalue: virtualTg - - value: '203' - newvalue: sipTg - - value: '204' - newvalue: sipSig - - value: '205' - newvalue: docsCableUpstreamChannel - - value: '206' - newvalue: econet - - value: '207' - newvalue: pon155 - - value: '208' - newvalue: pon622 - - value: '209' - newvalue: bridge - - value: '210' - newvalue: linegroup - - value: '211' - newvalue: voiceEMFGD - - value: '212' - newvalue: voiceFGDEANA - - value: '213' - newvalue: voiceDID - - value: '214' - newvalue: mpegTransport - - value: '215' - newvalue: sixToFour - - value: '216' - newvalue: gtp - - value: '217' - newvalue: pdnEtherLoop1 - - value: '218' - newvalue: pdnEtherLoop2 - - value: '219' - newvalue: opticalChannelGroup - - value: '220' - newvalue: homepna - - value: '221' - newvalue: gfp - - value: '222' - newvalue: ciscoISLvlan - - value: '223' - newvalue: actelisMetaLOOP - - value: '224' - newvalue: fcipLink - - value: '225' - newvalue: rpr - - value: '226' - newvalue: qam - - value: '227' - newvalue: lmp - - value: '228' - newvalue: cblVectaStar - - value: '229' - newvalue: docsCableMCmtsDownstream - - value: '230' - newvalue: adsl2 - - value: '231' - newvalue: macSecControlledIF - - value: '232' - newvalue: macSecUncontrolledIF - - value: '233' - newvalue: aviciOpticalEther - - value: '234' - newvalue: atmbond - - value: '235' - newvalue: voiceFGDOS - - value: '236' - newvalue: mocaVersion1 - - value: '237' - newvalue: ieee80216WMAN - - value: '238' - newvalue: adsl2plus - - value: '239' - newvalue: dvbRcsMacLayer - - value: '240' - newvalue: dvbTdm - - value: '241' - newvalue: dvbRcsTdma - - value: '242' - newvalue: x86Laps - - value: '243' - newvalue: wwanPP - - value: '244' - newvalue: wwanPP2 - - value: '245' - newvalue: voiceEBS - - value: '246' - newvalue: ifPwType - - value: '247' - newvalue: ilan - - value: '248' - newvalue: pip - - value: '249' - newvalue: aluELP - - value: '250' - newvalue: gpon - - value: '251' - newvalue: vdsl2 - - value: '252' - newvalue: capwapDot11Profile - - value: '253' - newvalue: capwapDot11Bss - - value: '254' - newvalue: capwapWtpVirtualRadio - - value: '255' - newvalue: bits - - value: '256' - newvalue: docsCableUpstreamRfPort - - value: '257' - newvalue: cableDownstreamRfPort - - value: '258' - newvalue: vmwareVirtualNic - - value: '259' - newvalue: ieee802154 - - value: '260' - newvalue: otnOdu - - value: '261' - newvalue: otnOtu - - value: '262' - newvalue: ifVfiType - - value: '263' - newvalue: g9981 - - value: '264' - newvalue: g9982 - - value: '265' - newvalue: g9983 - - value: '266' - newvalue: aluEpon - - value: '267' - newvalue: aluEponOnu - - value: '268' - newvalue: aluEponPhysicalUni - - value: '269' - newvalue: aluEponLogicalLink - - value: '270' - newvalue: aluGponOnu - - value: '271' - newvalue: aluGponPhysicalUni - - value: '272' - newvalue: vmwareNicTeam - - value: '277' - newvalue: docsOfdmDownstream - - value: '278' - newvalue: docsOfdmaUpstream - - value: '279' - newvalue: gfast - - value: '280' - newvalue: sdci - - value: '281' - newvalue: xboxWireless - - value: '282' - newvalue: fastdsl - - value: '283' - newvalue: docsCableScte55d1FwdOob - - value: '284' - newvalue: docsCableScte55d1RetOob - - value: '285' - newvalue: docsCableScte55d2DsOob - - value: '286' - newvalue: docsCableScte55d2UsOob - - value: '287' - newvalue: docsCableNdf - - value: '288' - newvalue: docsCableNdr - - value: '289' - newvalue: ptm - - value: '290' - newvalue: ghn - - uuid: 8abe8ca1fb9047b2aec30f4b74cd43ad - name: 'Service state' - mappings: - - value: '0' - newvalue: Down - - value: '1' - newvalue: Up - - uuid: 17ff01e050f149c3aac5857e86f2ce10 - name: zabbix.host.available - mappings: - - value: '0' - newvalue: 'not available' - - value: '1' - newvalue: available - - value: '2' - newvalue: unknown - triggers: - - uuid: 5278f6c51c874761b77d74af4c4b410c - expression: '(last(/Template Huawei VRP SNMP Mod. - by IPv0/system.hw.uptime[hrSystemUptime.0])>0 and last(/Template Huawei VRP SNMP Mod. - by IPv0/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/Template Huawei VRP SNMP Mod. - by IPv0/system.hw.uptime[hrSystemUptime.0])=0 and last(/Template Huawei VRP SNMP Mod. - by IPv0/system.net.uptime[sysUpTime.0])<10m)' - name: 'Host has been restarted' - event_name: '{HOST.NAME} has been restarted (uptime < 10m)' - priority: WARNING - description: 'Uptime is less than 10 minutes.' - manual_close: 'YES' - dependencies: - - name: 'No SNMP data collection' - expression: 'max(/Template Huawei VRP SNMP Mod. - by IPv0/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' - tags: - - tag: scope - value: notice - graphs: - - uuid: 3ff74383f6634843b8b8a233fc744752 - name: 'PPPoE Access-User Summary' - ymin_type_1: FIXED - ymax_type_1: ITEM - ymax_item_1: - host: 'Template Huawei BNG - by IPv0' - key: hwTotalPPPoeOnlineNum - graph_items: - - drawtype: GRADIENT_LINE - color: 199C0D - item: - host: 'Template Huawei BNG - by IPv0' - key: hwTotalPPPoeOnlineNum diff --git a/templates/huawei/Template_Huawei-Interfaces-SNMP.yaml b/templates/huawei/Template_Huawei-Interfaces-SNMP.yaml deleted file mode 100644 index a16efa9..0000000 --- a/templates/huawei/Template_Huawei-Interfaces-SNMP.yaml +++ /dev/null @@ -1,1068 +0,0 @@ -zabbix_export: - version: '7.0' - template_groups: - - uuid: 36bff6c29af64692839d077febfc7079 - name: 'Templates/Network devices' - templates: - - uuid: 148dde47e2694870b438b28fa97f59f2 - template: 'Template Huawei Interfaces SNMP - by IPv0' - name: 'Template Huawei Interfaces SNMP - by IPv0' - description: | - Template Huawei Interfaces SNMP - by IPv0 - V1 for ZBX 7.0 - - - - - MIBs used: - EtherLike-MIB - SNMPv2-MIB - IF-MIB - vendor: - name: IPv0 - version: 7.0-1 - groups: - - name: 'Templates/Network devices' - discovery_rules: - - uuid: 8512b56c8d9b40d6aff89f676ebec85e - 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]' - key: net.if.discovery - delay: 1h - filter: - evaltype: AND - conditions: - - macro: '{#IFADMINSTATUS}' - value: '{$NET.IF.IFADMINSTATUS.MATCHES}' - formulaid: A - - macro: '{#IFADMINSTATUS}' - value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' - operator: NOT_MATCHES_REGEX - formulaid: B - - macro: '{#IFALIAS}' - value: '{$NET.IF.IFALIAS.MATCHES}' - formulaid: C - - macro: '{#IFALIAS}' - value: '{$NET.IF.IFALIAS.NOT_MATCHES}' - operator: NOT_MATCHES_REGEX - formulaid: D - - macro: '{#IFDESCR}' - value: '{$NET.IF.IFDESCR.MATCHES}' - formulaid: E - - macro: '{#IFDESCR}' - value: '{$NET.IF.IFDESCR.NOT_MATCHES}' - operator: NOT_MATCHES_REGEX - formulaid: F - - macro: '{#IFNAME}' - value: '{$NET.IF.IFNAME.MATCHES}' - formulaid: G - - macro: '{#IFNAME}' - value: '{$NET.IF.IFNAME.NOT_MATCHES}' - operator: NOT_MATCHES_REGEX - formulaid: H - - macro: '{#IFOPERSTATUS}' - value: '{$NET.IF.IFOPERSTATUS.MATCHES}' - formulaid: I - - macro: '{#IFOPERSTATUS}' - value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' - operator: NOT_MATCHES_REGEX - formulaid: J - - macro: '{#IFTYPE}' - value: '{$NET.IF.IFTYPE.MATCHES}' - formulaid: K - - macro: '{#IFTYPE}' - value: 23|24|53 - operator: NOT_MATCHES_REGEX - formulaid: L - - macro: '{#IFTYPE}' - value: '{$NET.IF.IFTYPE.NOT_MATCHES}' - operator: NOT_MATCHES_REGEX - formulaid: M - description: 'Discovering interfaces from IF-MIB.' - item_prototypes: - - uuid: 086a278ff5e64edea4a6d2dc3e450e4c - name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded' - type: SNMP_AGENT - snmp_oid: '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' - key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' - delay: 3m - description: | - MIB: IF-MIB - The number of inbound packets which were chosen to be discarded - even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. - One possible reason for discarding such a packet could be to free up buffer space. - Discontinuities in the value of this counter can occur at re-initialization of the management system, - and at other times as indicated by the value of ifCounterDiscontinuityTime. - preprocessing: - - type: CHANGE_PER_SECOND - parameters: - - '' - tags: - - tag: component - value: network - - tag: description - value: '{#IFALIAS}' - - tag: interface - value: '{#IFNAME}' - - uuid: f82b1af2892640d394bb8e05c86604ec - name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors' - type: SNMP_AGENT - snmp_oid: '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' - key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' - delay: 3m - description: | - MIB: IF-MIB - For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. - preprocessing: - - type: CHANGE_PER_SECOND - parameters: - - '' - tags: - - tag: component - value: network - - tag: description - value: '{#IFALIAS}' - - tag: interface - value: '{#IFNAME}' - - uuid: f8bb4259b6024160be46d77fa5e6f60a - name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' - type: SNMP_AGENT - snmp_oid: '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' - key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' - delay: 3m - units: bps - description: | - MIB: IF-MIB - The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. - preprocessing: - - type: CHANGE_PER_SECOND - parameters: - - '' - - type: MULTIPLIER - parameters: - - '8' - tags: - - tag: component - value: network - - tag: description - value: '{#IFALIAS}' - - tag: interface - value: '{#IFNAME}' - - uuid: bb61ab8b19fd4d1d8bd7d02f364cbc2e - name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded' - type: SNMP_AGENT - snmp_oid: '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' - key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' - delay: 3m - description: | - MIB: IF-MIB - The number of inbound packets which were chosen to be discarded - even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. - One possible reason for discarding such a packet could be to free up buffer space. - Discontinuities in the value of this counter can occur at re-initialization of the management system, - and at other times as indicated by the value of ifCounterDiscontinuityTime. - preprocessing: - - type: CHANGE_PER_SECOND - parameters: - - '' - tags: - - tag: component - value: network - - tag: description - value: '{#IFALIAS}' - - tag: interface - value: '{#IFNAME}' - - uuid: 69645209cec6422da1f341ec34c04539 - name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors' - type: SNMP_AGENT - snmp_oid: '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' - key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' - delay: 3m - description: | - MIB: IF-MIB - For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. - preprocessing: - - type: CHANGE_PER_SECOND - parameters: - - '' - tags: - - tag: component - value: network - - tag: description - value: '{#IFALIAS}' - - tag: interface - value: '{#IFNAME}' - - uuid: ee5d58563cd149618421ed1d5c8afa72 - name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' - type: SNMP_AGENT - snmp_oid: '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' - key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' - delay: 3m - units: bps - description: | - MIB: IF-MIB - The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. - preprocessing: - - type: CHANGE_PER_SECOND - parameters: - - '' - - type: MULTIPLIER - parameters: - - '8' - tags: - - tag: component - value: network - - tag: description - value: '{#IFALIAS}' - - tag: interface - value: '{#IFNAME}' - - uuid: 17ba03a6f162465782cbfe7392bc59ff - name: 'Interface {#IFNAME}({#IFALIAS}): Speed' - type: SNMP_AGENT - snmp_oid: '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}' - key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]' - delay: 5m - trends: '0' - units: bps - description: | - MIB: IF-MIB - An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n' then the speed of the interface is somewhere in the range of `n-500,000' to`n+499,999'. For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. For a sub-layer which has no concept of bandwidth, this object should be zero. - preprocessing: - - type: MULTIPLIER - parameters: - - '1000000' - - type: DISCARD_UNCHANGED_HEARTBEAT - parameters: - - 1h - tags: - - tag: component - value: network - - tag: description - value: '{#IFALIAS}' - - tag: interface - value: '{#IFNAME}' - - uuid: 349cdf9cdf7b464aab37501400f96951 - name: 'Interface {#IFNAME}({#IFALIAS}): Operational status' - type: SNMP_AGENT - snmp_oid: '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' - key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' - trends: '0' - description: | - MIB: IF-MIB - The current operational state of the interface. - - The testing(3) state indicates that no operational packet scan be passed - - If ifAdminStatus is down(2) then ifOperStatus should be down(2) - - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic - - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection) - - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state - - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components. - valuemap: - name: 'IF-MIB::ifOperStatus' - tags: - - tag: component - value: network - - tag: description - value: '{#IFALIAS}' - - tag: interface - value: '{#IFNAME}' - trigger_prototypes: - - uuid: 3afe806ec3284a59af1199c3a6f3b0f9 - expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Template Huawei Interfaces SNMP - by IPv0/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Template Huawei Interfaces SNMP - by IPv0/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Template Huawei Interfaces SNMP - by IPv0/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' - recovery_mode: RECOVERY_EXPRESSION - recovery_expression: 'last(/Template Huawei Interfaces SNMP - by IPv0/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' - name: 'Interface {#IFNAME}({#IFALIAS}): Link down' - priority: AVERAGE - description: | - This trigger expression works as follows: - 1. It can be triggered if the operations status is down. - 2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down. - 3. `{TEMPLATE_NAME:METRIC.diff()}=1` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.) - - WARNING: if closed manually - it will not fire again on the next poll, because of .diff. - manual_close: 'YES' - tags: - - tag: scope - value: availability - - uuid: a74233c74e9b4d59aff97bd867205315 - name: 'Interface {#IFNAME}({#IFALIAS}): Interface type' - type: SNMP_AGENT - snmp_oid: '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}' - key: 'net.if.type[ifType.{#SNMPINDEX}]' - delay: 1h - trends: '0' - description: | - MIB: IF-MIB - The type of interface. - Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA), - through updating the syntax of the IANAifType textual convention. - valuemap: - name: 'IF-MIB::ifType' - preprocessing: - - type: DISCARD_UNCHANGED_HEARTBEAT - parameters: - - 1d - tags: - - tag: component - value: network - - tag: description - value: '{#IFALIAS}' - - tag: interface - value: '{#IFNAME}' - trigger_prototypes: - - uuid: da77dea969d34792943a4077cd1bbec8 - expression: | - change(/Template Huawei Interfaces SNMP - by IPv0/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/Template Huawei Interfaces SNMP - by IPv0/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 - and ( - last(/Template Huawei Interfaces SNMP - by IPv0/net.if.type[ifType.{#SNMPINDEX}])=6 or - last(/Template Huawei Interfaces SNMP - by IPv0/net.if.type[ifType.{#SNMPINDEX}])=7 or - last(/Template Huawei Interfaces SNMP - by IPv0/net.if.type[ifType.{#SNMPINDEX}])=11 or - last(/Template Huawei Interfaces SNMP - by IPv0/net.if.type[ifType.{#SNMPINDEX}])=62 or - last(/Template Huawei Interfaces SNMP - by IPv0/net.if.type[ifType.{#SNMPINDEX}])=69 or - last(/Template Huawei Interfaces SNMP - by IPv0/net.if.type[ifType.{#SNMPINDEX}])=117 - ) - and - (last(/Template Huawei Interfaces SNMP - by IPv0/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2) - recovery_mode: RECOVERY_EXPRESSION - recovery_expression: | - (change(/Template Huawei Interfaces SNMP - by IPv0/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/Template Huawei Interfaces SNMP - by IPv0/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or - (last(/Template Huawei Interfaces SNMP - by IPv0/net.if.status[ifOperStatus.{#SNMPINDEX}])=2) - name: 'Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before' - priority: INFO - description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.' - manual_close: 'YES' - dependencies: - - name: 'Interface {#IFNAME}({#IFALIAS}): Link down' - expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Template Huawei Interfaces SNMP - by IPv0/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Template Huawei Interfaces SNMP - by IPv0/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Template Huawei Interfaces SNMP - by IPv0/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' - recovery_expression: 'last(/Template Huawei Interfaces SNMP - by IPv0/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' - tags: - - tag: scope - value: performance - - uuid: 2eedb49822a34333a49794385f85909a - expression: | - (avg(/Template Huawei Interfaces SNMP - by IPv0/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Template Huawei Interfaces SNMP - by IPv0/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or - avg(/Template Huawei Interfaces SNMP - by IPv0/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Template Huawei Interfaces SNMP - by IPv0/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and - last(/Template Huawei Interfaces SNMP - by IPv0/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 - recovery_mode: RECOVERY_EXPRESSION - recovery_expression: | - avg(/Template Huawei Interfaces SNMP - by IPv0/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Template Huawei Interfaces SNMP - by IPv0/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and - avg(/Template Huawei Interfaces SNMP - by IPv0/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Template Huawei Interfaces SNMP - by IPv0/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) - name: 'Interface {#IFNAME}({#IFALIAS}): High bandwidth usage' - event_name: 'Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)' - opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}' - priority: WARNING - description: 'The utilization of the network interface is close to its estimated maximum bandwidth.' - manual_close: 'YES' - dependencies: - - name: 'Interface {#IFNAME}({#IFALIAS}): Link down' - expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Template Huawei Interfaces SNMP - by IPv0/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Template Huawei Interfaces SNMP - by IPv0/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Template Huawei Interfaces SNMP - by IPv0/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' - recovery_expression: 'last(/Template Huawei Interfaces SNMP - by IPv0/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' - tags: - - tag: scope - value: performance - - uuid: c05e12b4b6a84849b3d49d2020d4fbfb - expression: | - min(/Template Huawei Interfaces SNMP - by IPv0/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} - or min(/Template Huawei Interfaces SNMP - by IPv0/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} - recovery_mode: RECOVERY_EXPRESSION - recovery_expression: | - max(/Template Huawei Interfaces SNMP - by IPv0/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 - and max(/Template Huawei Interfaces SNMP - by IPv0/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 - name: 'Interface {#IFNAME}({#IFALIAS}): High error rate' - event_name: 'Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)' - opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}' - priority: WARNING - description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.' - manual_close: 'YES' - dependencies: - - name: 'Interface {#IFNAME}({#IFALIAS}): Link down' - expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Template Huawei Interfaces SNMP - by IPv0/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Template Huawei Interfaces SNMP - by IPv0/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Template Huawei Interfaces SNMP - by IPv0/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))' - recovery_expression: 'last(/Template Huawei Interfaces SNMP - by IPv0/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0' - tags: - - tag: scope - value: availability - - tag: scope - value: performance - graph_prototypes: - - uuid: 2e6627eaf53d461a92203e0c9b585246 - name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic' - graph_items: - - color: 199C0D - calc_fnc: ALL - item: - host: 'Template Huawei Interfaces SNMP - by IPv0' - key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' - - sortorder: '1' - color: F63100 - calc_fnc: ALL - item: - host: 'Template Huawei Interfaces SNMP - by IPv0' - key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' - - sortorder: '2' - color: 00611C - calc_fnc: ALL - item: - host: 'Template Huawei Interfaces SNMP - by IPv0' - key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' - - sortorder: '3' - color: F7941D - calc_fnc: ALL - item: - host: 'Template Huawei Interfaces SNMP - by IPv0' - key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' - - sortorder: '4' - color: FC6EA3 - calc_fnc: ALL - item: - host: 'Template Huawei Interfaces SNMP - by IPv0' - key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' - - sortorder: '5' - color: 6C59DC - calc_fnc: ALL - item: - host: 'Template Huawei Interfaces SNMP - by IPv0' - key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' - - uuid: 3ed7d8b100f6400a97645678a6fadb26 - name: 'Network virtual 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]' - key: net.if.discovery.vlan - delay: 1h - filter: - evaltype: AND - conditions: - - macro: '{#IFADMINSTATUS}' - value: '{$NET.IF.IFADMINSTATUS.MATCHES}' - formulaid: A - - macro: '{#IFADMINSTATUS}' - value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' - operator: NOT_MATCHES_REGEX - formulaid: B - - macro: '{#IFALIAS}' - value: '{$NET.IF.IFALIAS.MATCHES}' - formulaid: C - - macro: '{#IFALIAS}' - value: '{$NET.IF.IFALIAS.NOT_MATCHES}' - operator: NOT_MATCHES_REGEX - formulaid: D - - macro: '{#IFDESCR}' - value: '{$NET.IF.IFDESCR.MATCHES}' - formulaid: E - - macro: '{#IFDESCR}' - value: '{$NET.IF.IFDESCR.NOT_MATCHES}' - operator: NOT_MATCHES_REGEX - formulaid: F - - macro: '{#IFNAME}' - value: '{$NET.IF.IFNAME.MATCHES}' - formulaid: G - - macro: '{#IFNAME}' - value: '{$NET.IF.IFNAME.NOT_MATCHES}' - operator: NOT_MATCHES_REGEX - formulaid: H - - macro: '{#IFOPERSTATUS}' - value: '{$NET.IF.IFOPERSTATUS.MATCHES}' - formulaid: I - - macro: '{#IFOPERSTATUS}' - value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' - operator: NOT_MATCHES_REGEX - formulaid: J - - macro: '{#IFTYPE}' - value: '53' - formulaid: K - description: 'Discovering interfaces from IF-MIB.' - item_prototypes: - - uuid: c2680c95987b476d826cb4daf467167a - name: 'Interface {#IFNAME}({#IFALIAS}): Bits received' - type: SNMP_AGENT - snmp_oid: '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' - key: 'net.if.in[ifHCInOctets.vlan{#SNMPINDEX}]' - delay: 3m - units: bps - description: | - MIB: IF-MIB - The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. - preprocessing: - - type: CHANGE_PER_SECOND - parameters: - - '' - - type: MULTIPLIER - parameters: - - '8' - tags: - - tag: component - value: network - - tag: description - value: '{#IFALIAS}' - - tag: interface - value: '{#IFNAME}' - - uuid: 000d389b315049d0a9137a74d3f8aeef - name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent' - type: SNMP_AGENT - snmp_oid: '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' - key: 'net.if.out[ifHCOutOctets.vlan{#SNMPINDEX}]' - delay: 3m - units: bps - description: | - MIB: IF-MIB - The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. - preprocessing: - - type: CHANGE_PER_SECOND - parameters: - - '' - - type: MULTIPLIER - parameters: - - '8' - tags: - - tag: component - value: network - - tag: description - value: '{#IFALIAS}' - - tag: interface - value: '{#IFNAME}' - graph_prototypes: - - uuid: 8cf98ddf97f4428ca6fd688560e55276 - name: 'Interface Vlan {#IFNAME}({#IFALIAS}): Network traffic' - graph_items: - - color: 199C0D - calc_fnc: ALL - item: - host: 'Template Huawei Interfaces SNMP - by IPv0' - key: 'net.if.in[ifHCInOctets.vlan{#SNMPINDEX}]' - - sortorder: '1' - color: F63100 - calc_fnc: ALL - item: - host: 'Template Huawei Interfaces SNMP - by IPv0' - key: 'net.if.out[ifHCOutOctets.vlan{#SNMPINDEX}]' - - uuid: 9a5211941064430c9319823bc9c1753b - name: 'EtherLike-MIB Discovery' - type: SNMP_AGENT - snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.2.1.10.7.2.1.19,{#IFOPERSTATUS},1.3.6.1.2.1.2.2.1.8,{#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]' - key: net.if.duplex.discovery - delay: 1h - filter: - evaltype: AND - conditions: - - macro: '{#IFOPERSTATUS}' - value: '1' - formulaid: A - - macro: '{#SNMPVALUE}' - value: (2|3) - formulaid: B - description: 'Discovering interfaces from IF-MIB and EtherLike-MIB. Interfaces with up(1) Operational Status are discovered.' - item_prototypes: - - uuid: a1385f080b1d4071b3cf3038cabb3fcb - name: 'Interface {#IFNAME}({#IFALIAS}): Duplex status' - type: SNMP_AGENT - snmp_oid: '1.3.6.1.2.1.10.7.2.1.19.{#SNMPINDEX}' - key: 'net.if.duplex[dot3StatsDuplexStatus.{#SNMPINDEX}]' - description: | - MIB: EtherLike-MIB - The current mode of operation of the MAC - entity. 'unknown' indicates that the current - duplex mode could not be determined. - - Management control of the duplex mode is - accomplished through the MAU MIB. When - an interface does not support autonegotiation, - or when autonegotiation is not enabled, the - duplex mode is controlled using - ifMauDefaultType. When autonegotiation is - supported and enabled, duplex mode is controlled - using ifMauAutoNegAdvertisedBits. In either - case, the currently operating duplex mode is - reflected both in this object and in ifMauType. - - Note that this object provides redundant - information with ifMauType. Normally, redundant - objects are discouraged. However, in this - instance, it allows a management application to - determine the duplex status of an interface - without having to know every possible value of - ifMauType. This was felt to be sufficiently - valuable to justify the redundancy. - Reference: [IEEE 802.3 Std.], 30.3.1.1.32,aDuplexStatus. - valuemap: - name: 'EtherLike-MIB::dot3StatsDuplexStatus' - tags: - - tag: component - value: network - - tag: description - value: '{#IFALIAS}' - - tag: interface - value: '{#IFNAME}' - trigger_prototypes: - - uuid: 78a76a2beae34e9283ec5886238af522 - expression: 'last(/Template Huawei Interfaces SNMP - by IPv0/net.if.duplex[dot3StatsDuplexStatus.{#SNMPINDEX}])=2' - name: 'Interface {#IFNAME}({#IFALIAS}): In half-duplex mode' - priority: WARNING - description: 'Please check autonegotiation settings and cabling.' - preprocessing: - - type: JAVASCRIPT - parameters: - - | - try { - var data = JSON.parse(value); - } - catch (error) { - throw 'Failed to parse JSON of EtherLike-MIB discovery.'; - } - var fields = ['{#SNMPVALUE}','{#IFOPERSTATUS}','{#IFALIAS}','{#IFNAME}','{#IFDESCR}']; - data.forEach(function (element) { - fields.forEach(function (field) { - element[field] = element[field] || ''; - }); - }); - return JSON.stringify(data); - tags: - - tag: ipv0 - - tag: target - value: huawei - macros: - - macro: '{$IF.ERRORS.WARN}' - value: '2' - description: 'Warning threshold of error packet rate. Can be used with interface name as context.' - - macro: '{$IF.UTIL.MAX}' - value: '90' - - macro: '{$IFCONTROL}' - value: '1' - - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' - value: '^.*' - - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' - value: ^2$ - description: 'Ignore down(2) administrative status' - - macro: '{$NET.IF.IFALIAS.MATCHES}' - value: '.*' - - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' - value: CHANGE_IF_NEEDED - - macro: '{$NET.IF.IFDESCR.MATCHES}' - value: '.*' - - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' - value: CHANGE_IF_NEEDED - - macro: '{$NET.IF.IFNAME.MATCHES}' - value: '^.*$' - - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' - value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12}|[Ll]oop[Bb]ack[0-9.]*$|^Console[0-9/]*$)' - description: 'Filter out loopbacks, nulls, docker veth links and docker0 bridge by default' - - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' - value: '^.*$' - - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' - value: ^6$ - description: 'Ignore notPresent(6)' - - macro: '{$NET.IF.IFTYPE.MATCHES}' - value: '.*' - - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' - value: CHANGE_IF_NEEDED - valuemaps: - - uuid: 3a304fac4df44a99967dc209a0180fe8 - name: 'EtherLike-MIB::dot3StatsDuplexStatus' - mappings: - - value: '1' - newvalue: unknown - - value: '2' - newvalue: halfDuplex - - value: '3' - newvalue: fullDuplex - - uuid: ffb1ee44142645b39143273ca9c8bf65 - name: 'IF-MIB::ifOperStatus' - mappings: - - value: '1' - newvalue: up - - value: '2' - newvalue: down - - value: '4' - newvalue: unknown - - value: '5' - newvalue: dormant - - value: '6' - newvalue: notPresent - - value: '7' - newvalue: lowerLayerDown - - uuid: 421d16298ff94475a131261fad84c222 - name: 'IF-MIB::ifType' - mappings: - - value: '1' - newvalue: other - - value: '2' - newvalue: regular1822 - - value: '3' - newvalue: hdh1822 - - value: '4' - newvalue: ddnX25 - - value: '5' - newvalue: rfc877x25 - - value: '6' - newvalue: ethernetCsmacd - - value: '7' - newvalue: iso88023Csmacd - - value: '8' - newvalue: iso88024TokenBus - - value: '9' - newvalue: iso88025TokenRing - - value: '10' - newvalue: iso88026Man - - value: '11' - newvalue: starLan - - value: '12' - newvalue: proteon10Mbit - - value: '13' - newvalue: proteon80Mbit - - value: '14' - newvalue: hyperchannel - - value: '15' - newvalue: fddi - - value: '16' - newvalue: lapb - - value: '17' - newvalue: sdlc - - value: '18' - newvalue: ds1 - - value: '19' - newvalue: e1 - - value: '20' - newvalue: basicISDN - - value: '21' - newvalue: primaryISDN - - value: '22' - newvalue: propPointToPointSerial - - value: '23' - newvalue: ppp - - value: '24' - newvalue: softwareLoopback - - value: '25' - newvalue: eon - - value: '26' - newvalue: ethernet3Mbit - - value: '27' - newvalue: nsip - - value: '28' - newvalue: slip - - value: '29' - newvalue: ultra - - value: '30' - newvalue: ds3 - - value: '31' - newvalue: sip - - value: '32' - newvalue: frameRelay - - value: '33' - newvalue: rs232 - - value: '34' - newvalue: para - - value: '35' - newvalue: arcnet - - value: '36' - newvalue: arcnetPlus - - value: '37' - newvalue: atm - - value: '38' - newvalue: miox25 - - value: '39' - newvalue: sonet - - value: '40' - newvalue: x25ple - - value: '41' - newvalue: iso88022llc - - value: '42' - newvalue: localTalk - - value: '43' - newvalue: smdsDxi - - value: '44' - newvalue: frameRelayService - - value: '45' - newvalue: v35 - - value: '46' - newvalue: hssi - - value: '47' - newvalue: hippi - - value: '48' - newvalue: modem - - value: '49' - newvalue: aal5 - - value: '50' - newvalue: sonetPath - - value: '51' - newvalue: sonetVT - - value: '52' - newvalue: smdsIcip - - value: '53' - newvalue: propVirtual - - value: '54' - newvalue: propMultiplexor - - value: '55' - newvalue: ieee80212 - - value: '56' - newvalue: fibreChannel - - value: '57' - newvalue: hippiInterface - - value: '58' - newvalue: frameRelayInterconnect - - value: '59' - newvalue: aflane8023 - - value: '60' - newvalue: aflane8025 - - value: '61' - newvalue: cctEmul - - value: '62' - newvalue: fastEther - - value: '63' - newvalue: isdn - - value: '64' - newvalue: v11 - - value: '65' - newvalue: v36 - - value: '66' - newvalue: g703at64k - - value: '67' - newvalue: g703at2mb - - value: '68' - newvalue: qllc - - value: '69' - newvalue: fastEtherFX - - value: '70' - newvalue: channel - - value: '71' - newvalue: ieee80211 - - value: '72' - newvalue: ibm370parChan - - value: '73' - newvalue: escon - - value: '74' - newvalue: dlsw - - value: '75' - newvalue: isdns - - value: '76' - newvalue: isdnu - - value: '77' - newvalue: lapd - - value: '78' - newvalue: ipSwitch - - value: '79' - newvalue: rsrb - - value: '80' - newvalue: atmLogical - - value: '81' - newvalue: ds0 - - value: '82' - newvalue: ds0Bundle - - value: '83' - newvalue: bsc - - value: '84' - newvalue: async - - value: '85' - newvalue: cnr - - value: '86' - newvalue: iso88025Dtr - - value: '87' - newvalue: eplrs - - value: '88' - newvalue: arap - - value: '89' - newvalue: propCnls - - value: '90' - newvalue: hostPad - - value: '91' - newvalue: termPad - - value: '92' - newvalue: frameRelayMPI - - value: '93' - newvalue: x213 - - value: '94' - newvalue: adsl - - value: '95' - newvalue: radsl - - value: '96' - newvalue: sdsl - - value: '97' - newvalue: vdsl - - value: '98' - newvalue: iso88025CRFPInt - - value: '99' - newvalue: myrinet - - value: '100' - newvalue: voiceEM - - value: '101' - newvalue: voiceFXO - - value: '102' - newvalue: voiceFXS - - value: '103' - newvalue: voiceEncap - - value: '104' - newvalue: voiceOverIp - - value: '105' - newvalue: atmDxi - - value: '106' - newvalue: atmFuni - - value: '107' - newvalue: atmIma - - value: '108' - newvalue: pppMultilinkBundle - - value: '109' - newvalue: ipOverCdlc - - value: '110' - newvalue: ipOverClaw - - value: '111' - newvalue: stackToStack - - value: '112' - newvalue: virtualIpAddress - - value: '113' - newvalue: mpc - - value: '114' - newvalue: ipOverAtm - - value: '115' - newvalue: iso88025Fiber - - value: '116' - newvalue: tdlc - - value: '117' - newvalue: gigabitEthernet - - value: '118' - newvalue: hdlc - - value: '119' - newvalue: lapf - - value: '120' - newvalue: v37 - - value: '121' - newvalue: x25mlp - - value: '122' - newvalue: x25huntGroup - - value: '123' - newvalue: trasnpHdlc - - value: '124' - newvalue: interleave - - value: '125' - newvalue: fast - - value: '126' - newvalue: ip - - value: '127' - newvalue: docsCableMaclayer - - value: '128' - newvalue: docsCableDownstream - - value: '129' - newvalue: docsCableUpstream - - value: '130' - newvalue: a12MppSwitch - - value: '131' - newvalue: tunnel - - value: '132' - newvalue: coffee - - value: '133' - newvalue: ces - - value: '134' - newvalue: atmSubInterface - - value: '135' - newvalue: l2vlan - - value: '136' - newvalue: l3ipvlan - - value: '137' - newvalue: l3ipxvlan - - value: '138' - newvalue: digitalPowerline - - value: '139' - newvalue: mediaMailOverIp - - value: '140' - newvalue: dtm - - value: '141' - newvalue: dcn - - value: '142' - newvalue: ipForward - - value: '143' - newvalue: msdsl - - value: '144' - newvalue: ieee1394 - - value: '145' - newvalue: if-gsn - - value: '146' - newvalue: dvbRccMacLayer - - value: '147' - newvalue: dvbRccDownstream - - value: '148' - newvalue: dvbRccUpstream - - value: '149' - newvalue: atmVirtual - - value: '150' - newvalue: mplsTunnel - - value: '151' - newvalue: srp - - value: '152' - newvalue: voiceOverAtm - - value: '153' - newvalue: voiceOverFrameRelay - - value: '154' - newvalue: idsl - - value: '155' - newvalue: compositeLink - - value: '156' - newvalue: ss7SigLink - - value: '157' - newvalue: propWirelessP2P - - value: '158' - newvalue: frForward - - value: '159' - newvalue: rfc1483 - - value: '160' - newvalue: usb - - value: '161' - newvalue: ieee8023adLag - - value: '162' - newvalue: bgppolicyaccounting - - value: '163' - newvalue: frf16MfrBundle - - value: '164' - newvalue: h323Gatekeeper - - value: '165' - newvalue: h323Proxy - - value: '166' - newvalue: mpls - - value: '167' - newvalue: mfSigLink - - value: '168' - newvalue: hdsl2 - - value: '169' - newvalue: shdsl - - value: '170' - newvalue: ds1FDL - - value: '171' - newvalue: pos - - value: '172' - newvalue: dvbAsiIn - - value: '173' - newvalue: dvbAsiOut - - value: '174' - newvalue: plc - - value: '175' - newvalue: nfas - - value: '176' - newvalue: tr008 - - value: '177' - newvalue: gr303RDT - - value: '178' - newvalue: gr303IDT - - value: '179' - newvalue: isup - - value: '180' - newvalue: propDocsWirelessMaclayer - - value: '181' - newvalue: propDocsWirelessDownstream - - value: '182' - newvalue: propDocsWirelessUpstream - - value: '183' - newvalue: hiperlan2 - - value: '184' - newvalue: propBWAp2Mp - - value: '185' - newvalue: sonetOverheadChannel - - value: '186' - newvalue: digitalWrapperOverheadChannel - - value: '187' - newvalue: aal2 - - value: '188' - newvalue: radioMAC - - value: '189' - newvalue: atmRadio - - value: '190' - newvalue: imt - - value: '191' - newvalue: mvl - - value: '192' - newvalue: reachDSL - - value: '193' - newvalue: frDlciEndPt - - value: '194' - newvalue: atmVciEndPt diff --git a/templates/huawei/Template_Huawei-Resources-NetEngine-SNMPv2.yaml b/templates/huawei/Template_Huawei-Resources-NetEngine-SNMPv2.yaml deleted file mode 100644 index 61b7daf..0000000 --- a/templates/huawei/Template_Huawei-Resources-NetEngine-SNMPv2.yaml +++ /dev/null @@ -1,258 +0,0 @@ -zabbix_export: - version: '7.0' - template_groups: - - uuid: 36bff6c29af64692839d077febfc7079 - name: 'Templates/Network devices' - - uuid: b01bb96a1ed547e1a8770677a646aa3c - name: 'Templates IPv0' - templates: - - uuid: d4b4f36537ee4a51a55a114c2fd325bd - template: 'Template Huawei Resources NetEngine SNMPv2 - by IPv0' - name: 'Template Huawei Resources NetEngine SNMPv2 - by IPv0' - vendor: - name: IPv0 - version: 7.0-1 - groups: - - name: 'Templates/Network devices' - - name: 'Templates IPv0' - items: - - uuid: 36af8ceb5cc74476b8de9a84b77877ee - name: 'Memory total' - type: SNMP_AGENT - snmp_oid: 1.3.6.1.4.1.2011.5.25.255.1.2.1.4.0.1.51 - key: hwMemoryTotalSize - delay: 1d - history: 7d - trends: '0' - units: B - preprocessing: - - type: MULTIPLIER - parameters: - - '1024' - tags: - - tag: component - value: memory - - uuid: 8eadf5ec3bd643f6aa5e2d3ae5a6bbc9 - name: 'Memory utilization' - type: SNMP_AGENT - snmp_oid: 1.3.6.1.4.1.2011.5.25.255.1.2.1.3.0.1.51 - key: hwMemoryUsedSize - delay: '160' - history: 7d - units: B - preprocessing: - - type: MULTIPLIER - parameters: - - '1024' - tags: - - tag: component - value: memory - discovery_rules: - - uuid: a026aee9cdbd46d2bea3ad51408b3592 - name: CPU - type: SNMP_AGENT - snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.2011.6.3.4.1.3]' - key: hwCpuDevIndex - delay: 1h - lifetime: 1d - enabled_lifetime_type: DISABLE_NEVER - item_prototypes: - - uuid: 38f6158976474bc6bc312ab9bc1d438e - name: 'CPU Utilization (average 1 min)' - type: SNMP_AGENT - snmp_oid: '1.3.6.1.4.1.2011.6.3.4.1.3.{#SNMPINDEX}' - key: 'huaweihwAvgDuty1min[{#SNMPINDEX}]' - history: 7d - trends: 60d - units: '%' - tags: - - tag: component - value: cpu - - uuid: f6a524e990734db9bbd6c04f50f21545 - name: 'CPU Utilization (average 5 min)' - type: SNMP_AGENT - snmp_oid: '1.3.6.1.4.1.2011.6.3.4.1.4.{#SNMPINDEX}' - key: 'huaweihwAvgDuty5min[{#SNMPINDEX}]' - delay: 5m - history: 7d - trends: 60d - units: '%' - tags: - - tag: component - value: cpu - trigger_prototypes: - - uuid: a90c2aa8f89d42c9b9a5bad9e456736c - expression: 'last(/Template Huawei Resources NetEngine SNMPv2 - by IPv0/huaweihwAvgDuty5min[{#SNMPINDEX}])>80' - name: 'CPU em {HOST.NAME} sobrecarregada' - priority: HIGH - manual_close: 'YES' - - uuid: b900c739bd8145868aa049d026b61fba - name: 'CPU Utilization' - type: SNMP_AGENT - snmp_oid: '1.3.6.1.4.1.2011.6.3.4.1.2.{#SNMPINDEX}' - key: 'huaweihwCpuDevDuty[{#SNMPINDEX}]' - history: 7d - trends: 60d - units: '%' - tags: - - tag: component - value: cpu - graph_prototypes: - - uuid: 63bc1ec9a68248e1b13fdab515ff9813 - name: 'CPU slot {#SNMPINDEX}' - ymin_type_1: FIXED - graph_items: - - sortorder: '1' - color: 00C800 - item: - host: 'Template Huawei Resources NetEngine SNMPv2 - by IPv0' - key: 'huaweihwCpuDevDuty[{#SNMPINDEX}]' - - sortorder: '2' - color: 0000C8 - item: - host: 'Template Huawei Resources NetEngine SNMPv2 - by IPv0' - key: 'huaweihwAvgDuty1min[{#SNMPINDEX}]' - - sortorder: '3' - color: C80000 - item: - host: 'Template Huawei Resources NetEngine SNMPv2 - by IPv0' - key: 'huaweihwAvgDuty5min[{#SNMPINDEX}]' - - uuid: b244eb5363fd40469152a3933b37bf6a - name: FAN - type: SNMP_AGENT - snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.2011.5.25.31.1.1.10.1.1]' - key: hwEntityFan - delay: 1d - enabled_lifetime_type: DISABLE_NEVER - item_prototypes: - - uuid: 9c446d62e3d24f149087ae53d8224f8e - name: 'Fan {#SNMPVALUE} Speed' - type: SNMP_AGENT - snmp_oid: '1.3.6.1.4.1.2011.5.25.31.1.1.10.1.5.{#SNMPINDEX}' - key: 'hwEntityFanSpeed[{#SNMPINDEX}]' - delay: 3m - trends: '0' - units: '%' - description: 'MIB: HUAWEI-ENTITY-EXTENT-MIB' - tags: - - tag: component - value: fan - - uuid: a88bc8038c7e47d18b20908f00d4fe8a - name: 'Fan {#SNMPVALUE} Status' - type: SNMP_AGENT - snmp_oid: '1.3.6.1.4.1.2011.5.25.31.1.1.10.1.7.{#SNMPINDEX}' - key: 'hwEntityFanState[{#SNMPINDEX}]' - delay: 3m - trends: '0' - description: 'MIB: HUAWEI-ENTITY-EXTENT-MIB' - valuemap: - name: hwEntityFanState - tags: - - tag: component - value: fan - - uuid: c8f65f9e1c4642f0b004ceb0c908ee40 - name: PSU - type: SNMP_AGENT - snmp_oid: 'discovery[{#PSU_SLOT},1.3.6.1.4.1.2011.5.25.31.1.1.18.1.1]' - key: hwEntityPwrSlot - delay: 1d - enabled_lifetime_type: DISABLE_NEVER - item_prototypes: - - uuid: 7c88bf4914c4438e93669a6f66ee4592 - name: 'PSU Slot {#SNMPINDEX} Corrente' - type: SNMP_AGENT - snmp_oid: '1.3.6.1.4.1.2011.5.25.31.1.1.18.1.7.{#SNMPINDEX}.0' - key: 'hwEntityPwrCurrent[slot{#SNMPINDEX}]' - delay: 3m - units: A - preprocessing: - - type: MULTIPLIER - parameters: - - '0.001' - tags: - - tag: component - value: psu - - uuid: d494fab4536b439ba8c577bd5dd9e280 - name: 'PSU Slot {#SNMPINDEX} Power' - type: SNMP_AGENT - snmp_oid: '1.3.6.1.4.1.2011.5.25.31.1.1.18.1.5.{#SNMPINDEX}.0' - key: 'hwEntityPwrPresent[slot{#SNMPINDEX}]' - delay: 3m - description: 'Este objeto indica estado da fonte.' - valuemap: - name: EntityPwrPresent - tags: - - tag: component - value: psu - trigger_prototypes: - - uuid: 6443ea3e5e27493a8bd3151841e35838 - expression: 'last(/Template Huawei Resources NetEngine SNMPv2 - by IPv0/hwEntityPwrPresent[slot{#SNMPINDEX}])=0' - recovery_mode: RECOVERY_EXPRESSION - recovery_expression: 'last(/Template Huawei Resources NetEngine SNMPv2 - by IPv0/hwEntityPwrPresent[slot{#SNMPINDEX}])=1' - name: 'Falha de Energia na PSU Slot {#SNMPINDEX}' - priority: HIGH - manual_close: 'YES' - - uuid: 584047ff16b84c55a87445b5b270dea5 - name: 'PSU Slot {#SNMPINDEX} Status' - type: SNMP_AGENT - snmp_oid: '1.3.6.1.4.1.2011.5.25.31.1.1.18.1.6.{#SNMPINDEX}.0' - key: 'hwEntityPwrState[slot{#SNMPINDEX}]' - delay: 3m - value_type: FLOAT - description: 'Este objeto indica estado da fonte.' - valuemap: - name: hwEntityPwrState - tags: - - tag: component - value: psu - - uuid: 1c47033e9ccc406c8ad08a77a95cb263 - name: 'PSU Slot {#SNMPINDEX} Voltagem' - type: SNMP_AGENT - snmp_oid: '1.3.6.1.4.1.2011.5.25.31.1.1.18.1.8.{#SNMPINDEX}.0' - key: 'hwEntityPwrVoltage[slot{#SNMPINDEX}]' - delay: 3m - value_type: FLOAT - units: V - description: 'Este objeto indica a voltagem da energia. Unidade: mV' - preprocessing: - - type: MULTIPLIER - parameters: - - '0.001' - tags: - - tag: component - value: psu - preprocessing: - - type: STR_REPLACE - parameters: - - '.0' - - '' - tags: - - tag: ipv0 - - tag: target - value: huawei - valuemaps: - - uuid: 50e8d45c9c44497fa9d6a4f76472a106 - name: EntityPwrPresent - mappings: - - value: '1' - newvalue: present - - value: '2' - newvalue: ausent - - uuid: 4e2ad30de21e401784d77671008e6feb - name: hwEntityFanState - mappings: - - value: '1' - newvalue: normal - - value: '2' - newvalue: abnormal - - uuid: cf65fe172a8944d9af0f97f0e3fd57c8 - name: hwEntityPwrState - mappings: - - value: '1' - newvalue: supply - - value: '2' - newvalue: notSupply - - value: '3' - newvalue: sleep - - value: '4' - newvalue: unknown diff --git a/templates/huawei/Template_Huawei-Resources-VirtualSystem-SNMPv2.yaml b/templates/huawei/Template_Huawei-Resources-VirtualSystem-SNMPv2.yaml deleted file mode 100644 index 4902333..0000000 --- a/templates/huawei/Template_Huawei-Resources-VirtualSystem-SNMPv2.yaml +++ /dev/null @@ -1,73 +0,0 @@ -zabbix_export: - version: '7.0' - template_groups: - - uuid: 36bff6c29af64692839d077febfc7079 - name: 'Templates/Network devices' - - uuid: b01bb96a1ed547e1a8770677a646aa3c - name: 'Templates IPv0' - templates: - - uuid: 9474486c7ae1458e84953276cd6e063b - template: 'Template Huawei Resources VirtualSystem SNMPv2 - by IPv0' - name: 'Template Huawei Resources VirtualSystem SNMPv2 - by IPv0' - description: 'Template para Virutal System Huawei.' - vendor: - name: IPv0 - version: 7.0-1 - groups: - - name: 'Templates/Network devices' - - name: 'Templates IPv0' - discovery_rules: - - uuid: 79b1e05d39d042d99075a3e87a9447b5 - name: 'VS Discovery' - type: SNMP_AGENT - snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.2011.5.25.255.1.1.1.1]' - key: vs.discovery - delay: 1h - lifetime: 1d - enabled_lifetime_type: DISABLE_NEVER - item_prototypes: - - uuid: 6c70b7d8e6b74174beef0061854187d2 - name: 'CPU Utilization' - type: SNMP_AGENT - snmp_oid: '1.3.6.1.4.1.2011.5.25.255.1.2.1.2.{#SNMPINDEX}.1.51' - key: 'hwVSCPUUsage[{#SNMPINDEX}]' - history: 7d - units: '%' - tags: - - tag: component - value: cpu - - uuid: 607b99fcd96d4c66b53def43c3636e8f - name: 'Memory total' - type: SNMP_AGENT - snmp_oid: '1.3.6.1.4.1.2011.5.25.255.1.2.1.4.{#SNMPINDEX}.1.51' - key: 'hwVSMemoryTotalSize[{#SNMPINDEX}]' - delay: 1d - history: 7d - trends: '0' - units: B - preprocessing: - - type: MULTIPLIER - parameters: - - '1024' - tags: - - tag: component - value: memory - - uuid: 46349f7c64264b1cab850cfbc0761cfe - name: 'Memory utilization' - type: SNMP_AGENT - snmp_oid: '1.3.6.1.4.1.2011.5.25.255.1.2.1.3.{#SNMPINDEX}.1.51' - key: 'hwVSMemoryUsedSize[{#SNMPINDEX}]' - delay: '160' - history: 7d - units: B - preprocessing: - - type: MULTIPLIER - parameters: - - '1024' - tags: - - tag: component - value: memory - tags: - - tag: ipv0 - - tag: target - value: huawei diff --git a/templates/huawei/Template_Huawei-S5700_S6700-SNMP.yaml b/templates/huawei/Template_Huawei-S5700_S6700-SNMP.yaml deleted file mode 100644 index 1024e4a..0000000 --- a/templates/huawei/Template_Huawei-S5700_S6700-SNMP.yaml +++ /dev/null @@ -1,74 +0,0 @@ -zabbix_export: - version: '7.0' - template_groups: - - uuid: 36bff6c29af64692839d077febfc7079 - name: 'Templates/Network devices' - - uuid: b01bb96a1ed547e1a8770677a646aa3c - name: 'Templates IPv0' - templates: - - uuid: c6fa87a5f124447d9b374bd19ba59619 - template: 'Template Huawei S5700-S6700 SNMP - by IPv0' - name: 'Template Huawei S5700-S6700 SNMP - by IPv0' - vendor: - name: IPv0 - version: 7.0-1 - groups: - - name: 'Templates/Network devices' - - name: 'Templates IPv0' - discovery_rules: - - uuid: 6258ddd3cead4b17ab63f0d6afb2ec05 - name: 'MPU Discovery' - type: SNMP_AGENT - snmp_oid: 'discovery[{#ENT_NAME},1.3.6.1.2.1.47.1.1.1.1.7]' - key: mpu.discovery - delay: 1h - filter: - conditions: - - macro: '{#ENT_NAME}' - value: 'MPU.*' - formulaid: A - enabled_lifetime_type: DISABLE_NEVER - item_prototypes: - - uuid: a4504a04e88b475596e5c83c76a229d9 - name: '{#ENT_NAME}: CPU utilization' - type: SNMP_AGENT - snmp_oid: '1.3.6.1.4.1.2011.5.25.31.1.1.1.1.5.{#SNMPINDEX}' - key: 'hwEntityCpuUsage[{#SNMPINDEX}]' - history: 7d - units: '%' - tags: - - tag: component - value: cpu - - uuid: fc2f623b89b94675887702d1c94e8920 - name: '{#ENT_NAME}: Memory utilization' - type: SNMP_AGENT - snmp_oid: '1.3.6.1.4.1.2011.5.25.31.1.1.1.1.7.{#SNMPINDEX}' - key: 'hwEntityMemUsage.[{#SNMPINDEX}]' - history: 7d - units: '%' - tags: - - tag: component - value: memory - - uuid: 16a793c27cc34a7b99fa394c7f47bdd1 - name: '{#ENT_NAME}: Temperature' - type: SNMP_AGENT - snmp_oid: '1.3.6.1.4.1.2011.5.25.31.1.1.1.1.11.{#SNMPINDEX}' - key: 'hwEntityTemperature[{#SNMPINDEX}]' - delay: 3m - history: 7d - units: °C - description: | - MIB: HUAWEI-ENTITY-EXTENT-MIB - The temperature for the {#SNMPVALUE}. - tags: - - tag: component - value: temperature - preprocessing: - - type: STR_REPLACE - parameters: - - Board - - '' - tags: - - tag: ipv0 - - tag: target - value: huawei diff --git a/templates/huawei/Template_Huawei-VRP-SNMP.yaml b/templates/huawei/Template_Huawei-VRP-SNMP.yaml deleted file mode 100644 index fddb3c4..0000000 --- a/templates/huawei/Template_Huawei-VRP-SNMP.yaml +++ /dev/null @@ -1,1068 +0,0 @@ -zabbix_export: - version: '7.0' - template_groups: - - uuid: 36bff6c29af64692839d077febfc7079 - name: 'Templates/Network devices' - - uuid: b01bb96a1ed547e1a8770677a646aa3c - name: 'Templates IPv0' - templates: - - uuid: 8b42cf6f17774d2bb27fa57ed1426e93 - template: 'Template Huawei VRP SNMP Mod. - by IPv0' - name: 'Template Huawei VRP SNMP Mod. - by IPv0' - description: | - Template Net Huawei VRP Modding by IPv0 - - MIBs used: - EtherLike-MIB - HUAWEI-ENTITY-EXTENT-MIB - HOST-RESOURCES-MIB - SNMPv2-MIB - ENTITY-MIB - IF-MIB - vendor: - name: IPv0 - version: 7.0-1 - groups: - - name: 'Templates/Network devices' - - name: 'Templates IPv0' - items: - - uuid: 3163a410774148d291203a411fb5b1d1 - name: 'ICMP ping' - type: SIMPLE - key: icmpping - valuemap: - name: 'Service state' - tags: - - tag: component - value: health - - tag: component - value: network - triggers: - - uuid: 278300fcdffc4ac0b7753d4896e110f2 - expression: 'max(/Template Huawei VRP SNMP Mod. - by IPv0/icmpping,#3)=0' - name: 'Unavailable by ICMP ping' - priority: HIGH - description: 'Last three attempts returned timeout. Please check device connectivity.' - tags: - - tag: scope - value: availability - - uuid: 6bcbad05dbe34d159c0dfd5a54c68a13 - name: 'ICMP loss' - type: SIMPLE - key: icmppingloss - value_type: FLOAT - units: '%' - tags: - - tag: component - value: health - - tag: component - value: network - triggers: - - uuid: aae2fd5007ee411ba29f735641f88ad6 - expression: 'min(/Template Huawei VRP SNMP Mod. - by IPv0/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Template Huawei VRP SNMP Mod. - by IPv0/icmppingloss,5m)<100' - name: 'High ICMP ping loss' - opdata: 'Loss: {ITEM.LASTVALUE1}' - priority: WARNING - dependencies: - - name: 'Unavailable by ICMP ping' - expression: 'max(/Template Huawei VRP SNMP Mod. - by IPv0/icmpping,#3)=0' - tags: - - tag: scope - value: availability - - tag: scope - value: performance - - uuid: 222c2467178b4dc78ca25b3ed63d0854 - name: 'ICMP response time' - type: SIMPLE - key: icmppingsec - value_type: FLOAT - units: s - tags: - - tag: component - value: health - - tag: component - value: network - triggers: - - uuid: aaf1405734cb43b2a14867a8f371e765 - expression: 'avg(/Template Huawei VRP SNMP Mod. - by IPv0/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}' - name: 'High ICMP ping response time' - opdata: 'Value: {ITEM.LASTVALUE1}' - priority: WARNING - description: 'Average ICMP response time is too high.' - dependencies: - - name: 'High ICMP ping loss' - expression: 'min(/Template Huawei VRP SNMP Mod. - by IPv0/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Template Huawei VRP SNMP Mod. - by IPv0/icmppingloss,5m)<100' - - name: 'Unavailable by ICMP ping' - expression: 'max(/Template Huawei VRP SNMP Mod. - by IPv0/icmpping,#3)=0' - tags: - - tag: scope - value: availability - - tag: scope - value: performance - - uuid: 8e8a479136e843af8396d1f646492404 - name: 'SNMP traps (fallback)' - type: SNMP_TRAP - key: snmptrap.fallback - delay: '0' - value_type: LOG - trends: '0' - description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items' - logtimefmt: 'hh:mm:sszyyyy/MM/dd' - tags: - - tag: component - value: network - - uuid: 1d715fbd73e249ff8e1ad3d507daab92 - name: 'System contact details' - type: SNMP_AGENT - snmp_oid: 1.3.6.1.2.1.1.4.0 - key: 'system.contact[sysContact.0]' - delay: 15m - value_type: CHAR - trends: '0' - description: | - MIB: SNMPv2-MIB - The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string. - inventory_link: CONTACT - preprocessing: - - type: DISCARD_UNCHANGED_HEARTBEAT - parameters: - - 12h - tags: - - tag: component - value: system - - uuid: f0232856363b48dda0f9e0778434851f - name: 'System description' - type: SNMP_AGENT - snmp_oid: 1.3.6.1.2.1.1.1.0 - key: 'system.descr[sysDescr.0]' - delay: 15m - value_type: CHAR - trends: '0' - description: | - MIB: SNMPv2-MIB - A textual description of the entity. This value should - include the full name and version identification of the system's hardware type, software operating-system, and - networking software. - preprocessing: - - type: DISCARD_UNCHANGED_HEARTBEAT - parameters: - - 12h - tags: - - tag: component - value: system - - uuid: 0209e2f3c69e4419a5f0eb2b5572a462 - name: 'Uptime (hardware)' - type: SNMP_AGENT - snmp_oid: 1.3.6.1.2.1.25.1.1.0 - key: 'system.hw.uptime[hrSystemUptime.0]' - delay: 30s - trends: '0' - units: uptime - description: | - MIB: HOST-RESOURCES-MIB - The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system. - preprocessing: - - type: CHECK_NOT_SUPPORTED - parameters: - - '-1' - error_handler: CUSTOM_VALUE - error_handler_params: '0' - - type: MULTIPLIER - parameters: - - '0.01' - tags: - - tag: component - value: system - - uuid: 959d4a74c46f4c078f72afade7248257 - name: 'System location' - type: SNMP_AGENT - snmp_oid: 1.3.6.1.2.1.1.6.0 - key: 'system.location[sysLocation.0]' - delay: 15m - value_type: CHAR - trends: '0' - description: | - MIB: SNMPv2-MIB - Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string. - inventory_link: LOCATION - preprocessing: - - type: DISCARD_UNCHANGED_HEARTBEAT - parameters: - - 12h - tags: - - tag: component - value: system - - uuid: bf488d5a18364b3b85c77657d0c453e0 - name: 'System name' - type: SNMP_AGENT - snmp_oid: 1.3.6.1.2.1.1.5.0 - key: system.name - delay: 15m - value_type: CHAR - trends: '0' - description: | - MIB: SNMPv2-MIB - An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string. - inventory_link: NAME - preprocessing: - - type: DISCARD_UNCHANGED_HEARTBEAT - parameters: - - 12h - tags: - - tag: component - value: system - triggers: - - uuid: a78b8535de9744d8a56937b95a19751b - expression: 'last(/Template Huawei VRP SNMP Mod. - by IPv0/system.name,#1)<>last(/Template Huawei VRP SNMP Mod. - by IPv0/system.name,#2) and length(last(/Template Huawei VRP SNMP Mod. - by IPv0/system.name))>0' - name: 'System name has changed' - event_name: 'System name has changed (new name: {ITEM.VALUE})' - priority: INFO - description: 'The name of the system has changed. Acknowledge to close the problem manually.' - manual_close: 'YES' - tags: - - tag: scope - value: notice - - tag: scope - value: security - - uuid: 3e2b55deda1640b28ea91bc59b15a6ed - name: 'Uptime (network)' - type: SNMP_AGENT - snmp_oid: 1.3.6.1.2.1.1.3.0 - key: 'system.net.uptime[sysUpTime.0]' - delay: 30s - trends: '0' - units: uptime - description: | - MIB: SNMPv2-MIB - Time (in hundredths of a second) since the network management portion of the system was last re-initialized. - preprocessing: - - type: MULTIPLIER - parameters: - - '0.01' - tags: - - tag: component - value: system - - uuid: 98a5e0961dee4ac4a450938a71051aaf - name: 'System object ID' - type: SNMP_AGENT - snmp_oid: 1.3.6.1.2.1.1.2.0 - key: 'system.objectid[sysObjectID.0]' - delay: 15m - value_type: CHAR - trends: '0' - description: | - MIB: SNMPv2-MIB - The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'. - preprocessing: - - type: DISCARD_UNCHANGED_HEARTBEAT - parameters: - - 12h - tags: - - tag: component - value: system - - uuid: 79e6d6e431784a8b85e168629b048141 - name: 'SNMP agent availability' - type: INTERNAL - key: 'zabbix[host,snmp,available]' - description: | - Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list. - Possible values: - 0 - not available - 1 - available - 2 - unknown - valuemap: - name: zabbix.host.available - tags: - - tag: component - value: health - - tag: component - value: network - triggers: - - uuid: 42f884771dc849fe847a25421b1fecc2 - expression: 'max(/Template Huawei VRP SNMP Mod. - by IPv0/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' - name: 'No SNMP data collection' - opdata: 'Current state: {ITEM.LASTVALUE1}' - priority: WARNING - description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.' - dependencies: - - name: 'Unavailable by ICMP ping' - expression: 'max(/Template Huawei VRP SNMP Mod. - by IPv0/icmpping,#3)=0' - tags: - - tag: scope - value: availability - discovery_rules: - - uuid: c5026208b73142b7be1a02514c0d5c0c - name: 'FAN Discovery' - type: SNMP_AGENT - snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.2011.5.25.31.1.1.10.1.1]' - key: discovery.fans - delay: 1h - status: DISABLED - item_prototypes: - - uuid: bd05e33039cc446bb24b7f83408b9bac - name: '#{#SNMPVALUE}: Fan status' - type: SNMP_AGENT - snmp_oid: '1.3.6.1.4.1.2011.5.25.31.1.1.10.1.7.{#SNMPINDEX}' - key: 'sensor.fan.status[hwEntityFanState.{#SNMPINDEX}]' - delay: 3m - trends: '0' - description: 'MIB: HUAWEI-ENTITY-EXTENT-MIB' - valuemap: - name: 'HUAWEI-ENTITY-EXTENT-MIB::hwEntityFanState' - tags: - - tag: component - value: fan - trigger_prototypes: - - uuid: 6c770c41c0e34dffa53a41f5c68796f4 - expression: 'count(/Template Huawei VRP SNMP Mod. - by IPv0/sensor.fan.status[hwEntityFanState.{#SNMPINDEX}],#1,"eq","{$FAN_CRIT_STATUS}")=1' - name: '#{#SNMPVALUE}: Fan is in critical state' - opdata: 'Current state: {ITEM.LASTVALUE1}' - priority: AVERAGE - description: 'Please check the fan unit' - tags: - - tag: scope - value: availability - - tag: scope - value: performance - - uuid: 771015e3d9244857b417106f3cebbac7 - name: 'Entity Discovery' - type: SNMP_AGENT - snmp_oid: 'discovery[{#ENT_CLASS},1.3.6.1.2.1.47.1.1.1.1.5,{#ENT_NAME},1.3.6.1.2.1.47.1.1.1.1.7]' - key: entity.discovery - delay: 1h - filter: - conditions: - - macro: '{#ENT_CLASS}' - value: '3' - formulaid: A - item_prototypes: - - uuid: 33bd42968c4745a683a05be17c8fc433 - name: '{#ENT_NAME}: Hardware model name' - type: SNMP_AGENT - snmp_oid: '1.3.6.1.2.1.47.1.1.1.1.2.{#SNMPINDEX}' - key: 'system.hw.model[entPhysicalDescr.{#SNMPINDEX}]' - delay: 1h - value_type: CHAR - trends: '0' - description: 'MIB: ENTITY-MIB' - preprocessing: - - type: DISCARD_UNCHANGED_HEARTBEAT - parameters: - - 1d - tags: - - tag: component - value: system - tags: - - tag: ipv0 - - tag: target - value: huawei - - tag: target - value: huawei-vrp - macros: - - macro: '{$CPU.UTIL.CRIT}' - value: '90' - - macro: '{$FAN_CRIT_STATUS}' - value: '2' - - macro: '{$ICMP_LOSS_WARN}' - value: '20' - description: 'Warning threshold of ICMP packet loss in %.' - - macro: '{$ICMP_RESPONSE_TIME_WARN}' - value: '0.15' - description: 'Warning threshold of the average ICMP response time in seconds.' - - macro: '{$IF.ERRORS.WARN}' - value: '2' - description: 'Warning threshold of error packet rate. Can be used with interface name as context.' - - macro: '{$IF.UTIL.MAX}' - value: '90' - - macro: '{$IFCONTROL}' - value: '1' - - macro: '{$MEMORY.UTIL.MAX}' - value: '90' - - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}' - value: '^.*' - - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}' - value: ^2$ - description: 'Ignore down(2) administrative status' - - macro: '{$NET.IF.IFALIAS.MATCHES}' - value: '.*' - - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}' - value: CHANGE_IF_NEEDED - - macro: '{$NET.IF.IFDESCR.MATCHES}' - value: '.*' - - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}' - value: CHANGE_IF_NEEDED - - macro: '{$NET.IF.IFNAME.MATCHES}' - value: '^.*$' - - macro: '{$NET.IF.IFNAME.NOT_MATCHES}' - value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})' - description: 'Filter out loopbacks, nulls, docker veth links and docker0 bridge by default' - - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}' - value: '^.*$' - - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}' - value: ^6$ - description: 'Ignore notPresent(6)' - - macro: '{$NET.IF.IFTYPE.MATCHES}' - value: '.*' - - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}' - value: CHANGE_IF_NEEDED - - macro: '{$SNMP.TIMEOUT}' - value: 5m - description: 'Time interval for the SNMP availability trigger.' - - macro: '{$TEMP_CRIT}' - value: '60' - - macro: '{$TEMP_CRIT_LOW}' - value: '5' - - macro: '{$TEMP_WARN}' - value: '50' - dashboards: - - uuid: ccc5b78f14fa4e19a174cb4b91bb1e97 - name: 'Network interfaces' - pages: - - widgets: - - type: graphprototype - width: '72' - height: '5' - fields: - - type: INTEGER - name: columns - value: '1' - - type: STRING - name: reference - value: AAAAA - valuemaps: - - uuid: 8f7f4286a3db47e78e6a632ac08fedc3 - name: 'EtherLike-MIB::dot3StatsDuplexStatus' - mappings: - - value: '1' - newvalue: unknown - - value: '2' - newvalue: halfDuplex - - value: '3' - newvalue: fullDuplex - - uuid: 19ca1af0ec4c4a499271299cdf7d8fa5 - name: 'HUAWEI-ENTITY-EXTENT-MIB::hwEntityFanState' - mappings: - - value: '1' - newvalue: normal - - value: '2' - newvalue: abnormal - - uuid: 890b65b065a8440f8defdf57d9d117e2 - name: 'IF-MIB::ifOperStatus' - mappings: - - value: '1' - newvalue: up - - value: '2' - newvalue: down - - value: '4' - newvalue: unknown - - value: '5' - newvalue: dormant - - value: '6' - newvalue: notPresent - - value: '7' - newvalue: lowerLayerDown - - uuid: e20f3a057d7b487bb170d014e47abd81 - name: 'IF-MIB::ifType' - mappings: - - value: '1' - newvalue: other - - value: '2' - newvalue: regular1822 - - value: '3' - newvalue: hdh1822 - - value: '4' - newvalue: ddnX25 - - value: '5' - newvalue: rfc877x25 - - value: '6' - newvalue: ethernetCsmacd - - value: '7' - newvalue: iso88023Csmacd - - value: '8' - newvalue: iso88024TokenBus - - value: '9' - newvalue: iso88025TokenRing - - value: '10' - newvalue: iso88026Man - - value: '11' - newvalue: starLan - - value: '12' - newvalue: proteon10Mbit - - value: '13' - newvalue: proteon80Mbit - - value: '14' - newvalue: hyperchannel - - value: '15' - newvalue: fddi - - value: '16' - newvalue: lapb - - value: '17' - newvalue: sdlc - - value: '18' - newvalue: ds1 - - value: '19' - newvalue: e1 - - value: '20' - newvalue: basicISDN - - value: '21' - newvalue: primaryISDN - - value: '22' - newvalue: propPointToPointSerial - - value: '23' - newvalue: ppp - - value: '24' - newvalue: softwareLoopback - - value: '25' - newvalue: eon - - value: '26' - newvalue: ethernet3Mbit - - value: '27' - newvalue: nsip - - value: '28' - newvalue: slip - - value: '29' - newvalue: ultra - - value: '30' - newvalue: ds3 - - value: '31' - newvalue: sip - - value: '32' - newvalue: frameRelay - - value: '33' - newvalue: rs232 - - value: '34' - newvalue: para - - value: '35' - newvalue: arcnet - - value: '36' - newvalue: arcnetPlus - - value: '37' - newvalue: atm - - value: '38' - newvalue: miox25 - - value: '39' - newvalue: sonet - - value: '40' - newvalue: x25ple - - value: '41' - newvalue: iso88022llc - - value: '42' - newvalue: localTalk - - value: '43' - newvalue: smdsDxi - - value: '44' - newvalue: frameRelayService - - value: '45' - newvalue: v35 - - value: '46' - newvalue: hssi - - value: '47' - newvalue: hippi - - value: '48' - newvalue: modem - - value: '49' - newvalue: aal5 - - value: '50' - newvalue: sonetPath - - value: '51' - newvalue: sonetVT - - value: '52' - newvalue: smdsIcip - - value: '53' - newvalue: propVirtual - - value: '54' - newvalue: propMultiplexor - - value: '55' - newvalue: ieee80212 - - value: '56' - newvalue: fibreChannel - - value: '57' - newvalue: hippiInterface - - value: '58' - newvalue: frameRelayInterconnect - - value: '59' - newvalue: aflane8023 - - value: '60' - newvalue: aflane8025 - - value: '61' - newvalue: cctEmul - - value: '62' - newvalue: fastEther - - value: '63' - newvalue: isdn - - value: '64' - newvalue: v11 - - value: '65' - newvalue: v36 - - value: '66' - newvalue: g703at64k - - value: '67' - newvalue: g703at2mb - - value: '68' - newvalue: qllc - - value: '69' - newvalue: fastEtherFX - - value: '70' - newvalue: channel - - value: '71' - newvalue: ieee80211 - - value: '72' - newvalue: ibm370parChan - - value: '73' - newvalue: escon - - value: '74' - newvalue: dlsw - - value: '75' - newvalue: isdns - - value: '76' - newvalue: isdnu - - value: '77' - newvalue: lapd - - value: '78' - newvalue: ipSwitch - - value: '79' - newvalue: rsrb - - value: '80' - newvalue: atmLogical - - value: '81' - newvalue: ds0 - - value: '82' - newvalue: ds0Bundle - - value: '83' - newvalue: bsc - - value: '84' - newvalue: async - - value: '85' - newvalue: cnr - - value: '86' - newvalue: iso88025Dtr - - value: '87' - newvalue: eplrs - - value: '88' - newvalue: arap - - value: '89' - newvalue: propCnls - - value: '90' - newvalue: hostPad - - value: '91' - newvalue: termPad - - value: '92' - newvalue: frameRelayMPI - - value: '93' - newvalue: x213 - - value: '94' - newvalue: adsl - - value: '95' - newvalue: radsl - - value: '96' - newvalue: sdsl - - value: '97' - newvalue: vdsl - - value: '98' - newvalue: iso88025CRFPInt - - value: '99' - newvalue: myrinet - - value: '100' - newvalue: voiceEM - - value: '101' - newvalue: voiceFXO - - value: '102' - newvalue: voiceFXS - - value: '103' - newvalue: voiceEncap - - value: '104' - newvalue: voiceOverIp - - value: '105' - newvalue: atmDxi - - value: '106' - newvalue: atmFuni - - value: '107' - newvalue: atmIma - - value: '108' - newvalue: pppMultilinkBundle - - value: '109' - newvalue: ipOverCdlc - - value: '110' - newvalue: ipOverClaw - - value: '111' - newvalue: stackToStack - - value: '112' - newvalue: virtualIpAddress - - value: '113' - newvalue: mpc - - value: '114' - newvalue: ipOverAtm - - value: '115' - newvalue: iso88025Fiber - - value: '116' - newvalue: tdlc - - value: '117' - newvalue: gigabitEthernet - - value: '118' - newvalue: hdlc - - value: '119' - newvalue: lapf - - value: '120' - newvalue: v37 - - value: '121' - newvalue: x25mlp - - value: '122' - newvalue: x25huntGroup - - value: '123' - newvalue: trasnpHdlc - - value: '124' - newvalue: interleave - - value: '125' - newvalue: fast - - value: '126' - newvalue: ip - - value: '127' - newvalue: docsCableMaclayer - - value: '128' - newvalue: docsCableDownstream - - value: '129' - newvalue: docsCableUpstream - - value: '130' - newvalue: a12MppSwitch - - value: '131' - newvalue: tunnel - - value: '132' - newvalue: coffee - - value: '133' - newvalue: ces - - value: '134' - newvalue: atmSubInterface - - value: '135' - newvalue: l2vlan - - value: '136' - newvalue: l3ipvlan - - value: '137' - newvalue: l3ipxvlan - - value: '138' - newvalue: digitalPowerline - - value: '139' - newvalue: mediaMailOverIp - - value: '140' - newvalue: dtm - - value: '141' - newvalue: dcn - - value: '142' - newvalue: ipForward - - value: '143' - newvalue: msdsl - - value: '144' - newvalue: ieee1394 - - value: '145' - newvalue: if-gsn - - value: '146' - newvalue: dvbRccMacLayer - - value: '147' - newvalue: dvbRccDownstream - - value: '148' - newvalue: dvbRccUpstream - - value: '149' - newvalue: atmVirtual - - value: '150' - newvalue: mplsTunnel - - value: '151' - newvalue: srp - - value: '152' - newvalue: voiceOverAtm - - value: '153' - newvalue: voiceOverFrameRelay - - value: '154' - newvalue: idsl - - value: '155' - newvalue: compositeLink - - value: '156' - newvalue: ss7SigLink - - value: '157' - newvalue: propWirelessP2P - - value: '158' - newvalue: frForward - - value: '159' - newvalue: rfc1483 - - value: '160' - newvalue: usb - - value: '161' - newvalue: ieee8023adLag - - value: '162' - newvalue: bgppolicyaccounting - - value: '163' - newvalue: frf16MfrBundle - - value: '164' - newvalue: h323Gatekeeper - - value: '165' - newvalue: h323Proxy - - value: '166' - newvalue: mpls - - value: '167' - newvalue: mfSigLink - - value: '168' - newvalue: hdsl2 - - value: '169' - newvalue: shdsl - - value: '170' - newvalue: ds1FDL - - value: '171' - newvalue: pos - - value: '172' - newvalue: dvbAsiIn - - value: '173' - newvalue: dvbAsiOut - - value: '174' - newvalue: plc - - value: '175' - newvalue: nfas - - value: '176' - newvalue: tr008 - - value: '177' - newvalue: gr303RDT - - value: '178' - newvalue: gr303IDT - - value: '179' - newvalue: isup - - value: '180' - newvalue: propDocsWirelessMaclayer - - value: '181' - newvalue: propDocsWirelessDownstream - - value: '182' - newvalue: propDocsWirelessUpstream - - value: '183' - newvalue: hiperlan2 - - value: '184' - newvalue: propBWAp2Mp - - value: '185' - newvalue: sonetOverheadChannel - - value: '186' - newvalue: digitalWrapperOverheadChannel - - value: '187' - newvalue: aal2 - - value: '188' - newvalue: radioMAC - - value: '189' - newvalue: atmRadio - - value: '190' - newvalue: imt - - value: '191' - newvalue: mvl - - value: '192' - newvalue: reachDSL - - value: '193' - newvalue: frDlciEndPt - - value: '194' - newvalue: atmVciEndPt - - value: '195' - newvalue: opticalChannel - - value: '196' - newvalue: opticalTransport - - value: '197' - newvalue: propAtm - - value: '198' - newvalue: voiceOverCable - - value: '199' - newvalue: infiniband - - value: '200' - newvalue: teLink - - value: '201' - newvalue: q2931 - - value: '202' - newvalue: virtualTg - - value: '203' - newvalue: sipTg - - value: '204' - newvalue: sipSig - - value: '205' - newvalue: docsCableUpstreamChannel - - value: '206' - newvalue: econet - - value: '207' - newvalue: pon155 - - value: '208' - newvalue: pon622 - - value: '209' - newvalue: bridge - - value: '210' - newvalue: linegroup - - value: '211' - newvalue: voiceEMFGD - - value: '212' - newvalue: voiceFGDEANA - - value: '213' - newvalue: voiceDID - - value: '214' - newvalue: mpegTransport - - value: '215' - newvalue: sixToFour - - value: '216' - newvalue: gtp - - value: '217' - newvalue: pdnEtherLoop1 - - value: '218' - newvalue: pdnEtherLoop2 - - value: '219' - newvalue: opticalChannelGroup - - value: '220' - newvalue: homepna - - value: '221' - newvalue: gfp - - value: '222' - newvalue: ciscoISLvlan - - value: '223' - newvalue: actelisMetaLOOP - - value: '224' - newvalue: fcipLink - - value: '225' - newvalue: rpr - - value: '226' - newvalue: qam - - value: '227' - newvalue: lmp - - value: '228' - newvalue: cblVectaStar - - value: '229' - newvalue: docsCableMCmtsDownstream - - value: '230' - newvalue: adsl2 - - value: '231' - newvalue: macSecControlledIF - - value: '232' - newvalue: macSecUncontrolledIF - - value: '233' - newvalue: aviciOpticalEther - - value: '234' - newvalue: atmbond - - value: '235' - newvalue: voiceFGDOS - - value: '236' - newvalue: mocaVersion1 - - value: '237' - newvalue: ieee80216WMAN - - value: '238' - newvalue: adsl2plus - - value: '239' - newvalue: dvbRcsMacLayer - - value: '240' - newvalue: dvbTdm - - value: '241' - newvalue: dvbRcsTdma - - value: '242' - newvalue: x86Laps - - value: '243' - newvalue: wwanPP - - value: '244' - newvalue: wwanPP2 - - value: '245' - newvalue: voiceEBS - - value: '246' - newvalue: ifPwType - - value: '247' - newvalue: ilan - - value: '248' - newvalue: pip - - value: '249' - newvalue: aluELP - - value: '250' - newvalue: gpon - - value: '251' - newvalue: vdsl2 - - value: '252' - newvalue: capwapDot11Profile - - value: '253' - newvalue: capwapDot11Bss - - value: '254' - newvalue: capwapWtpVirtualRadio - - value: '255' - newvalue: bits - - value: '256' - newvalue: docsCableUpstreamRfPort - - value: '257' - newvalue: cableDownstreamRfPort - - value: '258' - newvalue: vmwareVirtualNic - - value: '259' - newvalue: ieee802154 - - value: '260' - newvalue: otnOdu - - value: '261' - newvalue: otnOtu - - value: '262' - newvalue: ifVfiType - - value: '263' - newvalue: g9981 - - value: '264' - newvalue: g9982 - - value: '265' - newvalue: g9983 - - value: '266' - newvalue: aluEpon - - value: '267' - newvalue: aluEponOnu - - value: '268' - newvalue: aluEponPhysicalUni - - value: '269' - newvalue: aluEponLogicalLink - - value: '270' - newvalue: aluGponOnu - - value: '271' - newvalue: aluGponPhysicalUni - - value: '272' - newvalue: vmwareNicTeam - - value: '277' - newvalue: docsOfdmDownstream - - value: '278' - newvalue: docsOfdmaUpstream - - value: '279' - newvalue: gfast - - value: '280' - newvalue: sdci - - value: '281' - newvalue: xboxWireless - - value: '282' - newvalue: fastdsl - - value: '283' - newvalue: docsCableScte55d1FwdOob - - value: '284' - newvalue: docsCableScte55d1RetOob - - value: '285' - newvalue: docsCableScte55d2DsOob - - value: '286' - newvalue: docsCableScte55d2UsOob - - value: '287' - newvalue: docsCableNdf - - value: '288' - newvalue: docsCableNdr - - value: '289' - newvalue: ptm - - value: '290' - newvalue: ghn - - uuid: 8abe8ca1fb9047b2aec30f4b74cd43ad - name: 'Service state' - mappings: - - value: '0' - newvalue: Down - - value: '1' - newvalue: Up - - uuid: 17ff01e050f149c3aac5857e86f2ce10 - name: zabbix.host.available - mappings: - - value: '0' - newvalue: 'not available' - - value: '1' - newvalue: available - - value: '2' - newvalue: unknown - triggers: - - uuid: 5278f6c51c874761b77d74af4c4b410c - expression: '(last(/Template Huawei VRP SNMP Mod. - by IPv0/system.hw.uptime[hrSystemUptime.0])>0 and last(/Template Huawei VRP SNMP Mod. - by IPv0/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/Template Huawei VRP SNMP Mod. - by IPv0/system.hw.uptime[hrSystemUptime.0])=0 and last(/Template Huawei VRP SNMP Mod. - by IPv0/system.net.uptime[sysUpTime.0])<10m)' - name: 'Host has been restarted' - event_name: '{HOST.NAME} has been restarted (uptime < 10m)' - priority: WARNING - description: 'Uptime is less than 10 minutes.' - manual_close: 'YES' - dependencies: - - name: 'No SNMP data collection' - expression: 'max(/Template Huawei VRP SNMP Mod. - by IPv0/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0' - tags: - - tag: scope - value: notice diff --git a/templates/proxmox-prometheus-pve-exporter/README.md b/templates/proxmox-prometheus-pve-exporter/README.md deleted file mode 100644 index 36cc2ff..0000000 --- a/templates/proxmox-prometheus-pve-exporter/README.md +++ /dev/null @@ -1,97 +0,0 @@ -# Proxmox VE Exporter - -## Instale o Prometheus -cd /tmp && wget -4 -qO- https://git.ipv0.com.br/0/zabbix/raw/branch/master/templates/proxmox-prometheus-pve-exporter/install-prometheus.sh | bash - -## Instale o Prometheus Proxmox VE Exporter -cd /tmp && wget -4 -qO- https://git.ipv0.com.br/0/zabbix/raw/branch/master/templates/proxmox-prometheus-pve-exporter/pve-exporter.sh | bash - - -Edite o arquivo /etc/prometheus/pve.yml e configure o acesso: -``` -default: - user: pve-exporter@pve - password: senha1234 - verify_ssl: false -``` - -Configurar os exports em /etc/prometheus/prometheus.yml - -``` -cp /etc/prometheus/prometheus.yml /etc/prometheus/prometheus.yml_BACKUP - -pico /etc/prometheus/prometheus.yml -``` - -``` -global: - scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute. - evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute. - -# REGRAS DE ALERTA -rule_files: - - 'alerts/*.yml' - -# CONFIGURACAO DO ALERTMANAGER -alerting: - alertmanagers: - - static_configs: - - targets: ['45.6.116.215:9093'] - -# VictoriaMetrics -remote_write: - - url: "http://45.6.116.215:8428/api/v1/write" - -scrape_configs: - - job_name: "prometheus" - static_configs: - - targets: ["localhost:9090"] - - - job_name: 'ceph' - scrape_interval: 30s - static_configs: - - targets: ['dmsv01.gtecnet.local:9283'] - - targets: ['dmsv02.gtecnet.local:9283'] - - targets: ['dmsv03.gtecnet.local:9283'] - - targets: ['pve01.gtecnet.local:9283'] - - targets: ['pve02.gtecnet.local:9283'] - - targets: ['pve03.gtecnet.local:9283'] - - targets: ['pve04.gtecnet.local:9283'] - - # TARGETS CLUSTER - - targets: ['172.27.31.21:9283', '172.27.31.22:9283', '172.27.31.23:9283'] - labels: - cluster: cluster-gtecnet02 - - - targets: ['172.27.31.11:9283', '172.27.31.12:9283', '172.27.31.13:9283', '172.27.31.14:9283'] - labels: - cluster: cluster-gtecnet01 - - - job_name: 'node' - scrape_interval: 15s - static_configs: - - targets: ['dmsv01.gtecnet.local:9100'] - - targets: ['dmsv02.gtecnet.local:9100'] - - targets: ['dmsv03.gtecnet.local:9100'] - - targets: ['pve01.gtecnet.local:9100'] - - targets: ['pve02.gtecnet.local:9100'] - - targets: ['pve03.gtecnet.local:9100'] - - targets: ['pve04.gtecnet.local:9100'] - -# Essa parte só é utilizada caso queira pegar informações das VMs - - job_name: 'pve' - static_configs: - - targets: - - gtecnet02 - - metrics_path: /pve - params: - module: [default] - relabel_configs: - - source_labels: [__address__] - target_label: __param_target - - source_labels: [__param_target] - target_label: instance - - target_label: __address__ - replacement: 127.0.0.1:9221 # PVE exporter. -``` \ No newline at end of file diff --git a/templates/proxmox-prometheus-pve-exporter/huawei/README.md b/templates/proxmox-prometheus-pve-exporter/huawei/README.md deleted file mode 100644 index e69de29..0000000 diff --git a/templates/proxmox-prometheus-pve-exporter/install-prometheus.sh b/templates/proxmox-prometheus-pve-exporter/install-prometheus.sh deleted file mode 100644 index 3150934..0000000 --- a/templates/proxmox-prometheus-pve-exporter/install-prometheus.sh +++ /dev/null @@ -1,59 +0,0 @@ -#!/bin/bash -PROMETHEUS_VERSION="2.46.0" -wget https://github.com/prometheus/prometheus/releases/download/v${PROMETHEUS_VERSION}/prometheus-${PROMETHEUS_VERSION}.linux-amd64.tar.gz -tar -xzvf prometheus-${PROMETHEUS_VERSION}.linux-amd64.tar.gz -cd prometheus-${PROMETHEUS_VERSION}.linux-amd64/ -# if you just want to start prometheus as root -#./prometheus --config.file=prometheus.yml - -# Create user -useradd --no-create-home --shell /bin/false prometheus - -# Create Directories -mkdir -p /etc/prometheus -mkdir -p /var/lib/prometheus - -# Set ownership -chown prometheus:prometheus /etc/prometheus -chown prometheus:prometheus /var/lib/prometheus - -# Copy binaries -cp prometheus /usr/local/bin/ -cp promtool /usr/local/bin/ - -chown prometheus:prometheus /usr/local/bin/prometheus -chown prometheus:prometheus /usr/local/bin/promtool - -# Copy config -cp -r consoles /etc/prometheus -cp -r console_libraries /etc/prometheus -# cp prometheus.yml /etc/prometheus/prometheus.yml - -# Copy Soncini config -cd /etc/prometheus/ -wget https://raw.githubusercontent.com/gsoncini/monitoring/main/Config/prometheus.yml - -chown -R prometheus:prometheus /etc/prometheus/consoles -chown -R prometheus:prometheus /etc/prometheus/console_libraries - -# Setup systemd -echo '[Unit] -Description=Prometheus -Wants=network-online.target -After=network-online.target - -[Service] -User=prometheus -Group=prometheus -Type=simple -ExecStart=/usr/local/bin/prometheus \ - --config.file /etc/prometheus/prometheus.yml \ - --storage.tsdb.path /var/lib/prometheus/ \ - --web.console.templates=/etc/prometheus/consoles \ - --web.console.libraries=/etc/prometheus/console_libraries - -[Install] -WantedBy=multi-user.target' > /etc/systemd/system/prometheus.service - -systemctl daemon-reload -systemctl enable prometheus diff --git a/templates/proxmox-prometheus-pve-exporter/pve-exporter.sh b/templates/proxmox-prometheus-pve-exporter/pve-exporter.sh deleted file mode 100644 index 1f04682..0000000 --- a/templates/proxmox-prometheus-pve-exporter/pve-exporter.sh +++ /dev/null @@ -1,48 +0,0 @@ -#!/bin/bash - -#add user -useradd -s /bin/false pve-exporter - -# pacotes e dependencias do python - -apt update && apt install python3-venv python3-setuptools python3-dev python3-pip libffi-dev libssl-dev build-essential -y && apt install python3-pip -y - -# Crie e ative o venv, instale o prometheus-pve-exporter -python3 -m venv /opt/prometheus-pve-exporter - -source /opt/prometheus-pve-exporter/bin/activate - -pip install prometheus-pve-exporter - -deactivate - -# criando yml do pve exporter - -touch /etc/prometheus/pve.yml - -echo ' -default: - user: pve-exporter@pve - password: - verify_ssl: false ' > /etc/prometheus/pve.yml - -chown root:pve-exporter /etc/prometheus/pve.yml -chmod 640 /etc/prometheus/pve.yml - -# set permissions -echo '[Unit] -Description=Prometheus Proxmox VE Exporter -Documentation=https://github.com/prometheus-pve/prometheus-pve-exporter - -[Service] -Restart=always -User=pve-exporter -ExecStart=/opt/prometheus-pve-exporter/bin/pve_exporter --config.file /etc/prometheus/pve.yml - -[Install] -WantedBy=multi-user.target' > /etc/systemd/system/prometheus-pve-exporter.service - -# enable pve-exporter -systemctl daemon-reload -systemctl enable prometheus-pve-exporter.service -systemctl start prometheus-pve-exporter.service