############################################################################### # file not used # EXAMPLE.conf: # An example configuration file for configuring the Net-SNMP agent ('snmpd') # See the 'snmpd.conf(5)' man page for details # # Some entries are deliberately commented out, and will need to be explicitly activated # ############################################################################### # # SNMPv3 AUTHENTICATION # # Note that these particular settings don't actually belong here. # They should be copied to the file /var/lib/snmp/snmpd.conf # and the passwords changed, before being uncommented in that file only. # Then restart the agent
# createUser authOnlyUser MD5 “remember to change this password” # createUser authPrivUser SHA “remember to change this one too” DES # createUser internalUser MD5 “this is only ever used internally, but still change the password”
# If you also change the usernames (which might be sensible), # then remember to update the other occurances in this example config file to match.
agentaddress udp:161,udp6:161,tcp:161,tcp6:161
############################################################################### # # ACCESS CONTROL #
# system + hrSystem groups only
view systemonly included .1
# Full access from the local host
rocommunity public localhost
# Default access to basic system info rocommunity public default -V systemonly # Full access from an example network # Adjust this network address to match your local # settings, change the community string, # and check the 'agentAddress' setting above
rocommunity secret 10.0.0.0/16
# Full read-only access for SNMPv3 rouser authOnlyUser # Full write access for encrypted requests # Remember to activate the 'createUser' lines above
rwuser authPrivUser priv
# It's no longer typically necessary to use the full 'com2sec/group/access' configuration # ruser and rcommunity, together with suitable views, should cover most requirements
############################################################################### # # SYSTEM INFORMATION #
# Note that setting these values here, results in the corresponding MIB objects being 'read-only' # See snmpd.conf(5) for more details sysLocation Sitting on the Dock of the Bay sysContact Me <me@example.org>
# Application + End-to-End layers
sysServices 72
# # Process Monitoring #
# At least one 'mountd' process
proc mountd
# No more than 4 'ntalkd' processes - 0 is OK
proc ntalkd 4
# At least one 'sendmail' process, but no more than 10
proc sendmail 10 1
# Walk the UCD-SNMP-MIB::prTable to see the resulting output # Note that this table will be empty if there are no “proc” entries in the snmpd.conf file
# # Disk Monitoring #
# 10MBs required on root disk, 5% free on /var, 10% free on all other disks
disk / 10000 disk /var 5% includeAllDisks 10%
# Walk the UCD-SNMP-MIB::dskTable to see the resulting output # Note that this table will be empty if there are no “disk” entries in the snmpd.conf file
# # System Load #
# Unacceptable 1-, 5-, and 15-minute load averages
load 12 10 5
# Walk the UCD-SNMP-MIB::laTable to see the resulting output # Note that this table will be populated, even without a “load” entry in the snmpd.conf file