Page 1 of 1
"MIB could not be installed"
Posted: Wed Oct 27, 2021 2:40 pm
by kcarlson
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!
Re: "MIB could not be installed"
Posted: Thu Oct 28, 2021 8:53 am
by tgriep
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.
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/*
Then see if you can add the MIB file to the XI server.
Thank you.
Re: "MIB could not be installed"
Posted: Thu Oct 28, 2021 9:59 am
by kcarlson
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!
Re: "MIB could not be installed"
Posted: Thu Oct 28, 2021 12:17 pm
by tgriep
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.
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.txt
Thank you.
Re: "MIB could not be installed"
Posted: Thu Oct 28, 2021 1:11 pm
by kcarlson
We are running 5.8.6 of XI and the server is running CentOS 7.
/tmp/info.txt should be attached.
Thanks
Re: "MIB could not be installed"
Posted: Fri Oct 29, 2021 9:22 am
by tgriep
There are some additional permission changes that need to be done.
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_mibs
Then see if you can upload the MIB file.
Thank you.
Re: "MIB could not be installed"
Posted: Mon Nov 01, 2021 10:10 am
by kcarlson
Your last suggestion appears to have fixed my issue. Thank you for your time.
Thanks!
Re: "MIB could not be installed"
Posted: Mon Nov 01, 2021 12:32 pm
by tgriep
Your welcome. Glad it is all working for you now.