On 04/05/2012 04:17 AM, Dave Shield wrote: > 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.
Yup, that was my backup plan. Now my primary plan, I guess. > I doubt that a single trap receiver process could distinguish > between the incoming port in this way. Yeah, I couldn't see either either, I was just hoping, since it's less overhead in config files and such if it can be all-in-one. > 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. I'm afraid my coding skills in that area are not up to the challenge. Thanks for the quick reply and sorry about my slow one, JP ----------------------------|:::======|------------------------------- JP Vossen, CISSP |:::======| http://bashcookbook.com/ My Account, My Opinions |=========| http://www.jpsdomain.org/ ----------------------------|=========|------------------------------- "Microsoft Tax" = the additional hardware & yearly fees for the add-on software required to protect Windows from its own poorly designed and implemented self, while the overhead incidentally flattens Moore's Law. ------------------------------------------------------------------------------ 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