On 5 April 2012 00:53, JP Vossen <j...@jpsdomain.org> wrote:
> I know I can use one or more "forward default 10.10.10.10:162" lines in
> 'snmptrapd.conf' to forward traps to another host.  I also know I can
> listen on more than 1 port, say 162 and 5162 [1].  Once I do that, I'd
> like to do something different based on which port the trap came in on.
>
> At a high level can I do this?

The simplest way would be to run two separate trap receivers,
with different config files, each listening on one of the two ports.
I doubt that a single trap receiver process could distinguish
between the incoming port in this way.

   At least not without hacking the code - if you do manage to
add this functionality, please consider feeding the patches back
to the project so that others can benefit too.

Dave

------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to