零、官方文档
https://www.zabbix.com/documentation/4.0/zh/manual/config/items/itemtypes/snmp/mib_files
一、获取MIB库
1.厂商MIB文件获取
2.厂商官网MIB文件下载
二、MIB库导入到Zabbix服务器
1.通过lszrz上传到/tmp文件夹下
2.mkdir -p /usr/share/snmp/mibs #有时在/usr/local/share/snmp/mibs
3.grep -q '^mibdirs +/usr/share/snmp/mibs' /etc/snmp/snmpd.conf 2>/dev/null || echo "mibdirs +/usr/share/snmp/mibs" >> /etc/snmp/snmpd.conf
4.cp /tmp/netapp.mib /usr/share/snmp/mibs
三、将Mib的对象名称转化成OID
#snmptranslate -IR -On NETAPP-MIB::nvramBatteryStatus #NETAPP-MIB为
# snmptranslate -IR -On CISCO-SMI::ciscoProducts
.1.3.6.1.4.1.9.1