Re: How to check problems about trap

"Dave Shield" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 29/10/06, Clement Hsu <[email protected]> wrote:
>  My version of agent is net-snmp 5.3 , and after I comment out trapsink or
> trap2sink    xxx.xxx.xxx.xx public 162 , the error message disappear.
>   These two line referring to the same address.

Can you try running with both "trapsink" and "trap2sink" lines, but
referring to two different IP addresses?
   I suspect that this will also run without complaint, and that it's
having two entries referring to the same destination that triggers
the problem.   (I'll try & check this later)


>   If that means the comment:      trap2sink 192.111.111.1 pulic 162
>   can also receive the trap v1 ?

An entry such as
     trap2sink  192.111.111.1  pulic 162

will accept a request to send a notification in *any* format (whether this be
send_v2trap(),  send_easy_trap(),  an AgentX notification, or whatever),
and generate the appropriate SNMPv2 trap.

Similarly, an entry such as
     trapsink  192.111.111.1  pulic 162

will accept exactly the same set of requests, and generate the equivalent
SNMPv1 trap.  The mechanism used to specify the trap has *NO* effect
on the version of the trap actually sent out.

Please see the FAQ entry
    How can I get the agent to send an SNMPv1 (or SNMPv2c) trap?


>                            and these two line shouldn't referring to
> the same destination.

You should *never* (normally) need to have two "trap*sink" lines referring
to the same destination.  That would result in two copies being generated
for every trap.

Dave

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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.