Re: Snmptrap not forwarding on proper port

George <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hey Dave,

Good afternoon. Have taken your suggestions which resolved my issue. Also, how do I preserve the original IP address that sent the trap? Not sure of the syntax to use in the snmptrapd.conf file since ./snmptradd start -%a or -%A did not work. Thanks.

Sincerely,
George

--- On Fri, 6/24/11, Dave Shield <[email protected]> wrote:

> From: Dave Shield <[email protected]>
> Subject: Re: Snmptrap not forwarding on proper port
> To: "George" <[email protected]>
> Cc: [email protected]
> Date: Friday, June 24, 2011, 6:16 AM
> On 23 June 2011 20:13, George <[email protected]>
> wrote:
> > [root@xxx /usr/local/etc/rc.d]# vi
> /etc/snmptrapd.conf
> > disableAuthorization yes
> > authCommunity net public forward default
> udp:10.1.1.227:162 public
> 
> I presume this last entry should be split over two lines?
> 
> 
> 
> > [root@xxx /usr/local/etc/rc.d]# cat /etc/snmpd.conf
> > rocommunity public
> > rocommunity public localhost
> > trapsink  localhost public 162
> > trap2sink  localhost public 162
> > trap2sink  10.1.1.227 public 162
> 
> Do you really want two copies of each trap sent
> to the snmptrapd running on the local machine,
> plus another copy sent directly to the remote server?
>   (As well as the additional copy that's forwarded to
>  the remote server by snmptrapd)
> 
> 
> 
> > Any ideas as to what is setup incorrectly?
> 
> Have you checked the firewall configuration on the
> destination host?
> Is it accepting connections to port 162?
> 
> Try running the local snmptrapd with the
> flags   "-f -Le -d"
> That will let you see packet dumps of the traffic coming
> in
> and out.   Do you see the traps being
> received and forwarded?
> 
> Dave
> 

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
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.