Thanks Dave,
I've made the suggested corrections. For the IP address, I changed it to
localhost instead. So, it reads: (note: trapsink2 on my email was a typo)
trap2sink localhost:162 secret
I re-started my agent, and I no longer see the warning message. I also started
the trap listener, snmptrapd
the snmpd.log shows that the trap is being sent, but some how I don't see it in
the stdout.
the log output reads:
llctrap: Initializing, setting callback alarm
NET-SNMP version 5.6rc1
llctrap: sending trap 1
the trap sould be sent every 30 sec, but I only see one trap sent. I also
check that snmpd and snmptrapd are still runing.
Am I missing something here?
Thanks!!
Leo;
--- On Thu, 9/9/10, Dave Shield <d.t.shi...@liverpool.ac.uk> wrote:
From: Dave Shield <d.t.shi...@liverpool.ac.uk>
Subject: Re: trapsink2 - example\notification.c
To: "Leo Lin" <hayashi_...@yahoo.com>
Cc: "Net-snmp-users" <net-snmp-users@lists.sourceforge.net>
Date: Thursday, September 9, 2010, 12:36 AM
On 9 September 2010 04:28, Leo Lin <hayashi_...@yahoo.com> 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
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