Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ###########################################################################
- #
- # snmpd.conf
- #
- # - created by the snmpconf configuration program
- #
- ###########################################################################
- # 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.0.1 public
- # trap2sink: A SNMPv2c trap receiver
- # arguments: host [community] [portnum]
- trap2sink 192.168.0.1 public
- # authtrapenable: Should we send traps when authentication failures occur
- # arguments: 1 | 2 (1 = yes, 2 = no)
- authtrapenable 1
- ###########################################################################
- # 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
- # rwcommunity: a SNMPv1/SNMPv2c read-write access community name
- # arguments: community [default|hostname|network/bits] [oid]
- # rwcommunity private
- ###########################################################################
- # 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 "Set this to the location"
- # 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 whoever@contact.com
- # sysservices: The proper value for the sysServices object.
- # arguments: sysservices_number
- sysservices 76
- ###########################################################################
- # 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
- # load: Check for unreasonable load average values.
- # Watch the load average levels on the machine.
- #
- # load [1MAX=12.0] [5MAX=12.0] [15MAX=12.0]
- #
- # 1MAX: If the 1 minute load average is above this limit at query
- # time, the errorFlag will be set.
- # 5MAX: Similar, but for 5 min average.
- # 15MAX: Similar, but for 15 min average.
- #
- # The results are reported in the laTable section of the UCD-SNMP-MIB tree
- load 5 5 5
- ###########################################################################
- # SECTION: Agent Operating Mode
- #
- # This section defines how the agent will operate when it
- # is running.
- # agentaddress: The IP address and port number that the agent will listen on.
- # By default the agent listens to any and all traffic from any
- # interface on the default SNMP port (161). This allows you to
- # specify which address, interface, transport type and port(s) that you
- # want the agent to listen on. Multiple definitions of this token
- # are concatenated together (using ':'s).
- # arguments: [transport:]port[@interface/address],...
- #agentaddress
- #
- # Unknown directives read in from other files by snmpconf
- #
- com2sec paranoid default public
- group MyROSystem v1 paranoid
- group MyROSystem v2c paranoid
- group MyROSystem usm paranoid
- group MyROGroup v1 readonly
- group MyROGroup v2c readonly
- group MyROGroup usm readonly
- group MyRWGroup v1 readwrite
- group MyRWGroup v2c readwrite
- group MyRWGroup usm readwrite
- view all included .1 80
- view system included .iso.org.dod.internet.mgmt.mib-2.system
- access MyROSystem "" any noauth exact system none none
- access MyROGroup "" any noauth exact all none none
- access MyRWGroup "" any noauth exact all all none
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement