On 24 November 2011 14:55, prashant n <[email protected]> wrote:
> 1) Whether this line in configuration
> trap2sink localhost public 162
> will set SNMP manager i,e localhost( or any other network interface
> Ex:10.1.1.92) with community string public(Trap Community) for receiving
> traps ?
This line will tell the SNMP agent that traps should be sent *to* this
notification receiver (i.e. port 162 on localhost, with community "public")
Whether there is anything listening on that port is a competely separate
question. snmpd.conf is purely concerned with what the SNMP agent
should dod
> 2) Whether this line in configuration
> trapcommunity public
> will set SNMP agent with community string public(Trap Community)
> for sending traps ?
This sets the default community string, for sending traps where no
other community has been specified.
So if you had the three lines:
trapcommunity private
trapsink localhost public 162
trapsink 10.11.12.13
then the agent would generate two traps - one sent to the
trap receiver running on the same box (localhost) with the
community string "public", and one sent to the trap receiver
on the box 10.11.12.13, with the community string "private"
> 3) The community string in both the cases above must be same in order to
> send trap by the agent and to receive that on the manager side. Is it right?
The community string in the trap send by the agent must match
the access configuration settings in place on the trap receiver.
So in the case of the Net-SNMP trap receiver (snmptrapd),
you would need something like
authCommunity log,execute,net public
on the local host, and
authCommunity log,execute,net private
on 10.11.12.13
Dave
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, 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-novd2d
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders