Ad Widget

Collapse

How to import MIB

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mulbzh
    Senior Member
    • Nov 2014
    • 115

    #1

    How to import MIB

    Hello,

    I had import Cisco Catalyst Template in Zabbix 2.4 on Ubuntu.

    It work good but some items don t work. this items use MIB like this :
    ENTITY-MIB-entPhysicalSerialNum

    I dont understant how import MIB. I can download MIB (.my) in Cisco website but after this ?

    i have to put in /usr/share/snmp/Mibs but i can see only txt files...

    thanks for help
  • kloczek
    Senior Member
    • Jun 2006
    • 1771

    #2
    Originally posted by mulbzh
    Hello,

    I had import Cisco Catalyst Template in Zabbix 2.4 on Ubuntu.

    It work good but some items don t work. this items use MIB like this :
    ENTITY-MIB-entPhysicalSerialNum

    I dont understant how import MIB. I can download MIB (.my) in Cisco website but after this ?

    i have to put in /usr/share/snmp/Mibs but i can see only txt files...

    thanks for help
    RTFM
    After copy MIB to directory with all MIBS you must as well do
    Code:
    echo "mibs +ENTITY-MIB" >> /etc/snmp/snmp.local.conf
    if base configuration directory of net-snmp package on Ubuntu is /etc/snmp, and restart zabbix server/zabbix proxy
    http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
    https://kloczek.wordpress.com/
    zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
    My zabbix templates https://github.com/kloczek/zabbix-templates

    Comment

    • mulbzh
      Senior Member
      • Nov 2014
      • 115

      #3
      i can copy but some MIBs are .my, others .txt, others .MIB

      i have to convert berfore to TXT ?

      Comment

      • kloczek
        Senior Member
        • Jun 2006
        • 1771

        #4
        Originally posted by mulbzh
        i can copy but some MIBs are .my, others .txt, others .MIB

        i have to convert berfore to TXT ?
        IIRC net-snmp tools by default are looking for *.txt.
        Just try add line(s) in config file registering MIB(s) and try "strace -e trace=file snmpwalk <params>" to see which files are net-snmp libraries are trying to stat() or open().
        http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
        https://kloczek.wordpress.com/
        zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
        My zabbix templates https://github.com/kloczek/zabbix-templates

        Comment

        • mulbzh
          Senior Member
          • Nov 2014
          • 115

          #5
          i used this to import on Ubuntu server :

          Comment

          • midnight_man
            Junior Member
            • Mar 2016
            • 11

            #6
            Hi guys....How I can import ubnt mibs to zabbix?

            I am trying it for month but without success, I dont know how to import mib tables into UBUNTU 14 server! Its neverengind story...copied mib files into place, enable +ALL in snmp conf...without luck

            Comment

            Working...