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!
Can't Upload MIB's / SNMP Trap
Re: Can't Upload MIB's / SNMP Trap
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.
Another folder / files that the nagios group has to have access to is the /etc/snmp folder. To set those permissions, run these commands.
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.
Code: Select all
chown -R root:nagios /usr/share/snmp/mibs
chmod -R ug+rw /usr/share/snmp/mibsCode: Select all
chown -R root:nagios /etc/snmp
chmod -R ug+rw /etc/snmpBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Can't Upload MIB's / SNMP Trap
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.
Thank you for the very quick response and solution. Issue is solved.