snmp-trap-listener-in-node-part2

Get your system to build traps

The first step is to start generating traps in your test environment. I'm borrowing a lot of this on How to create a test trap

First we need to install net-snmp-utils. This will give us a few command line tools and make sure the corresponding libraries are available. Now you should be able to type in snmptrap command and get a usage listing.

STEP 1

To install you do:

$ sudo yum install net-snmp-utils net-snmp-devel

STEP 2

I'm not sure what test traps you have installed on the server so the next step is to create a test trap. To create a test trap is to we need to generate a mib file. On Fedora systems you will find these in the /usr/share/snmp/mibs directory.

If you want to confirm the directory run net-snmp-config --snmpconfpath to see the path of where mib files are searched for.