147 lines
4.1 KiB
Plaintext
Executable File
147 lines
4.1 KiB
Plaintext
Executable File
###########################################################################
|
|
#
|
|
# 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.
|
|
|
|
# rwuser: a SNMPv3 read-write user
|
|
# arguments: user [noauth|auth|priv] [restriction_oid]
|
|
|
|
rwuser anyone auth
|
|
|
|
# rouser: a SNMPv3 read-only user
|
|
# arguments: user [noauth|auth|priv] [restriction_oid]
|
|
|
|
rouser readonly auth
|
|
|
|
# rwcommunity: a SNMPv1/SNMPv2c read-write access community name
|
|
# arguments: community [default|hostname|network/bits] [oid]
|
|
|
|
rwcommunity
|
|
|
|
# rocommunity: a SNMPv1/SNMPv2c read-only access community name
|
|
# arguments: community [default|hostname|network/bits] [oid]
|
|
|
|
rocommunity
|
|
|
|
|
|
###########################################################################
|
|
# SECTION: Extending the Agent
|
|
#
|
|
# You can extend the snmp agent to have it return information
|
|
# that you yourself define.
|
|
|
|
# pass: Run a command that intepretes the request for an entire tree.
|
|
# The pass program defined here will get called for all
|
|
# requests below a certain point in the mib tree. It is then
|
|
# responsible for returning the right data beyond that point.
|
|
#
|
|
# arguments: miboid program
|
|
#
|
|
# example: pass .1.3.6.1.4.1.2021.255 /path/to/local/passtest
|
|
#
|
|
# See the snmpd.conf manual page for further information.
|
|
#
|
|
# Consider using "pass_persist" for a performance increase.
|
|
|
|
pass .1.3.6.1.4.1.4413.4.1 /usr/bin/ucd5820stat
|
|
|
|
|
|
|
|
###########################################################################
|
|
# 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 0 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
###########################################################################
|
|
# 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.168.100 public
|
|
|
|
# trap2sink: A SNMPv2c trap receiver
|
|
# arguments: host [community] [portnum]
|
|
|
|
trap2sink 192.168.168.100 public
|
|
|
|
# informsink: A SNMPv2c inform (acknowledged trap) receiver
|
|
# arguments: host [community] [portnum]
|
|
|
|
#informsink 192.168.168.100 public
|
|
|
|
# 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
|
|
authtrapenable 1
|
|
|
|
|
|
|
|
###########################################################################
|
|
# 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.
|
|
# arguments: location_string
|
|
|
|
#syslocation somewhere
|
|
|
|
# syscontact: The contact information for the administrator
|
|
# arguments: contact_string
|
|
|
|
#syscontact someone<someone@somewhere.org>
|
|
|
|
# sysservices: The proper value for the sysServices object.
|
|
# arguments: sysservices_number
|
|
|
|
sysservices 76
|
|
|
|
# sysName: The proper value for the sysName object.
|
|
# arguments: sysName
|
|
#sysName tc
|
|
|
|
#
|
|
# Unknown directives read in from other files by snmpconf
|
|
#
|
|
com2sec notConfigUser default public
|
|
group notConfigGroup v1 notConfigUser
|
|
group notConfigGroup v2c notConfigUser
|
|
#view systemview included system
|
|
access notConfigGroup "" any noauth exact systemview none none
|