I had a similar dilemma. Just finished putting this Perl script together to send traps as an additional action in RME. You will need to modify the trap destination, etc. You may also have to compile it if you don't have the correct modules installed. Better error detection is also warranted.
Ex: .send_cw2_trap.pl -t $M
Where $M is the contents of the syslog message.
#! /usr/local/bin/perl
# Usage: send_cw2_trap.pl -t $M
eval '(exit $?0)' && eval 'exec /usr/local/bin/perl $0 ${1+"$@"}'
&& eval 'exec /usr/local/bin/perl $0 $argv:q'
if 0;
# use strict;
use Getopt::Std;
use Net::SNMP qw

ALL);
getopts('t:');
my ($session, $error) = Net::SNMP->session(
-hostname => $ARGV[0] || 'wolverine',
-community => $ARGV[1] || 'public',
-port => SNMP_TRAP_PORT,
);
if(!defined($session)) {
printf ("ERROR: %s.\n", $error);
exit 1;
}
my $result = $session->trap(
-enterprise => '1.3.6.1.4.1.8000',
-agentaddr => '10.60.24.68',
-specifictrap => 0,
-varbindlist => [
'1.3.6.1.4.1.8000.1.0', OCTET_STRING, $opt_t,
]
);
if (!defined($result)) {
printf ("ERROR: %s.\n", $session->error());
}
else {
printf ("SNMPv2-Trap-PDU sent.\n"

;
}
$session->close();
exit 0;