5.02021-11-21T21:31:58ZTemplatesSNMP Interfaces HuaweiSNMP Interfaces Huawei## Overview
Templete para OLT's Huawei MA5600 e outras OLT's menores.
Observações:
Dentro do servidor zabbix será necessário editar o arquivo "/etc/snmp/snmp.conf" no meu caso o servidor é ubuntu server. Já dentro do arquivo escreva a linha "noRangeCheck yes" caso ela ainda não exista ou caso ela exista basta descomentar, esse passo é importante para que não retorne erro de "index out of range".
Os equipamentos da Huawei nas interfaces GPON tem um problema com o MIB-ifAlias e MIB-ifDescr, sempre irão retornar o apelido e descrição das interfaces GPON com o mesmo nome. Assim o zabbix não consegue identifica-las separadamente. Porém o MIB-ifName trás o resultado correto das interfaces, segue os exemplos:
IF-MIB::ifDescr.[4194304000](tel:(419)%20430-4000) = STRING: Huawei-MA5600-V800R015-GPON\_UNI
IF-MIB::ifDescr.[4194304256](tel:(419)%20430-4256) = STRING: Huawei-MA5600-V800R015-GPON\_UNI
IF-MIB::ifDescr.[4194304512](tel:(419)%20430-4512) = STRING: Huawei-MA5600-V800R015-GPON\_UNI
IF-MIB::ifName.[4194304000](tel:(419)%20430-4000) = STRING: GPON 0/0/0
IF-MIB::ifName.[4194304256](tel:(419)%20430-4256) = STRING: GPON 0/0/1
IF-MIB::ifName.[4194304512](tel:(419)%20430-4512) = STRING: GPON 0/0/2
Agradecimentos: Jorge Iwano, Rodrigo Gregório, Willian Nawate
## Author
Hudson Teixeira
TemplatesInterfaces- Number of network interfacesSNMP_AGENTIF-MIB::ifNumber.0ifNumber607dThe number of network interfaces (regardless of their current state) present on this system.Interfaces
Network interfacesSNMP_AGENTdiscovery[{#SNMPVALUE},IF-MIB::ifName]ifName30You may also consider using IF-MIB::ifType or IF-MIB::ifAlias for discovery depending on your filtering needs.
{$SNMP_COMMUNITY} is a global macro.Admin status of interface $1SNMP_AGENTIF-MIB::ifAdminStatus.{#SNMPINDEX}ifAdminStatus[{#SNMPVALUE}]607dThe desired state of the interface.InterfacesSNMP interface status (ifAdminStatus)Incoming traffic on interface $1SNMP_AGENTIF-MIB::ifInOctets.{#SNMPINDEX}ifInOctets[{#SNMPVALUE}]107dbpsThe number of octets in valid MAC frames received on this interface, including the MAC header and FCS.InterfacesCHANGE_PER_SECONDMULTIPLIER8Name of interface $1SNMP_AGENTIF-MIB::ifName.{#SNMPINDEX}ifName[{#SNMPVALUE}]36007d0CHARInterfacesOperational status of interface $1SNMP_AGENTIF-MIB::ifOperStatus.{#SNMPINDEX}ifOperStatus[{#SNMPVALUE}]607dThe current operational state of the interface.InterfacesSNMP interface status (ifOperStatus){diff(0)}=1Operational status was changed on {HOST.NAME} interface {#SNMPVALUE}INFOOutgoing traffic on interface $1SNMP_AGENTIF-MIB::ifOutOctets.{#SNMPINDEX}ifOutOctets[{#SNMPVALUE}]107dbpsThe number of octets transmitted in MAC frames on this interface, including the MAC header and FCS.InterfacesCHANGE_PER_SECONDMULTIPLIER8Traffic on interface {#SNMPVALUE}GRADIENT_LINE00AA00- SNMP Interfaces HuaweiifInOctets[{#SNMPVALUE}]
1GRADIENT_LINE3333FF- SNMP Interfaces HuaweiifOutOctets[{#SNMPVALUE}]
{$SNMP_COMMUNITY}publicSNMP interface status (ifAdminStatus)1up2down3testingSNMP interface status (ifOperStatus)1up2down3testing4unknown5dormant6notPresent7lowerLayerDown