Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

'cannot find module xxxx' when using private MIBs

2014-02-19
2014-02-26
  • Hi !

    I have copied a 'private' mibs in the ./config/qtmib/mibs dir
    when i start qtmib i see that an index file is created in that dir that contains the name of the new mib
    however, if i do a mib search for some string that exists in that mibs i dont get any hits :-(
    i also dont see the new mib added at the end of the private-enterprise list

    next i started qtmib from terminal and noticed that there are a number of error messages that look like this :

    No log handling enabled - turning on stderr logging
    MIB search path: /home/tvanseve/.config/qtmib/mibs/:/root/work/qtmibsf/trunk/debian/usr/share/qtmib
    Cannot find module (HOST-RESOURCES-MIB): At line 6 in (none)
    Cannot find module (HOST-RESOURCES-TYPES): At line 6 in (none)
    Cannot find module (UCD-DLMOD-MIB): At line 6 in (none)
    Cannot find module (UCD-DISKIO-MIB): At line 6 in (none)
    Cannot find module (LM-SENSORS-MIB): At line 6 in (none)
    Cannot find module (IP-MIB): At line 6 in (none)
    Cannot find module (IF-MIB): At line 6 in (none)
    Cannot find module (TCP-MIB): At line 6 in (none)
    Cannot find module (UDP-MIB): At line 6 in (none)
    Cannot find module (SNMPv2-MIB): At line 6 in (none)
    Cannot find module (SNMPv2-SMI): At line 6 in (none)
    Cannot find module (NOTIFICATION-LOG-MIB): At line 6 in (none)
    Cannot find module (DISMAN-EVENT-MIB): At line 6 in (none)
    Cannot find module (DISMAN-SCHEDULE-MIB): At line 6 in (none)
    Cannot find module (UCD-SNMP-MIB): At line 6 in (none)
    Cannot find module (UCD-DEMO-MIB): At line 6 in (none)
    Cannot find module (SNMP-TARGET-MIB): At line 6 in (none)
    Cannot find module (NET-SNMP-AGENT-MIB): At line 6 in (none)
    Cannot find module (SNMP-FRAMEWORK-MIB): At line 6 in (none)
    Cannot find module (SNMP-MPD-MIB): At line 6 in (none)
    Cannot find module (SNMP-USER-BASED-SM-MIB): At line 6 in (none)
    Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 6 in (none)
    Cannot find module (SNMP-COMMUNITY-MIB): At line 6 in (none)
    Cannot find module (IPV6-ICMP-MIB): At line 6 in (none)
    Cannot find module (IPV6-MIB): At line 6 in (none)
    Cannot find module (IPV6-TCP-MIB): At line 6 in (none)
    Cannot find module (IPV6-UDP-MIB): At line 6 in (none)
    Cannot find module (IP-FORWARD-MIB): At line 6 in (none)
    Cannot find module (NET-SNMP-PASS-MIB): At line 6 in (none)
    Cannot find module (NET-SNMP-EXTEND-MIB): At line 6 in (none)
    Cannot find module (SNMP-NOTIFICATION-MIB): At line 6 in (none)
    Cannot find module (SNMPv2-TM): At line 6 in (none)
    Cannot find module (NET-SNMP-VACM-MIB): At line 6 in (none)

    so i tried to find and download the first missing module (HOST-RESOURCES-MIB) and found it here : http://www.oidview.com/mibs/0/HOST-RESOURCES-MIB.html

    after unzipping it and also placing it in the mib dir i get this :

    tvanseve@tvanseve-ThinkPad-W530:~$ qtmib
    No log handling enabled - turning on stderr logging
    MIB search path: /home/tvanseve/.config/qtmib/mibs/:/root/work/qtmibsf/trunk/debian/usr/share/qtmib
    Cannot find module (SNMPv2-SMI): At line 5 in /home/tvanseve/.config/qtmib/mibs//HOST-RESOURCES-MIB.mib
    Cannot find module (SNMPv2-TC): At line 8 in /home/tvanseve/.config/qtmib/mibs//HOST-RESOURCES-MIB.mib
    Cannot find module (IF-MIB): At line 12 in /home/tvanseve/.config/qtmib/mibs//HOST-RESOURCES-MIB.mib
    Did not find 'mib-2' in module #-1 (/home/tvanseve/.config/qtmib/mibs//HOST-RESOURCES-MIB.mib)
    Did not find 'DisplayString' in module #-1 (/home/tvanseve/.config/qtmib/mibs//HOST-RESOURCES-MIB.mib)
    Did not find 'TruthValue' in module #-1 (/home/tvanseve/.config/qtmib/mibs//HOST-RESOURCES-MIB.mib)
    Did not find 'DateAndTime' in module #-1 (/home/tvanseve/.config/qtmib/mibs//HOST-RESOURCES-MIB.mib)
    Did not find 'AutonomousType' in module #-1 (/home/tvanseve/.config/qtmib/mibs//HOST-RESOURCES-MIB.mib)
    Did not find 'InterfaceIndexOrZero' in module #-1 (/home/tvanseve/.config/qtmib/mibs//HOST-RESOURCES-MIB.mib)
    Unlinked OID in HOST-RESOURCES-MIB: host ::= { mib-2 25 }
    Undefined identifier: mib-2 near line 100 of /home/tvanseve/.config/qtmib/mibs//HOST-RESOURCES-MIB.mib
    Cannot find module (HOST-RESOURCES-TYPES): At line 0 in (none)
    Cannot find module (UCD-DLMOD-MIB): At line 0 in (none)
    Cannot find module (UCD-DISKIO-MIB): At line 0 in (none)
    Cannot find module (LM-SENSORS-MIB): At line 0 in (none)
    Cannot find module (IP-MIB): At line 0 in (none)
    Cannot find module (IF-MIB): At line 0 in (none)
    Cannot find module (TCP-MIB): At line 0 in (none)
    Cannot find module (UDP-MIB): At line 0 in (none)
    Cannot find module (SNMPv2-MIB): At line 0 in (none)
    Cannot find module (SNMPv2-SMI): At line 0 in (none)
    Cannot find module (NOTIFICATION-LOG-MIB): At line 0 in (none)
    Cannot find module (DISMAN-EVENT-MIB): At line 0 in (none)
    Cannot find module (DISMAN-SCHEDULE-MIB): At line 0 in (none)
    Cannot find module (UCD-SNMP-MIB): At line 0 in (none)
    Cannot find module (UCD-DEMO-MIB): At line 0 in (none)
    Cannot find module (SNMP-TARGET-MIB): At line 0 in (none)
    Cannot find module (NET-SNMP-AGENT-MIB): At line 0 in (none)
    Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none)
    Cannot find module (SNMP-MPD-MIB): At line 0 in (none)
    Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none)
    Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none)
    Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none)
    Cannot find module (IPV6-ICMP-MIB): At line 0 in (none)
    Cannot find module (IPV6-MIB): At line 0 in (none)
    Cannot find module (IPV6-TCP-MIB): At line 0 in (none)
    Cannot find module (IPV6-UDP-MIB): At line 0 in (none)
    Cannot find module (IP-FORWARD-MIB): At line 0 in (none)
    Cannot find module (NET-SNMP-PASS-MIB): At line 0 in (none)
    Cannot find module (NET-SNMP-EXTEND-MIB): At line 0 in (none)
    Cannot find module (SNMP-NOTIFICATION-MIB): At line 0 in (none)
    Cannot find module (SNMPv2-TM): At line 0 in (none)
    Cannot find module (NET-SNMP-VACM-MIB): At line 0 in (none)
    Cannot adopt OID in HOST-RESOURCES-MIB: hrStorageAllocationFailures ::= { hrStorageEntry 7 }
    Cannot adopt OID in HOST-RESOURCES-MIB: hrStorageUsed ::= { hrStorageEntry 6 }
    Cannot adopt OID in HOST-RESOURCES-MIB: hrStorageSize ::= { hrStorageEntry 5 }
    Cannot adopt OID in HOST-RESOURCES-MIB: hrStorageAllocationUnits ::= { hrStorageEntry 4 }
    Cannot adopt OID in HOST-RESOURCES-MIB: hrStorageDescr ::= { hrStorageEntry 3 }
    Cannot adopt OID in HOST-RESOURCES-MIB: hrStorageType ::= { hrStorageE
    ...

    i think i'm doing something wrong here :-S

    all help is welcome

    grtz
    Thijs

     
  • btw : i'm using version 0.8.10 on ubuntu 12.04 64bit

     
  • RCP Team
    RCP Team
    2014-02-19

    MIB loading is broken 0.8.10. Please try version 0.8.12

     
  • yep, upgrading to 0.8.12 fixed this
    thanks !!