General:
This is a fork of https://github.com/cavaliercoder/mib2zabbix.
Usage:
- CentOS 7
-
# yum install net-snmp-perl perl-XML-LibXML epel-release perl-Log-Log4perl perl-Capture-Tiny perl-XML-Simple -y ... Complete! # snmptranslate .1.3.6.1.4.1.29690.1.5 SNMPv2-SMI::enterprises.29690.1.5
- Copy the resulting MIBs to share/snmp/mibs and connect:
# cp ~/template/*MIB.txt /usr/share/snmp/mibs # echo "mibs :ALL" >> /etc/snmp/snmp.conf
- We give the right to launch and generate a template for OID
Additional options for running mib2zabbix.pl can be found in original_README.md or at the beginning of the script itself.
# chmod +x ~/zabbix/mib2zabbix.pl ~/zabbix/mib2zabbix.pl -o <OID> -f <template_file_name> -e -G <group_name_for_zabbix> -N <template_name> --port=<port_default_for_DrWeb_1161>
- <template_file_name> - this is a ready-made template for Zabbix, take and import.
Additional Information:
- On Zabbix itself, you also need to specify all MIBs to the system snmpd (ie, do the entire 4th step except for running the Perl script)
- For SNMP client on Zabbix, apart from importing MIBs (point above), nothing needs to be configured; to configure SNMPTrap (NOTIFICATIONS), you need to additionally configure the trap receiver, see: