Page 3 of 3

Re: snmptt not expanding the mib variables properly

Posted: Wed Mar 11, 2015 11:01 am
by tmcdonald
We've received your ticket so I will be locking this thread for the time-being.

Re: snmptt not expanding the mib variables properly

Posted: Thu Mar 12, 2015 4:06 pm
by Box293
We resolved this problem so I am posting the answer as it may help others in the future.

snmptt was caching the translations.

In /etc/snmp/snmptt.ini

Code: Select all

# Set to 1 to enable caching of OID and ENUM translations when net_snmp_perl_enable is
# enabled.  Enabling this should result in faster translations.
# Set to 0 to disable caching.
# Note: Restart SNMPTT after updating the MIB files for Net-SNMP, otherwise the cache may
# contain inaccurate data.  Defaults to 1.
net_snmp_perl_cache_enable = 0
Then

Code: Select all

service restart snmptt
Setting to 0 fixed the problem.

What tipped me off to this was I needed to enable debug logging for SNMPTT. Once we did this we were able to see this in the logs:

First trap received:

Code: Select all

OID of trap: .1.3.6.1.4.1.881.4.3.10.2.0.5.  Will attempt to translate to text
  Translated to sbdBaggage
Second trap received:

Code: Select all

OID of trap: .1.3.6.1.4.1.881.4.3.10.2.0.5.  Will attempt to translate to text
    OID found in cache:  '.1.3.6.1.4.1.881.4.3.10.2.0.5' -> 'sbdBaggage'
  Translated to sbdBaggage