Page 1 of 2

ISSUE WHILE UPLOADING MIBS

Posted: Fri May 05, 2017 6:06 pm
by ericssonvietnam
We are getting the below message while we are using process trap while uploading MIBS

Failed to convert uploaded file to snmptt mib. (rc: 13)

Attached the screenshot for your reference.


Let me know the process to upload and process mibs manually as well.

Re: ISSUE WHILE UPLOADING MIBS

Posted: Mon May 08, 2017 9:20 am
by cdienger
Please attach a copy of the MIB you are trying to upload.

Re: ISSUE WHILE UPLOADING MIBS

Posted: Wed May 10, 2017 4:29 pm
by ericssonvietnam
cdienger wrote:Please attach a copy of the MIB you are trying to upload.
Attached are MIBS

Re: ISSUE WHILE UPLOADING MIBS

Posted: Wed May 10, 2017 4:51 pm
by tgriep
I took a look at those files and the formatting of them is corrupted and look like there are missing sections / includes and that is why they cannot be added to the system.
I suggest going to the Manufacturers site and see if you can download new copies of the files and see they can be uploaded to the Nagios XI server.

Re: ISSUE WHILE UPLOADING MIBS

Posted: Mon Jun 19, 2017 1:53 pm
by ericssonvietnam
tgriep wrote:I took a look at those files and the formatting of them is corrupted and look like there are missing sections / includes and that is why they cannot be added to the system.
I suggest going to the Manufacturers site and see if you can download new copies of the files and see they can be uploaded to the Nagios XI server.

I have been provided with the updated MIB in tar attaching the same.

But i am getting MIB could not be installed - directory permissions may be incorrect.

Can you let me know what i need to change

I have extracted the tar
than i used the command chmod -R 777 *
than again created the tar tar -cvf newmib.tar ext/*

Re: ISSUE WHILE UPLOADING MIBS

Posted: Mon Jun 19, 2017 2:11 pm
by tgriep
Run the following as root on the Nagios server to make sure the file and folder permissions are set correctly when uploading the MIB files.

Code: Select all

chown -R root:nagios /usr/share/snmp/mibs
chmod -R ug+rw /usr/share/snmp/mibs
chown -R root:nagios /etc/snmp
chmod -R ug+rw /etc/snmp
Then try and upload the MIB files again and let us know is it works or not.

Re: ISSUE WHILE UPLOADING MIBS

Posted: Mon Jun 19, 2017 2:14 pm
by lmiltchev
There could be 2 possible issues:

1. If you are using RHEL/CentOS 7 with Nagios XI, older than 5.4.4, you are probably hitting a bug that was fixed in the latest release. I would recommend upgrading to the latest.
- Fixed initial install mib directory permissions [TPS#11526] -JO
https://assets.nagios.com/downloads/nag ... NGES-5.TXT

Note: If you are already using the latest version of XI, try running the upgrade script to see if this is going to fix the issue:

Code: Select all

cd /tmp/nagiosxi/
./upgrade
2. The MIB may be too large. You may need to up the "upload_max_filesize" value in the php.ini file. What is the current value that you have?

Code: Select all

grep upload_max_filesize /etc/php.ini

Re: ISSUE WHILE UPLOADING MIBS

Posted: Mon Jun 19, 2017 2:38 pm
by ericssonvietnam
lmiltchev wrote:There could be 2 possible issues:

1. If you are using RHEL/CentOS 7 with Nagios XI, older than 5.4.4, you are probably hitting a bug that was fixed in the latest release. I would recommend upgrading to the latest.
- Fixed initial install mib directory permissions [TPS#11526] -JO
https://assets.nagios.com/downloads/nag ... NGES-5.TXT

Note: If you are already using the latest version of XI, try running the upgrade script to see if this is going to fix the issue:

Code: Select all

cd /tmp/nagiosxi/
./upgrade
2. The MIB may be too large. You may need to up the "upload_max_filesize" value in the php.ini file. What is the current value that you have?

Code: Select all

grep upload_max_filesize /etc/php.ini
Below is the output of the command and my tar file size is greater than 3M can you suggest how much should increase it.

[root@nagiosxi ~]# grep upload_max_filesize /etc/php.ini
upload_max_filesize = 2M

What services do i need to restart after updating the limit.

Re: ISSUE WHILE UPLOADING MIBS

Posted: Mon Jun 19, 2017 2:52 pm
by lmiltchev
Try doubling the value:

Code: Select all

upload_max_filesize = 4M
then restart apache:

Code: Select all

service httpd restart
Let us know if this helped.

Re: ISSUE WHILE UPLOADING MIBS

Posted: Mon Jun 19, 2017 3:44 pm
by ericssonvietnam
lmiltchev wrote:Try doubling the value:

Code: Select all

upload_max_filesize = 4M
then restart apache:

Code: Select all

service httpd restart
Let us know if this helped.
Got the message apr_sockaddr_info_get() failed for nagiosxi which i do not usually get after restarting httpd service can you suggest.

[root@nagiosxi NEWMIBS]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: httpd: apr_sockaddr_info_get() failed for nagiosxi
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[ OK ]

But still status is running for httpd


I which configuration file should i check for the processed mibs.
I have the below configuration in the ini file /etc/snmp/snmptt.ini
[TrapFiles]
# A list of snmptt.conf files (this is NOT the snmptrapd.conf file). The COMPLETE path
# and filename. Ex: '/etc/snmp/snmptt.conf'
snmptt_conf_files = <<END
/etc/snmp/VNM_snmptt.conf
END

Do i require to restart the snmptt service