Hi,

 

   I'm trying to configure net-snmp to send traps.

 

Client IP: 192.168.1.206

 

########################################################################
###

#

# 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  romycom

 

# rwcommunity: a SNMPv1/SNMPv2c read-write access community name

#   arguments:  community [default|hostname|network/bits] [oid]

 

rwcommunity  rwmycom

 

 

 

########################################################################
###

# SECTION: System Information Setup

#

#   This section defines some of the information reported in

#   the "system" mib group in the mibII tree.

 

# syslocation: The [typically physical] location of the system.

#   Note that setting this value here means that when trying to

#   perform an snmp SET operation to the sysLocation.0 variable will
make

#   the agent return the "notWritable" error code.  IE, including

#   this token in the snmpd.conf file will disable write access to

#   the variable.

#   arguments:  location_string

 

syslocation  Office

 

# syscontact: The contact information for the administrator

#   Note that setting this value here means that when trying to

#   perform an snmp SET operation to the sysContact.0 variable will make

#   the agent return the "notWritable" error code.  IE, including

#   this token in the snmpd.conf file will disable write access to

#   the variable.

#   arguments:  contact_string

 

syscontact  [EMAIL PROTECTED]

 

 

 

 

 

 

########################################################################
###

# SECTION: Trap Destinations

#

#   Here we define who the agent will send traps to.

 

# trapsink: A SNMPv1 trap receiver

#   arguments: host [community] [portnum]

 

trapsink  192.168.1.205 romycom 162

 

# informsink: A SNMPv2c inform (acknowledged trap) receiver

#   arguments: host [community] [portnum]

 

informsink  192.168.1.205 romycom 162

 

# trapcommunity: Default trap sink community to use

#   arguments: community-string

 

trapcommunity  romycom

 

 

 

 

 

 

########################################################################
###

# SECTION: Monitor Various Aspects of the Running Host

#

#   The following check up on various aspects of a host.

 

# proc: Check for processes that should be running.

#     proc NAME [MAX=0] [MIN=0]

#

#     NAME:  the name of the process to check for.  It must match

#            exactly (ie, http will not find httpd processes).

#     MAX:   the maximum number allowed to be running.  Defaults to 0.

#     MIN:   the minimum number to be running.  Defaults to 0.

#

#   The results are reported in the prTable section of the UCD-SNMP-MIB
tree

#   Special Case:  When the min and max numbers are both 0, it assumes

#   you want a max of infinity and a min of 1.

 

proc  sendmail 10 1

 

agentSecName internal

rouser internal

 

Disk / 35%

monitor   -o dskPath -o dskErrorMsg "dskTable" dskErrorFlag != 0

 

Thanks,


--------------------------------------------------------------------------------------------------------
This message and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom it is
addressed. It may contain sensitive and private proprietary or legally
privileged information. No confidentiality or privilege is waived or
lost by any mistransmission. If you are not the intended recipient,
please immediately delete it and all copies of it from your system,
destroy any hard copies of it and notify the sender. You must not,
directly or indirectly, use, disclose, distribute, print, or copy any
part of this message if you are not the intended recipient. 
FXDirectDealer, LLC reserves the right to monitor all e-mail 
communications through its networks. Any views expressed in this 
message are those of the individual sender, except where the 
message states otherwise and the sender is authorized to state them.

Unless otherwise stated, any pricing information given in this message
is indicative only, is subject to change and does not constitute an
offer to deal at any price quoted. Any reference to the terms of
executed transactions should be treated as preliminary only and subject
to our formal confirmation. FXDirectDealer, LLC is not responsible for any
recommendation, solicitation, offer or agreement or any information
about any transaction, customer account or account activity contained in
this communication.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
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

Reply via email to