The SNMPTT checks the incoming traps against existing trap definitions. If the incoming trap matches an incoming definition, it passes the trap to Nagios XI, where the trap receives standard Nagios treatment:
Event is logged
Alert is generated
Notifications/Event Handlers (or both) occur.
If the incoming trap does not match an incoming definition, the trap is sent to the Unknown Trap Log
◦ Unconfigured Objects are handled with the SNMP Trap Wizard
Defining Traps
We can create the trap definitions in two ways.
We can create it from a MIB we upload to Nagios XI
In a case where either no MIB exists, or the existing MIB does not define a required trap, we can define the trap in the etc/snmp/snmptt.conf file
Also, this is how we can define custom/complex trap
echatspin echatrandom definitions