Unable to import MIB on xi 5.6.10

This support forum board is for support questions relating to Nagios xi, our flagship commercial network monitoring solution.
hbouma
Posts: 483
Joined: Tue Feb 27, 2018 9:31 am

Unable to import MIB on xi 5.6.10

Post by hbouma »

We are running Nagios xi 5.6.10 on RHEL 7.9 64bit VM's. When I try to upload the attached MIB from Infinidat, the system tells me that the upload failed.

I don't see anything wrong with the MIB itself, but I just can't figure out why Nagios xi will not import the MIB.
You do not have the required permissions to view the files attached to this post.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Unable to import MIB on xi 5.6.10

Post by ssax »

What does the full error show that is says in the web interface? Does it say anything about the enterprise license?

Do you have "Check this box if this server uses the SNMP Trap Interface." checked in Admin > Manage MIBs?

It's likely permissions related, please send the output of these commands:

Code: Select all

ls -ld /usr/local/nagiosxi/tmp
ls -l /usr/local/nagiosxi/tmp
ls -d /usr/share/snmp/mibs
ls -l /usr/share/snmp/mibs
ls -ld /etc/snmp
ls -l /etc/snmp
grep nag /etc/group
df -h
df -i
hbouma
Posts: 483
Joined: Tue Feb 27, 2018 9:31 am

Re: Unable to import MIB on xi 5.6.10

Post by hbouma »

Here is what we get:
2021-02-05 15_42_08-Administration · Nagios xi.png
UID removed per IT Security requirement.

Code: Select all

ls -ld /usr/local/nagiosxi/tmp
drwsrwsr-x. 2 root nagios 4096 Feb  5 05:06 /usr/local/nagiosxi/tmp

ls -l /usr/local/nagiosxi/tmp
-rw-r--r-- 1 apache nagios   6820 Jan 26 08:41 components_api_versions.xml
-rw-r--r-- 1 nagios nagios  82016 Jan 26 08:40 configwizard-docker.zip
-rw-r--r-- 1 apache nagios  11221 Jan 26 08:40 configwizards_api_versions.xml
-rw-r--r-- 1 apache nagios 221206 Mar 27  2020 exportreport-hbouma-5e7dfd0182256
-rwxrwxr-- 1 nagios nagios   3497 Oct 28  2018 phpmailer.log
-rwxrwxr-- 1 nagios nagios   5691 Jun  5  2019 snmpwalk--172.24.18.38
-rwxrwxr-- 1 nagios nagios   5691 Jun  5  2019 snmpwalk-mib-2.interfaces-172.24.18.38

ls -d /usr/share/snmp/mibs
drwxr-xr-x. 3 root root 4096 Feb  5 08:42 /usr/share/snmp/mibs


ls -l /usr/share/snmp/mibs
Everything owned by root:root with 644 permissions

ls -ld /etc/snmp
drwxr-xr-x. 3 root root 4096 Dec 19 03:16 /etc/snmp

ls -l /etc/snmp
-rw-rw-r--  1 snmptt nagios     0 Feb  5 15:39 nagios-check-storage
-rw-------  1 root   root   18861 Nov 11 07:27 snmpd.conf
-rw--w----. 1 root   root      68 Aug  7  2018 snmptrapd.conf
-rw-rw-r--  1 root   nagios 49866 Nov  7  2018 snmptt.conf
-rw-rw-r--  1 root   nagios 45619 Feb  5 08:33 snmptt.conf.nxti
-rw-rw-r--  1 root   nagios 26348 Nov  7  2018 snmptt.ini
-rw-rw-r--  1 root   root   26305 Jul 23  2018 snmptt.ini.bak
-rw-r--r--  1 root   root   26302 Jul 23  2020 snmptt.ini.rpmnew
-rw-rw-r--  1 root   nagios 45025 Feb  5 08:33 snmptt_nxti.bak
drwxr-xr-x  2 apache apache  4096 Nov  7  2018 tmp

grep nag /etc/group
nagios:x:XXXX:nagios,apache,snmptt
nagcmd:x:XXXX:nagios,apache,snmptt

df -h
Nothing over 60% full

df -i
Nothing over 38% full
You do not have the required permissions to view the files attached to this post.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Unable to import MIB on xi 5.6.10

Post by ssax »

Please run these commands and then test again:

Code: Select all

mkdir /usr/local/nagiosxi/tmp/mibs
chown nagios.nagios /usr/local/nagiosxi/tmp/mibs
chmod 2775 /usr/local/nagiosxi/tmp/mibs
chown -R root.nagios /usr/share/snmp/mibs
chmod 2775 /usr/share/snmp/mibs
chmod 0664 /usr/share/snmp/mibs/*
service httpd restart
hbouma
Posts: 483
Joined: Tue Feb 27, 2018 9:31 am

Re: Unable to import MIB on xi 5.6.10

Post by hbouma »

That fixed it. Thank you!
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Unable to import MIB on xi 5.6.10

Post by benjaminsmith »

Hi Henry,

Great. We'll go ahead and mark this as resolved.
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!