snmptt not expanding the mib variables properly
Re: snmptt not expanding the mib variables properly
We've received your ticket so I will be locking this thread for the time-being.
Former Nagios employee
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: snmptt not expanding the mib variables properly
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
Then
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:
Second trap received:
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 = 0Code: Select all
service restart snmpttWhat 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 sbdBaggageCode: 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 sbdBaggageAs of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.