Page 1 of 2

MIB Integration error

Posted: Mon Jul 28, 2014 3:40 am
by aap
Hi,

I'm getting the following error when trying to upload a new Mib. I have tried several MIBs and the same error appears - even for mibs that I know are currently uploaded.

Failed to convert uploaded file to snmptt mib.. (rc: 13)

If the process trap checkbox is left unticked, then the MIB load successfully, however i am certain the assocaited traps will not be processed. The system is working for previously loaded traps though. The issue only exists for new items.

Any help is appreciated.

Re: MIB Integration error

Posted: Mon Jul 28, 2014 10:00 am
by sreinhardt
If the mib you are uploading does not have traps and the process traps box is checked, you will get this message, however this only indicates that no traps could be processed, the file has still been added to the nagios system. If however there are traps in there, and they are not being processed, there is likely something wrong with the mib. Could you upload or provide a link to the mib that you are attempting to process?

Re: MIB Integration error

Posted: Tue Jul 29, 2014 2:54 am
by aap
Thanks.

Please see these three mib files. Please rename as .mib

Re: MIB Integration error

Posted: Tue Jul 29, 2014 10:29 am
by sreinhardt
The only mib that that has traps of those three (search for trap-type) is FA.mib, and that seems to process traps great when imported into XI. The other two I would expect to give the red box saying no traps processed, but that is perfectly fine and they should be added to your system correctly. Are you seeing errors when processing FA.mib?

Re: MIB Integration error

Posted: Wed Jul 30, 2014 2:43 am
by aap
Yes, I am still seeing the same error when processing FA.mib. I have tried to upload other mibs as well and the message is always the same.

Re: MIB Integration error

Posted: Wed Jul 30, 2014 10:59 am
by sreinhardt
What response do you get from running the following command:

Code: Select all

addmib /usr/share/snmp/mibs/FA.mib

Re: MIB Integration error

Posted: Thu Jul 31, 2014 1:21 am
by aap
The command runs without any errors.

[root@xxx~]# addmib /usr/share/snmp/mibs/FA.mib
You have new mail in /var/spool/mail/root
[root@xxx~]#

Re: MIB Integration error

Posted: Thu Jul 31, 2014 1:03 pm
by lmiltchev
What are the permissions on the "mibs" directory?

Code: Select all

ll -d /usr/share/snmp/mibs/

Re: MIB Integration error

Posted: Wed Aug 06, 2014 1:56 am
by aap
Apologies for the late reply.

The permissions are:

drwxrwsr-x. 3 root nagios 4096 Jul 30 08:41 /usr/share/snmp/mibs/

Re: MIB Integration error

Posted: Wed Aug 06, 2014 12:37 pm
by lgroschen
aap,

In the mibs.php page in XI and there was a bug in the preg_match() function where it was being passed too many variables. This has been fixed and the file isn't encrypted so give this a shot and try uploading the mib with the process box checked. I attached the updated file.

Unzip the file, then you will want to replace mibs.php here:

Code: Select all

/usr/local/nagiosxi/html/admin/mibs.php
Reload the page and try the MIB upload again. Post here how it came out especially any error codes that are given.

Thanks!
/Luke