snmptt not expanding the mib variables properly

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: snmptt not expanding the mib variables properly

Post by tmcdonald »

We've received your ticket so I will be locking this thread for the time-being.
Former Nagios employee
User avatar
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

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked