S
S
Seeker2021-11-15 12:18:32
SNMP
Seeker, 2021-11-15 12:18:32

How to configure snmp package and add MIBs for hardware?

How to set up the snmp package on the linux server, which is required for zabbix, cacti or another monitoring system?
The page https://www.zabbix.com/documentation/current/ru/ma... says that the line "mibs:" should be commented out in the /etc/snmp/snmp.conf file so that the list of MIBs is not empty , and MIBs would be loaded from the /usr/share/snmp/mibs directory. I did this.
Then I need to add MIBs for the D-Link equipment that I need to monitor in zabbix, I unpack the archive with MIBs downloaded from the manufacturer's website to /var/lib/snmp/mibs
and add the line "mibdirs + /var/" to snmp.conf lib/snmp/mibs/Dlink-mgmt". For some reason, after that, the necessary OIDs are not translated into text strings when checking in snmptranslate, and snmptranslate gives an error:

Did not find 'zeroDotZero' in module SNMPv2-SMI (/var/lib/snmp/mibs/standardMIB/rfc4293.mib)
Did not find 'zeroDotZero' in module SNMPv2-SMI (/var/lib/snmp/mibs/ietf/DISMAN-EVENT-MIB)
Did not find 'zeroDotZero' in module SNMPv2-SMI (/var/lib/snmp/mibs/ietf/DISMAN-SCHEDULE-MIB)

There is something wrong with the MIB dependencies, please help me find the error.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
ky0, 2021-11-15
@ky0

There is a non-free package in debion-like ones snmp-mibs-downloader, usually the setting is limited to installing it, you don’t have to climb into any configs.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question