ISSUE WHILE UPLOADING MIBS
-
ericssonvietnam
- Posts: 239
- Joined: Mon Jun 27, 2016 11:05 pm
ISSUE WHILE UPLOADING MIBS
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.
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.
Re: ISSUE WHILE UPLOADING MIBS
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
Attached are MIBScdienger wrote:Please attach a copy of the MIB you are trying to upload.
You do not have the required permissions to view the files attached to this post.
Re: ISSUE WHILE UPLOADING MIBS
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 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
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.
Re: ISSUE WHILE UPLOADING MIBS
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.
Then try and upload the MIB files again and let us know is it works or not.
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/snmpBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: ISSUE WHILE UPLOADING MIBS
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.
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:
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?
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.
https://assets.nagios.com/downloads/nag ... NGES-5.TXT- Fixed initial install mib directory permissions [TPS#11526] -JO
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/
./upgradeCode: Select all
grep upload_max_filesize /etc/php.iniBe 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
Below is the output of the command and my tar file size is greater than 3M can you suggest how much should increase it.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.https://assets.nagios.com/downloads/nag ... NGES-5.TXT- Fixed initial install mib directory permissions [TPS#11526] -JO
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: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
cd /tmp/nagiosxi/ ./upgradeCode: Select all
grep upload_max_filesize /etc/php.ini
[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
Try doubling the value:
then restart apache:
Let us know if this helped.
Code: Select all
upload_max_filesize = 4MCode: Select all
service httpd restartBe 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
Got the message apr_sockaddr_info_get() failed for nagiosxi which i do not usually get after restarting httpd service can you suggest.lmiltchev wrote:Try doubling the value:then restart apache:Code: Select all
upload_max_filesize = 4MLet us know if this helped.Code: Select all
service httpd restart
[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