Re: trapsink2 - example\notification.c

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 9 September 2010 04:28, Leo Lin <[email protected]> wrote:
> I got the following error when using the -D option with snmpd
>
> "/usr/local/share/snmp/snmpd.conf: line 45:
>     Warning: The separate port argument o trapsink2 is deprecated

First of all - this is a warning, not an error.


> the trapsink2 on my snmpd.conf file is:
>
>    trapsink2 192.168.255.140 secret 161

Secondly, the config directive is "trap2sink", not "trapsink2"
This should be generating an error message.

Thirdly, port '161' is typically used by an agent to listen for
SNMP information requests (GET* and SET).
It is *not* normally used by notification receivers (e.g. snmptrapd)


It would be more usual to have

    trap2sink   192.168.255.140   secret   162

or better

    trap2sink   192.168.255.140:162   secret

or better (since 162 is the default anyway)

    trap2sink   192.168.255.140   secret



Dave

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
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.