52 lines
1.8 KiB
Plaintext
52 lines
1.8 KiB
Plaintext
###############################################################################
|
|
#
|
|
# snmpd.conf:
|
|
# An example configuration file for monitoring.
|
|
#
|
|
###############################################################################
|
|
|
|
## sec.name source community
|
|
#com2sec local localhost COMMUNITY
|
|
com2sec mynetwork 192.168.0.0/16 cacti_public
|
|
com2sec mynetwork 172.16.0.0/12 cacti_public
|
|
com2sec mynetwork 10.0.0.0/8 cacti_public
|
|
|
|
## group.name sec.model sec.name
|
|
#group MyRWGroup any local
|
|
group MyROGroup v2c mynetwork
|
|
|
|
## incl/excl subtree mask
|
|
view all included .1 80
|
|
view all included enterprises.ucdavis
|
|
## -or just the mib2 tree-
|
|
|
|
#view mib2 included .iso.org.dod.internet.mgmt.mib-2 fc
|
|
|
|
|
|
## context sec.model sec.level prefix read write notif
|
|
access MyROGroup "" v2c noauth prefix all none none
|
|
#access MyRWGroup "" any noauth 0 all all all
|
|
|
|
#view all included enterprises.ucdavis.diskTable
|
|
#view all included enterprises.ucdavis.loadTable
|
|
|
|
###############################################################################
|
|
# System contact information
|
|
#
|
|
|
|
# It is also possible to set the sysContact and sysLocation system
|
|
# variables through the snmpd.conf file:
|
|
|
|
syslocation Zhengzhou, Henan, China
|
|
syscontact tobyliu@139.com
|
|
|
|
###############################################################################
|
|
# Logging
|
|
#
|
|
|
|
# We do not want annoying "Connection from UDP: " messages in syslog.
|
|
# If the following option is commented out, snmpd will print each incoming
|
|
# connection, which can be useful for debugging.
|
|
|
|
dontLogTCPWrappersConnects yes
|