Hi Dave,
* Thanks for your valuable feedback.*
As per your suggestion i have gone through snmpd.conf(5) man page and the
FAQ entries as you mentioned in the previous mail.
I created snmpd.conf file using perl script snmpconf. It looks like this
###########################################################################
#
# snmpd.conf
#
# - created by the snmpconf configuration program
#
###########################################################################
# SECTION: Access Control Setup
#
# This section defines who is allowed to talk to your running
# snmp agent.
# rocommunity: a SNMPv1/SNMPv2c read-only access community name
# arguments: community [default|hostname|network/bits] [oid]
rocommunity public
###########################################################################
# SECTION: Trap Destinations
#
# Here we define who the agent will send traps to.
# trap2sink: A SNMPv2c trap receiver
# arguments: host [community] [portnum]
trap2sink localhost public 162
# trapcommunity: Default trap sink community to use
# arguments: community-string
trapcommunity public
# authtrapenable: Should we send traps when authentication failures occur
# arguments: 1 | 2 (1 = yes, 2 = no)
authtrapenable 1
*Whether it is proper ?*
*I have following queries on this configuration, please guide me*
*
*
1) Whether this line in configuration i,e *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 ?
2) Whether this line in configuration i,e *trapcommunity public, * will
set SNMP agent with community string *public(Trap Community) *for sending
traps ?
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?
*Then coming to DisMan Event MIB*
*
*
* *As a start up to understand * DisMan Event functionality *, i want to
monitor the Scalar object in the MIB file using *DisMan Event MIB *and i
want to send trap by the agent depends on state change in the value (or
some condition) of the Scalar object
*Please guide me on following things*
*
*
1) How i need to start for handling Scalar object using *DisMan Event MIB
? *Can you guide me the exact flow for this implementation(In general, for
handling traps using *DisMan Event MIB module)*?
*
*
2) Whether i need to add all the *DisMan Event MIB *directives* *in
snmpd.conf file? In order to generate such directives in snmpd.conf file,
Can i use perl script snmpconf ?
3) In the MIB file, i need to write for handling trap , is it ? What i need
to add?
*Thanks in Advance*
*Prashant Nirni*
On 23 November 2011 15:24, prashant n <[email protected]> wrote:
> 1) How to quick start to send notification(TRAP) to the manager by the
SNMP agent ?
For configuring where the agent should send notifications,
please see the snmpd.conf(5)' man page - in particular, the
section "Notification Handling", and the FAQ entries
What traps are sent by the agent?
Where are these traps sent to?
For getting the agent to generate traps, see the FAQ entry
How can I get the agent to generate a trap (or inform)?
and the half-dozen following.
> 2) The SNMP agent must send trap if any changes in the underlying system
> that must be reflected to objects defined in MIB file. How to do that?
Have a look at the 'snmpd.conf(5)' man page - in particular the section
headed 'DisMan Event MIB'. That is particularly designed for triggering
a trap based on existing MIB object values (without needing to add extra
code to the agent).
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