Page History
...
Below is a diagram depicting the process:
Install Net-SNMP and Perl
- Download Net-SNMP from https://sourceforge.net/projects/net-snmp/files/net-snmp%20binaries/5.6.1.1-binaries/net-snmp-5.6.1.1-1.x86.exe/download.
- Download Strawberry Perl from http://strawberryperl.com/download/5.20.1.1/strawberry-perl-5.20.1.1-64bit.msi.
- Execute the Net-SNMP installer and accept the defaults.
- Execute the Strawberry Perl installer and accept the defaults
Create a snmptrapd configuration file and Perl script
- Create a new file called snmptrapd.conf in the C:\usr\etc\snmp directory with contents similar to the following. Note that "public" on the first line is the SNMP community string. Feel free to change accordingly, and the path to UIM on the second line should be changed accordingly.
Code Block language sql authCommunity log,execute,net public traphandle default C:\Strawberry\perl\bin\perl.exe "C:\Program Files\uptime software\uptime\scripts\snmp- trap-script\trap_to_ext_event.pl"
- In the Start menu, select the Net-SNMP folder, right click Register Trap Service and choose Run As Administrator.
- Start the "Net-SNMP Trap Handler" service.
- Create the directory "C:\Program Files\uptime software\uptime\scripts\snmp-trap-script".
- Download and copy this file, trap_to_ext_event.pl, to the directory mentioned in the previous step.
...
There are two logs that are created with this solution, one when traps are received by the Net-SNMP Trap Handler service and another when the trap is sent into Uptime Infrastructure Monitor by the perl script. This helps to narrow down an issue if one arises.
UIM configuration
Create a new monitor called SNMP Trap and assign it to a service group, so that it can be applied to numerous Elements in UIM.
...