Here's the output of the smidump command:

[EMAIL PROTECTED] ~]# /opt/zenoss/bin/zenmib run -v 10
INFO:zen.zenmib:Skipping file /opt/zenoss/share/mibs/irtf/IRTF-NMRG-SMING
INFO:zen.zenmib:Skipping file /opt/zenoss/share/mibs/irtf/IRTF-NMRG-SMING-TYPES INFO:zen.zenmib:Skipping file /opt/zenoss/share/mibs/irtf/IRTF-NMRG-SMING-EXTENSIONS
DEBUG:zen.zenmib:KWARED-MIB.txt
DEBUG:zen.zenmib:running smidump -fpython -p "/opt/zenoss/share/mibs/ietf/SNMPv2-SMI" "/opt/zenoss/share/mibs/site/KWARED-MIB.txt" 2>/dev/null ERROR:zen.zenmib:Failed to load mib: /opt/zenoss/share/mibs/site/KWARED-MIB.txt
[EMAIL PROTECTED] ~]#
[EMAIL PROTECTED] ~]#
[EMAIL PROTECTED] ~]#
[EMAIL PROTECTED] ~]# /opt/zenoss/bin/smidump -fpython -p "/opt/zenoss/share/mibs/ietf/SNMPv2-SMI" "/opt/zenoss/share/mibs/site/KWARED-MIB.txt"
# python version 1.0                                            DO NOT EDIT
#
# Generated by smidump version 0.4.5:
#
#   smidump -f python KWARED-MIB

FILENAME = "/opt/zenoss/share/mibs/site/KWARED-MIB.txt"

MIB = {
   "moduleName" : "KWARED-MIB",

   "KWARED-MIB" : {
       "nodetype" : "module",
       "language" : "SMIv2",
       "organization" :
           """""",
       "contact" :
           """""",
       "description" :
           """kwared service""",
       "revisions" : (
           {
               "date" : "2007-06-01 11:07",
               "description" :
                   """Initial version.""",
           },
       ),
       "identity node" : "kwared",
   },

   "imports" : (
       {"module" : "SNMPv2-SMI", "name" : "OBJECT-TYPE"},
       {"module" : "SNMPv2-SMI", "name" : "MODULE-IDENTITY"},
       {"module" : "SNMPv2-SMI", "name" : "enterprises"},
       {"module" : "SNMPv2-SMI", "name" : "Integer32"},
   ),

   "nodes" : {
       "sendza" : {
           "nodetype" : "node",
           "moduleName" : "KWARED-MIB",
           "oid" : "1.3.6.1.4.1.8080",
       }, # node
       "kwared" : {
           "nodetype" : "node",
           "moduleName" : "KWARED-MIB",
           "oid" : "1.3.6.1.4.1.8080.1",
           "status" : "current",
       }, # node
       "kwared-accts-processed" : {
           "nodetype" : "scalar",
           "moduleName" : "KWARED-MIB",
           "oid" : "1.3.6.1.4.1.8080.1.1",
           "status" : "current",
           "syntax" : {
               "type" : { "module" :"", "name" : "Integer32"},
           },
           "access" : "readwrite",
           "description" :
               """kwared accounts processed""",
       }, # scalar
   }, # nodes

}
[EMAIL PROTECTED] ~]#

I don't see an error message from smidump.

Ken....


----- Original Message ----- From: "Chet Luther" <[EMAIL PROTECTED]>
To: "General discussion of using zenoss system" <[email protected]>
Sent: Saturday, July 07, 2007 12:54 PM
Subject: Re: [zenoss-users] Failed to load mib...


On Jul 6, 2007, at 10:58 PM, [EMAIL PROTECTED] wrote:

I'm trying to load my MIB with zenmib, and am getting the following:

[EMAIL PROTECTED] ~]# /opt/zenoss/bin/zenmib run KWARED-MIB.txt
INFO:zen.zenmib:Skipping file /opt/zenoss/share/mibs/irtf/IRTF-NMRG- SMING INFO:zen.zenmib:Skipping file /opt/zenoss/share/mibs/irtf/IRTF-NMRG- SMING-TYPES INFO:zen.zenmib:Skipping file /opt/zenoss/share/mibs/irtf/IRTF-NMRG- SMING-EXTENSIONS
ERROR:zen.zenmib:Failed to load mib: KWARED-MIB.txt
[EMAIL PROTECTED] ~]#

Ken,

You should put all of the MIB files you want to add into your $ZENHOME/share/mibs/site directory, then run "zenmib run" with no other arguments. This will allow Zenoss to sort out of all the dependencies.

If it still fails to load the MIB, you can run "zenmib run -v 10" to get extra debugging output. You'll see the smidump command that zenmib runs to extract the data from the MIB. You can run this smidump command without the 2>/dev/null argument to see the real debugging output.

As an example:
zenmib run -v 10
...
DEBUG:zen.zenmib:running smidump -fpython -p "/opt/zenoss/share/mibs/ ietf/SNMPv2-SMI" -p "/opt/zenoss/share/mibs/ietf/SNMPv2-TC" -p "/opt/ zenoss/share/mibs/ietf/SNMPv2-CONF" "/opt/zenoss/share/mibs/site/ Juniper-BGP-MIB.mib" 2>/dev/null
...

smidump -fpython -p "/opt/zenoss/share/mibs/ietf/SNMPv2-SMI" -p "/ opt/zenoss/share/mibs/ietf/SNMPv2-TC" -p "/opt/zenoss/share/mibs/ietf/ SNMPv2-CONF" "/opt/zenoss/share/mibs/site/Juniper-BGP-MIB.mib"
... smidump output ...

Chet Luther
[EMAIL PROTECTED]
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to