snmpv3 traps - snmptt unable to find a match in MIB
Posted: Wed Mar 05, 2014 8:46 am
Hi,
An snmpv3 'coldStart' trap is sent from a remote machine to Nagios monitoring server. The snmptt debug file says that a match for this trap is not available in the MIB though the MIB has an entry for coldStart. Hence the trap is not captured by Nagios TRAP service. But, if we execute the snmptt.conf file's EXEC command(based on submit_check_result plugin) directly from command line, the same gets updated in Nagios TRAP service panel.
snmptt.conf entry for coldStart
--------------------------------------------
EVENT coldStart .1.3.6.1.6.3.1.1.5.1 "Status Events" Normal
FORMAT A coldStart trap signifies that the SNMP entity, $*
EXEC /usr/local/nagios/libexec/eventhandlers/submit_check_result localhost TRAP 3 "test2"
SDESC
A coldStart trap signifies that the SNMP entity,
supporting a notification originator application, is
reinitializing itself and that its configuration may
have been altered.
Variables:
EDESC
MIB entry for coldStart from @ /usr/local/share/snmp/mibs
-----------------------------------------------------------------------------------
coldStart NOTIFICATION-TYPE
STATUS current
DESCRIPTION
"A coldStart trap signifies that the SNMP entity,
supporting a notification originator application, is
reinitializing itself and that its configuration may
have been altered."
::= { snmpTraps 1 }
snmpv3 trap format
--------------------------
snmptrap -e 0x0102030405 -v 3 -u testuser -a MD5 -A testuser123 -l authNoPriv 192.168.1.35 42 coldStart.0 (we tried with OID as well, instead of 'coldStart')
Excerpt from snmptt.debug file
-------------------------------------------
Exact match of trap NOT found in EVENT hash table
Looking for wildcards in the EVENT hash table
Drilling down looking for wildcards in the EVENT hash table
SNMPv2-MIB::coldStart.*
Drilling down looking for wildcards in the EVENT hash table
SNMPv2-MIB::coldStart.*
Drilling down looking for wildcards in the EVENT hash table
SNMPv2-MIB::coldStart.*
Drilling down looking for wildcards in the EVENT hash table
SNMPv2-MIB::coldStart.*
Drilling down looking for wildcards in the EVENT hash table
SNMPv2-MIB::coldStart.*
This causes traps to be logged as UNKNOWN in NSTI as well. Please help us in fixing the issue.
An snmpv3 'coldStart' trap is sent from a remote machine to Nagios monitoring server. The snmptt debug file says that a match for this trap is not available in the MIB though the MIB has an entry for coldStart. Hence the trap is not captured by Nagios TRAP service. But, if we execute the snmptt.conf file's EXEC command(based on submit_check_result plugin) directly from command line, the same gets updated in Nagios TRAP service panel.
snmptt.conf entry for coldStart
--------------------------------------------
EVENT coldStart .1.3.6.1.6.3.1.1.5.1 "Status Events" Normal
FORMAT A coldStart trap signifies that the SNMP entity, $*
EXEC /usr/local/nagios/libexec/eventhandlers/submit_check_result localhost TRAP 3 "test2"
SDESC
A coldStart trap signifies that the SNMP entity,
supporting a notification originator application, is
reinitializing itself and that its configuration may
have been altered.
Variables:
EDESC
MIB entry for coldStart from @ /usr/local/share/snmp/mibs
-----------------------------------------------------------------------------------
coldStart NOTIFICATION-TYPE
STATUS current
DESCRIPTION
"A coldStart trap signifies that the SNMP entity,
supporting a notification originator application, is
reinitializing itself and that its configuration may
have been altered."
::= { snmpTraps 1 }
snmpv3 trap format
--------------------------
snmptrap -e 0x0102030405 -v 3 -u testuser -a MD5 -A testuser123 -l authNoPriv 192.168.1.35 42 coldStart.0 (we tried with OID as well, instead of 'coldStart')
Excerpt from snmptt.debug file
-------------------------------------------
Exact match of trap NOT found in EVENT hash table
Looking for wildcards in the EVENT hash table
Drilling down looking for wildcards in the EVENT hash table
SNMPv2-MIB::coldStart.*
Drilling down looking for wildcards in the EVENT hash table
SNMPv2-MIB::coldStart.*
Drilling down looking for wildcards in the EVENT hash table
SNMPv2-MIB::coldStart.*
Drilling down looking for wildcards in the EVENT hash table
SNMPv2-MIB::coldStart.*
Drilling down looking for wildcards in the EVENT hash table
SNMPv2-MIB::coldStart.*
This causes traps to be logged as UNKNOWN in NSTI as well. Please help us in fixing the issue.