Re: Can snmpd do different actions based on incoming port?

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <CAKoMtGb+J_vzxP2andUMkhC1WGXubTg+-sY5ZhhQ3tCTq-VA-w@mail.gmail.com>
On 5 April 2012 00:53, JP Vossen <[email protected]> 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
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.