Can't Upload MIB's / SNMP Trap

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ahoward12
Posts: 137
Joined: Thu Jan 05, 2017 10:24 am

Can't Upload MIB's / SNMP Trap

Post 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!
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

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

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
ahoward12
Posts: 137
Joined: Thu Jan 05, 2017 10:24 am

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

Post 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.
Locked