Skip to content

OddanN/mib2zabbix

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

General:

This is a fork of https://github.com/cavaliercoder/mib2zabbix.

Usage:

  1. CentOS 7
  2. # 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
    
  3. 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
    
  4. We give the right to launch and generate a template for OID
    # 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>
    
    Additional options for running mib2zabbix.pl can be found in original_README.md or at the beginning of the script itself.
  5. <template_file_name> - this is a ready-made template for Zabbix, take and import.

Additional Information:

  1. 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)
  2. 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:
    1. https://www.zabbix.com/documentation/current/ru/manual/config/items/itemtypes/snmptrap
    2. https://www.zabbix.org/wiki/Start_with_SNMP_traps_in_Zabbix

About

SNMP Template generator for Zabbix

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Perl 100.0%