Page 1 of 1

Can't Upload MIB's / SNMP Trap

Posted: Wed May 10, 2017 8:16 am
by ahoward12
Hey guys, you might be the best problem solvers I've ever seen so this should be easy.

I was following this guide https://assets.nagios.com/downloads/nag ... ios_XI.pdf to set up SNMP Traps to be received from a Fortigate firewall. Once I get to the point of uploading MIB's I just get an error that says MIB could not be installed, nothing about folder permissions of anything. Very generic message.

When I download the MIB straight from my Fortigate it comes down as a .mib file. I tried uploading that, I also tried renaming it to a .txt with no luck either. As an FYI my permissions for the directory /usr/share/snmp are 751.

Nagios XI 5.4.3
CentOS 6.8
64-bit
Virtual Machine
Using SSL

Any help is always appreciated!

Re: Can't Upload MIB's / SNMP Trap

Posted: Wed May 10, 2017 9:36 am
by tgriep
The permissions for that folder and the subfolder /files need to be writable by the nagios group as well so to fix the permissions for that folder, run the following as root on the server.

Code: Select all

chown -R root:nagios /usr/share/snmp/mibs
chmod -R ug+rw /usr/share/snmp/mibs
Another folder / files that the nagios group has to have access to is the /etc/snmp folder. To set those permissions, run these commands.

Code: Select all

chown -R root:nagios /etc/snmp
chmod -R ug+rw /etc/snmp
When installing a Trap MIB, the snmptt.conf file in that folder gets updated by the nagios user so it needs those permissions to do so.

Re: Can't Upload MIB's / SNMP Trap

Posted: Thu May 11, 2017 4:51 pm
by ahoward12
You guys are so fast...Yep it worked perfect. I would have started looking at permissions more in-depth but it gave me no indication it was a permission issue. As I understand it, there used to be a more precise error. Just a thought to maybe change the error code to something more precise.

Thank you for the very quick response and solution. Issue is solved.