Page 1 of 1

SNMP and MIB import issue

Posted: Thu Jan 26, 2017 9:30 am
by dshearon
I am having an issue trying to configure SNMP traps for our new phone system. I was given the MIB file attached and when I go to import and set it to process trap I get this message (Failed to convert uploaded file to snmptt mib. (rc: 13)). The MIB is added and when I run the addmib command from the console I get zero errors. The traps are hitting the Nagios server but are logged as unknown traps. Any help or suggestions would be appreciated.

***attachment extension renamed from .mib to .txt

Re: SNMP and MIB import issue

Posted: Thu Jan 26, 2017 12:17 pm
by tgriep
The upload error when trying to add the MIB file using the XI GUI could be caused by a permmission issues with the files / folders the MIB file is uploaded to.
Can you run the following commands and post the output so we can check the permissions?

Code: Select all

ls -alr /etc/snmp
ls -alr /usr/share/snmp/mibs
When you ran the addmib command, this should add the settings to the /etc/snmp/snmptt.conf file for your device.
Take a look at that file and see if the settings are there. If they are, you will have to restart the snmptt daemon after running the addmib command.
Run this as root to do that

Code: Select all

service snmptt restart
Then the next time a trap is received, you will have to configure it in the XI GUI by going to the Admin > Unconfigured Objects menu.
Let us know how it works out.

Re: SNMP and MIB import issue

Posted: Thu Jan 26, 2017 4:36 pm
by dshearon
The results are below. I tried bouncing the service and it made no change. Looking at the snmpttunknown.log I can see where it hits the server with both the host name and ip but shows a unknown trap. I checked unconfigured objects and there is nothing in there related to the sender.



-rw-rw-r-- 1 apache nagios 26343 Jan 11 11:54 snmptt.ini
-rw-rw-r-- 1 root nagios 33478 Jan 25 11:45 snmptt.conf
-rw--w---- 1 root root 68 Sep 21 16:44 snmptrapd.conf
-rw--w---- 1 root root 18861 Aug 23 14:47 snmpd.conf
drwxr-xr-x. 85 root root 4096 Jan 19 15:39 ..
drwxrwxr-x. 2 root nagios 4096 Jan 11 11:54 .






-rw-rw-r-- 1 apache nagios 4665 Jan 25 11:43 i3icstatalertserver.mib
-rw-rw-r-- 1 apache nagios 7945 Jan 25 11:31 i3icsessionmanager.mib
-rw-rw-r-- 1 apache nagios 28805 Jan 26 09:26 i3ic.mib
-rw-rw-r-- 1 root nagios 10583 Aug 23 14:47 HOST-RESOURCES-TYPES.txt

Re: SNMP and MIB import issue

Posted: Thu Jan 26, 2017 5:20 pm
by avandemore
Please attach the file snmpttunknown.log

Re: SNMP and MIB import issue

Posted: Thu Jan 26, 2017 5:21 pm
by tgriep
Can you post the following files so I can view them?

Code: Select all

/etc/snmp/snmptt.conf
/etc/snmp/snmptt.ini
Also post one of the entries from the snmpttunknown.log file so I can see the entry.

Re: SNMP and MIB import issue

Posted: Thu Jan 26, 2017 5:29 pm
by dshearon
Here is one of the traps with some sensitive info removed. The files you asked about are attached.

Thu Jan 26 16:26:25 2017: Unknown trap (.1.3.6.1.4.1.2793.2.5.1) received from scltitvcorpcic1.xxxxxxxx.xxxxxxx.xxx at:
Value 0: scltitvcorpcic1.xxxxxxx.xxxxxx.xxx
Value 1: 10.66.xx.xx
Value 2: 15:4:36:05.86
Value 3: .1.3.6.1.4.1.2793.2.5.1
Value 4: 10.66.xx.xx
Value 5:
Value 6:
Value 7:
Value 8:
Value 9:
Value 10:
Ent Value 0: .1.3.6.1.4.1.2793.2.4.1.0=10
Ent Value 1: .1.3.6.1.4.1.2793.2.4.2.0=1

Re: SNMP and MIB import issue

Posted: Fri Jan 27, 2017 9:22 am
by tgriep
I looked at your MIB file and the OID from the unknown log file is not in that mib file.
If it is not in that file, the addmib program did not add it to the snmptt.conf file so if it is not in there, the snmptt daemon cannot translate it and it is unknown.
See if you can contact the manufacturer of the device to see if you can get an updated MIB file with that OID in it.