Page 1 of 1

unable to import mibs

Posted: Thu Aug 08, 2013 9:57 am
by shakra2005
Hi Guys,

i want to import mib files in nagiosxi.

i go to admin/manage mibs/

then i select the file and select process trap too.

the following error occours

MIB could not be installed - directory permissions may be incorrect.

which permissions i must set

Re: unable to import mibs

Posted: Thu Aug 08, 2013 10:14 am
by abrist
Try:

Code: Select all

chown -R root:nagios /usr/share/snmp/mibs
chmod -R g+w /usr/share/snmp/mibs

Re: unable to import mibs

Posted: Fri Aug 09, 2013 1:48 am
by shakra2005
now i have the following

Failed to converted mib path to snmptt.ini. (rc: 4)

/usr/share/snmp/mibs/.index are too large. count = 394

how must i fix it

Re: unable to import mibs

Posted: Fri Aug 09, 2013 10:32 am
by sreinhardt
What other errors are you getting from running the addmib command? Could you post the entire output please.

Re: unable to import mibs

Posted: Tue Aug 13, 2013 1:31 am
by shakra2005

Code: Select all

addmib /usr/share/snmp/mibs/3COM0115.MIB
This file looks like it has been added already!
Exiting.

Re: unable to import mibs

Posted: Tue Aug 13, 2013 10:26 am
by sreinhardt
So you are no longer receiving the index too large error? I would suggest attempting a mib that is not working, or has not been added as of yet.

Re: unable to import mibs

Posted: Wed Aug 14, 2013 1:51 am
by shakra2005
the error i see at the following command

for i in 3COM*.mib; do snmpttconvertmib --in=/usr/share/snmp/mibs/$i --out=/etc/snmp/snmptt.conf --exec='/usr/share/snmp/snmpconf-data/snmptrapd-data/traphandle $r $s "$D"'; done

then this

add_mibdir: strings scanned in from /usr/share/snmp/mibs/.index are too large. count = 394

i would like to process the mib

Re: unable to import mibs

Posted: Wed Aug 14, 2013 3:03 pm
by sreinhardt
Let's have you tar the entire snmp/mibs directory and PM it to one of us.

Code: Select all

cd /tmp
tar cjf mibs.tar.bz2 /usr/share/snmp/mibs/

Re: unable to import mibs

Posted: Fri Oct 03, 2014 4:00 am
by target74
I'm a bit late, but maybe my infos are still useful to someone.

I had same strange error message a few days ago working with one of my clients.
Also, some mibs were not translated correctly despite mib files was there.

After 3 hysterical (for the client) days of hard job, I started to read source code of netsnmp and I discovered that the function which parse index files expects rows in a format like

MODULE{space}FILENAME{CR}

So , I discovered that my customer renamed a file using whitespaces (AAAURRGHH!!! ) which made function to stop analyzing index ( and thereby ignoring following mib modules ).
You may discover which file is causing issue looking at row number stated in "count = "

Re: unable to import mibs

Posted: Fri Oct 03, 2014 9:18 am
by slansing
Ouch! But thank you for letting us know what your resolution was, I'm sure it will help someone in the future.