Page 1 of 1
Cannot upload MIBs
Posted: Wed Jul 31, 2019 3:18 pm
by vmesquita
Hi,
I am getting this error when trying to upload a MIB via the Manage MIBs interface:
"MIB could not be installed. Directory permissions may not be correct. Check that /usr/share/snmp/mibs is writable by the nagios group."
I tried the fix described here:
https://support.nagios.com/kb/article/n ... s-575.html
With no success. Anythingelse I could try?
Re: Cannot upload MIBs
Posted: Wed Jul 31, 2019 3:55 pm
by tgriep
Can you run the following commands as root and post the /tmp/info.txt file here?
Code: Select all
ls -alR /usr/share/snmp >/tmp/info.txt
ls -alR /etc/snmp >>/tmp/info.txt
chage -l >>/tmp/info.txt
grep nag /etc/group >>/tmp/info.txt
Run this as root in a shell
Upload a MIB file to the system and post any errors displayed in the shell running the tail command.
Re: Cannot upload MIBs
Posted: Thu Aug 01, 2019 12:27 pm
by vmesquita
I attached the results to this message.
Re: Cannot upload MIBs
Posted: Thu Aug 01, 2019 3:28 pm
by tgriep
I see a folder permission error in the tail command for the nagiosxi tmp folder and to fix it, run this.
Code: Select all
chown -R nagios.nagios /usr/local/nagiosxi/tmp
chmod -R 775 /usr/local/nagiosxi/tmp
The upload puts the file in that folder so it can process it so see if that fixes the issue.
Re: Cannot upload MIBs
Posted: Fri Aug 02, 2019 9:59 am
by vmesquita
Still no working. However I noticed something interesting. If I click on the "Upload MIBs" button even without selecting any MIB to upload, I get exactly the same error message.
Re: Cannot upload MIBs
Posted: Fri Aug 02, 2019 12:48 pm
by tgriep
Run this command again as root in a shell
Upload a MIB file to the system and post any errors displayed in the shell running the tail command.
Run the following commands as root and post the /tmp/info.txt file here.
Code: Select all
ls -alR /usr/local/nagiosxi >/tmp/info.txt
grep nag /etc/group >>/tmp/info.txt
Thanks
Re: Cannot upload MIBs
Posted: Fri Aug 02, 2019 1:28 pm
by vmesquita
Here's the results.
Re: Cannot upload MIBs
Posted: Fri Aug 02, 2019 2:05 pm
by tgriep
What version of Nagios XI are you running?
What OS and release is the server running?
Can you upload the MIB file in case the problem is with the file itself?
Your apache entry in the /etc/group file is missing the users.
Edit the /etc/group file and search for the apache entry and put in the nagios and the apache user like the example below.
Try the upload again.
Re: Cannot upload MIBs
Posted: Tue Aug 06, 2019 8:42 am
by vmesquita
Hello!
The change in /etc/groups apparently fixed the issue. Thanks!
Re: Cannot upload MIBs
Posted: Tue Aug 06, 2019 11:27 am
by mbellerue
Glad to hear it's working! Closing thread.