On Thu, 2 Apr 2009, Jim Trocki wrote:

> snmptrapd can be told to decode traps matching particular OIDs and send
> them to an external program's stdin, or it can forward traps matching
> some OIDs to another destination, on the same machine or elsewhere.


i did a bit more poking around and discovered NetSNMP::TrapReceiver

NAME
        NetSNMP::TrapReceiver - Embedded perl trap handling for Net-SNMP's
        snmptrapd


ABSTRACT
        The NetSNMP::TrapReceiver module is used to register perl subroutines
        into the Net-SNMP snmptrapd process.


...

http://cpansearch.perl.org/src/HARDAKER/NetSNMP-TrapReceiver-5.0401/

"man NetSNMP::TrapReceiver" has a detailed example. it looks as if you
could write a simple perl routine which would look at the oid and then
convert a snmp trap into a mon trap, all from within the snmptrapd
process. that sounds like the beauty way to go.

_______________________________________________
mon mailing list
mon@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/mon

Reply via email to