Cannot upload MIBs

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
vmesquita
Posts: 315
Joined: Fri Aug 10, 2012 12:52 pm

Cannot upload MIBs

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

Re: Cannot upload MIBs

Post 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

Code: Select all

tail -f /var/log/httpd/*_log
Upload a MIB file to the system and post any errors displayed in the shell running the tail command.
Be sure to check out our Knowledgebase for helpful articles and solutions!
vmesquita
Posts: 315
Joined: Fri Aug 10, 2012 12:52 pm

Re: Cannot upload MIBs

Post by vmesquita »

I attached the results to this message.
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Cannot upload MIBs

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
vmesquita
Posts: 315
Joined: Fri Aug 10, 2012 12:52 pm

Re: Cannot upload MIBs

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

Re: Cannot upload MIBs

Post by tgriep »

Run this command again as root in a shell

Code: Select all

tail -f /var/log/httpd/*_log
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
Be sure to check out our Knowledgebase for helpful articles and solutions!
vmesquita
Posts: 315
Joined: Fri Aug 10, 2012 12:52 pm

Re: Cannot upload MIBs

Post by vmesquita »

Here's the results.
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Cannot upload MIBs

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

Code: Select all

apache:x:48:nagios,apache
Try the upload again.
Be sure to check out our Knowledgebase for helpful articles and solutions!
vmesquita
Posts: 315
Joined: Fri Aug 10, 2012 12:52 pm

Re: Cannot upload MIBs

Post by vmesquita »

Hello!

The change in /etc/groups apparently fixed the issue. Thanks!
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: Cannot upload MIBs

Post by mbellerue »

Glad to hear it's working! Closing thread.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked