Cannot upload MIBs
Cannot upload MIBs
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?
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
Can you run the following commands as root and post the /tmp/info.txt file here?
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.
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.txtRun this as root in a shell
Code: Select all
tail -f /var/log/httpd/*_logBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Cannot upload MIBs
I attached the results to this message.
You do not have the required permissions to view the files attached to this post.
Re: Cannot upload MIBs
I see a folder permission error in the tail command for the nagiosxi tmp folder and to fix it, run this.
The upload puts the file in that folder so it can process it so see if that fixes the issue.
Code: Select all
chown -R nagios.nagios /usr/local/nagiosxi/tmp
chmod -R 775 /usr/local/nagiosxi/tmp
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Cannot upload MIBs
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
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.
Thanks
Code: Select all
tail -f /var/log/httpd/*_logRun 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.txtBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Cannot upload MIBs
Here's the results.
You do not have the required permissions to view the files attached to this post.
Re: Cannot upload MIBs
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.
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
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Cannot upload MIBs
Hello!
The change in /etc/groups apparently fixed the issue. Thanks!
The change in /etc/groups apparently fixed the issue. Thanks!
Re: Cannot upload MIBs
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!
Be sure to check out our Knowledgebase for helpful articles and solutions!