Ad Widget

Collapse

SNMP "Cannot find module" 3rd party MIBs

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Doubarry
    Junior Member
    • Jun 2022
    • 1

    #1

    SNMP "Cannot find module" 3rd party MIBs

    Hello,

    since three days i am trying to convert my 3rd party MIBs to a zabbix tamplate.
    I want to use the SNMPWALK2ZABBIX script by Sean Bradley, it looks good:


    But when I try to run the command:
    HTML Code:
    snmpwalk -v 2c -c public 10.0.1.253 1.3.6.1.4
    I get the error message:
    HTML Code:
    MIB search path: /home/david/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf:/home/david/.snmp/mibs:/usr/local/share/snmp/mibs:/home/david/.snmp/mibs
    Can't find module (MYMIB-MIB): At line 1 in (none)
    So I follow the configuration of snmp for 3rd party MIBs:


    My MIB-Files are now stored in /home/david/.snmp/mibs, /usr/share/snmp/mibs and /usr/local/share/snmp/mibs

    But still the same error!

    I also installed snmp-mibs-downloader but i still get the same error

    My snmp.conf looks like:

    HTML Code:
    # As the snmp packages come without MIB files due to license reasons, loading
    # of MIBs is disabled by default. If you added the MIBs you can reenable
    # loading them by commenting out the following line.
    #mibs :
    #mibs +ALL
    # If you want to globally change where snmp libraries, commands and daemons
    # look for MIBS, change the line below. Note you can set this for individual
    # tools with the -M option or MIBDIRS environment variable.
    #
    # mibdirs /usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
    mibdirs +/home/david/.snmp/mibs
    mibdirs +/usr/local/share/snmp/mibs
    My last idea was to use the snmp command with the statement "-m MYMIB" like:
    HTML Code:
    snmpwalk -v 2c -c public -m MYMIB:MYOTHERMIB 10.0.1.253 1.3.6.1.4
    It also doasn't work....

    Did I miss something?

    Can someone help me, I'm out of ideas.

    Thanks!

Working...