Linux define snmp trap add the trap destination
On the Linux® operating system, administrators should open
the file /etc/snmp/snmpd.conf and add this entry: trapsink
ip_address community_name. To restart the SNMP service, enter
service snmpd restart.
vi /etc/init.d/snmptrapd
OPTIONS="-A -Lfd -p /var/run/snmptrapd.pid"
vi /etc/snmp/snmptrapd.conf
authCommunity log,execute,net public
logOption f /var/log/snmptrapd.log