"MIB could not be installed"

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
kcarlson
Posts: 56
Joined: Thu Oct 20, 2016 9:17 am

"MIB could not be installed"

Post 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!
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: "MIB could not be installed"

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
kcarlson
Posts: 56
Joined: Thu Oct 20, 2016 9:17 am

Re: "MIB could not be installed"

Post 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!
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: "MIB could not be installed"

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
kcarlson
Posts: 56
Joined: Thu Oct 20, 2016 9:17 am

Re: "MIB could not be installed"

Post by kcarlson »

We are running 5.8.6 of XI and the server is running CentOS 7.

/tmp/info.txt should be attached.

Thanks
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: "MIB could not be installed"

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
kcarlson
Posts: 56
Joined: Thu Oct 20, 2016 9:17 am

Re: "MIB could not be installed"

Post by kcarlson »

Your last suggestion appears to have fixed my issue. Thank you for your time.

Thanks!
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: "MIB could not be installed"

Post by tgriep »

Your welcome. Glad it is all working for you now.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked