Hello, trying to load various MIBs using the manager within the XI web interface. Every attempt gives me the error that the mib could not be installed. Looking at /var/log/httpd/error_log I see some permissions errors related to my mibs. When performing a 'ls -l' on the file in question I show:
-rwxrwxrwx. 1 nagios nagios 46941 Sep 13 09:09 /usr/local/nagiosxi/html/admin/mibs.php
I have attached the output of the permissions errors when viewing the httpd error log. Any help getting this resolved would be appreciated. I can also provide the MIB(s) I am trying to load if that is helpful.
Thanks!
"MIB could not be installed"
"MIB could not be installed"
You do not have the required permissions to view the files attached to this post.
Re: "MIB could not be installed"
The permissions to the folder where the php script is copying the files is probably causing the issue.
To set the permissions, run the following as root.
Then see if you can add the MIB file to the XI server.
Thank you.
To set the permissions, run the following as root.
Code: Select all
chown root.nagios /usr/share/snmp/mibs
chmod 0664 /usr/share/snmp/mibs
chmod g+s /usr/share/snmp/mibs
chown root.nagios /usr/share/snmp/mibs/*
chmod 0664 /usr/share/snmp/mibs/*Thank you.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: "MIB could not be installed"
Hello,
Thank you for the quick reply. I have performed the changes you suggested but am still unable to load a MIB. I have attached the most recent results of the httpd error log.
Also, after making those changes we received a "problem service alert" notifying us of the following:
External command error: /usr/share/snmp/mibs/E7-Calix-MIB.txt: Permission denied
Date/Time: 2021-10-28 09:50:40
Thanks!
Thank you for the quick reply. I have performed the changes you suggested but am still unable to load a MIB. I have attached the most recent results of the httpd error log.
Also, after making those changes we received a "problem service alert" notifying us of the following:
External command error: /usr/share/snmp/mibs/E7-Calix-MIB.txt: Permission denied
Date/Time: 2021-10-28 09:50:40
Thanks!
You do not have the required permissions to view the files attached to this post.
Re: "MIB could not be installed"
What version of XI is the server running and what is the OS and release of the system?
Open a root shell on the Nagios server, run the following commands and post the /tmp/info.txt file to the ticket.
Thank you.
Open a root shell on the Nagios server, run the following commands and post the /tmp/info.txt file to the ticket.
Code: Select all
chage -l nagios >/tmp/info.txt
df -h >>/tmp/info.txt
df -i >>/tmp/info.txt
grep nag /etc/group >>/tmp/info.txt
ls -l /tmp >>/tmp/info.txt
ls -lR /usr/share/snmp >>/tmp/info.txtBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: "MIB could not be installed"
We are running 5.8.6 of XI and the server is running CentOS 7.
/tmp/info.txt should be attached.
Thanks
/tmp/info.txt should be attached.
Thanks
You do not have the required permissions to view the files attached to this post.
Re: "MIB could not be installed"
There are some additional permission changes that need to be done.
Run this as root.
Then see if you can upload the MIB file.
Thank you.
Run this as root.
Code: Select all
chmod 0775 /usr/share/snmp/mibs
chmod g+s /usr/share/snmp/mibs
chmod 0775 /usr/share/snmp/mibs/processed_mibs
chmod g+s /usr/share/snmp/mibs/processed_mibsThank you.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: "MIB could not be installed"
Your last suggestion appears to have fixed my issue. Thank you for your time.
Thanks!
Thanks!
Re: "MIB could not be installed"
Your welcome. Glad it is all working for you now.
Be sure to check out our Knowledgebase for helpful articles and solutions!