ISSUE WHILE UPLOADING MIBS

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
ericssonvietnam
Posts: 239
Joined: Mon Jun 27, 2016 11:05 pm

ISSUE WHILE UPLOADING MIBS

Post 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.
You do not have the required permissions to view the files attached to this post.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: ISSUE WHILE UPLOADING MIBS

Post by cdienger »

Please attach a copy of the MIB you are trying to upload.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
ericssonvietnam
Posts: 239
Joined: Mon Jun 27, 2016 11:05 pm

Re: ISSUE WHILE UPLOADING MIBS

Post by ericssonvietnam »

cdienger wrote:Please attach a copy of the MIB you are trying to upload.
Attached are MIBS
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: ISSUE WHILE UPLOADING MIBS

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
ericssonvietnam
Posts: 239
Joined: Mon Jun 27, 2016 11:05 pm

Re: ISSUE WHILE UPLOADING MIBS

Post 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/*
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: ISSUE WHILE UPLOADING MIBS

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: ISSUE WHILE UPLOADING MIBS

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
ericssonvietnam
Posts: 239
Joined: Mon Jun 27, 2016 11:05 pm

Re: ISSUE WHILE UPLOADING MIBS

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: ISSUE WHILE UPLOADING MIBS

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
ericssonvietnam
Posts: 239
Joined: Mon Jun 27, 2016 11:05 pm

Re: ISSUE WHILE UPLOADING MIBS

Post 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
Locked