Interestingly, you're trying to import "SNMPv2.CONF", while the file
name is actually "SNMPv2-CONF".  That may help a little bit. ;-)

As to the second part of your issue (regarding ATM-TC-MIB):  as well
as making sure your mib definitions are in the correct load order, I
had another issue with snmpwalk not being able to find certain mibs,
even though they were explicitly specified in snmpd.conf.  I narrowed
it down to the /usr/share/snmp/mibs/.index file not being "current".
(I have NO idea where the file came from or how it gets updated.  For
the record, I symlinked $ZENHOME/share/mibs/site to
/usr/share/snmp/mibs, so I don't know if the ".index" file is for
snmpd or for Zenoss, unfortunately.

My solution was to regenerate the .index file manually with the
following script (run as root).  It basically reads the
"YOUR-RANDOM-MIB DEFINITIONS ::= BEGIN" line from each file in
/usr/share/snmp/mibs and adds a line to .index that looks like
"YOUR-RANDOM-MIB random.txt".

------------------------------
[EMAIL PROTECTED] ~]$ cat reIndexMibs.sh
#!/bin/bash

mv /usr/share/snmp/mibs/.index /usr/share/snmp/mibs/.index.old

for i in `ls /usr/share/snmp/mibs`; do
        def=`grep "DEFINITIONS ::= BEGIN" /usr/share/snmp/mibs/${i} |
sed 's/^[ \t]*//' | cut -f1 -d' '`
        echo $def $i | tee -a /usr/share/snmp/mibs/.index
done
------------------------------

I have no idea if this is will help you at all, but I figured it was
worth posting.

--

seth wright ([EMAIL PROTECTED])
windows engineer
540.568.2912 (office)
james madison university



On Tue, Jun 17, 2008 at 9:04 AM, sabryan <[EMAIL PROTECTED]> wrote:
> take a look at this firts:
>
[snip]
>      -rwxrwxrwx 1 zenoss zenoss    304 2008-06-17 08:27 SNMPv2-CONF
>
>      [EMAIL PROTECTED]:/usr/local/zenoss/common/share/mibs/site$ zenmib run 
> SNMPv2.CONF --debug
[snip]
>      IOError: [Errno 2] No such file or directory: 'SNMPv2.CONF'
>
[snip]
> I also tried this:
>
> [EMAIL PROTECTED]:/usr/local/zenoss/common/share/mibs/site$ zenmib run 
> ATM-TC-MIB --debug
> INFO:zen.zenmib:Skipping file ATM-TC-MIB
> ERROR:zen.zenmib:Failed to load mib: ATM-TC-MIB
> ERROR:zen.zenmib:Error: failed to locate MIB module `ATM-TC-MIB'
> smidump: cannot locate module `ATM-TC-MIB'
>
> Please suggest a fix..thank you
>
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to