MIB Integration error
MIB Integration error
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.
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.
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: MIB Integration error
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?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Re: MIB Integration error
Thanks.
Please see these three mib files. Please rename as .mib
Please see these three mib files. Please rename as .mib
You do not have the required permissions to view the files attached to this post.
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: MIB Integration error
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?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Re: MIB Integration error
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.
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: MIB Integration error
What response do you get from running the following command:
Code: Select all
addmib /usr/share/snmp/mibs/FA.mibNagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Re: MIB Integration error
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~]#
[root@xxx~]# addmib /usr/share/snmp/mibs/FA.mib
You have new mail in /var/spool/mail/root
[root@xxx~]#
Re: MIB Integration error
What are the permissions on the "mibs" directory?
Code: Select all
ll -d /usr/share/snmp/mibs/Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: MIB Integration error
Apologies for the late reply.
The permissions are:
drwxrwsr-x. 3 root nagios 4096 Jul 30 08:41 /usr/share/snmp/mibs/
The permissions are:
drwxrwsr-x. 3 root nagios 4096 Jul 30 08:41 /usr/share/snmp/mibs/
Re: MIB Integration error
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:
Reload the page and try the MIB upload again. Post here how it came out especially any error codes that are given.
Thanks!
/Luke
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
Thanks!
/Luke
You do not have the required permissions to view the files attached to this post.
/Luke