How to solve the error “Unknown Object Identifier (Index out of range: XXX (ifIndex))”

Once I made a Zabbix template for drawing traffic graphs from GPON ports on Huawei SmartAX MA5683T.

From Linux, I looked at the interface indexes with the command:

Continue reading “How to solve the error “Unknown Object Identifier (Index out of range: XXX (ifIndex))””

Configuring SNMP Traps on D-Link Switches

I will give an example of setting up SNMP Traps sending on D-Link switches.
For example, I will take the switches D-Link DES-3200-x:

Create an SNMP password:

create snmp community public view CommunityView read_only

We indicate which host and with which password the traps should be sent:

create snmp host x.x.x.x v2c public

We indicate the change in the state of which ports to send traps:

config snmp link_traps ports 01-24 disable
config snmp link_traps ports 25-26 enable

Check the configuration of sending snmp traps with the command:

show snmp traps

Check the configuration of sending snmp traps on the status of ports with the command:

show snmp traps link_traps

At the end of the command, you can digitize port numbers.

See also my article:
Installing and using Net-SNMP

OID and MIB for Huawei OLT and ONU

Decoded from the firmware Huawei SmartAX MA5683T several OID.

An example of the MIB and OID check commands from Linux:

snmpwalk -v 2c -c public

Actually list with description of OID:
Optical power ONU:

Board temperature:


Slot temperature:


Loading of processors of boards:


Frame power:


Slot table:


The status of the link of the GPON ports (Online – 1, Offline – 2):


Vlan status (up/down):


ONU Status (Online – 1, Offline – 2):


Optical temperature ONU:


The number of mac addresses connected to ONU:


Distance to ONU:


Uptime OLT:


Total number of SNMP packets to OLT:


A few more OIDs:


See also:
SNMP OID and MIB for interfaces

OID and MIB list for Arris Cadant C3

I’ll list a few oid below and briefly describe them.
Check the response to oid and mib in linux for example with the following command:

snmpwalk -v 2c -c public .

Connected modems (dcxUsStatsRegComplete) .

Upstream Indexes: .
Network Interface Status .
Description of network interfaces .
Network Interface Name .

SignalNoise upstream (docsIfSigQSignalNoise) .
SignalNoiseSNR upstream (docsIfSigQSignalNoiseSNR) .

Mibs for upstream power-level:

Number of modems on the upstream:

(dcxUsStatsOther) .
(dcxUsStatsRanging) .
(dcxUsStatsRngAborted) .
(dcxUsStatsRngComplete) .
(dcxUsStatsIpComplete) .
(dcxUsStatsAccessDenied) .

(UpstreamNum) .
(dcxUsStatsAvgUtil) .
(dcxUsStatsAvgContSlots) .
(docsIfSigQUnerroreds) .
(docsIfSigQCorrecteds) .
(docsIfSigQUncorrectables) .
(dcxUsStatsNumActiveUGS) .
(dcxUsStatsAvgUGSLastOneHour) .
(dcxUsStatsMaxUGSLastFiveMins) .

See also:
SNMP OID and MIB for interfaces

Configuring low-level discovery in Zabbix

Low-level discovery allows you to automatically create data items, triggers, graphics.
Massively it is better not to use it, since in practice it noticed that it gives a significant load on the system.

Here is an example of the discovery configuration for viewing the port load of the managed switch.
To start, open the “Settings” – “Templates“, create a new template, or click “Discovery“.
Click “Create rule” and fill out the main parameters:

Name: Interaces
Type: SNMPv2 agent
Key: snmp.discovery
SNMP OID: ifDescr
SNMP community: public
Port: 161

The second step is to create a prototype data element:

Name: ifInOctets.$1
Type: SNMPv2 agent
Key: ifInOctets.["{#SNMPINDEX}"]
SNMP community: public
Port: 161
Type of information: Numeric (float)
Units: B
Use custom multiplier: 8
Store value: Delta (speed per second)
New aplication: ifInOctets

Example of creating a prototype of a trigger:

Name: ifOperStatus.{#SNMPINDEX} on {HOST.HOST} was changed
Expression: {template name:ifOperStatus.["{#SNMPINDEX}"].diff()}=1

Instead “ifInOctets” similarly you can use for example: ifOutOctets, ifInErrors, ifOutErrors, ifInDiscards, ifOutDiscards, ifOperStatus etc.

When creating a graph in the name, we write for example “Traffic Port {#SNMPINDEX}” and add to the Item, for example, two data elements responsible for the incoming (ifInOctets) and outgoing traffic (ifOutOctets).

See also:
SNMP OID and MIB for interfaces