First off install the net-snmp things:
sudo yum install net-snmp net-snmp-utils
After that it will run out of the box with the command:
sudo snmptrapd -A -d -n -Lf trap.log
Some interesting links:
<a class="fixed" href="http://net-snmp.sourceforge.net/wiki/index.php/TUT:snmptrap" target="_blank">http://net-snmp.sourceforge.net/wiki/index.php/TUT:snmptrap
<a class="fixed" href="http://net-snmp.sourceforge.net/wiki/index.php/TUT:Configuring_snmptrapd#Matching_SNMPv2_OIDs" target="_blank">http://net-snmp.sourceforge.net/wiki/index.php/TUT:Configuring_snmptrapd#Matching_SNMPv2_OIDs
<a class="fixed" href="http://www.net-snmp.org/tutorial/tutorial-5/commands/snmptrap.html" target="_blank">http://www.net-snmp.org/tutorial/tutorial-5/commands/snmptrap.html