From 432231fbb9f7e24e54b6774e965af72fdf1b3599 Mon Sep 17 00:00:00 2001 From: toby Date: Thu, 24 Nov 2022 20:52:11 +0800 Subject: [PATCH] snmpd.conf MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 服务器简易snmp配置文件 --- snmpd.conf | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 snmpd.conf diff --git a/snmpd.conf b/snmpd.conf new file mode 100644 index 0000000..120c6d9 --- /dev/null +++ b/snmpd.conf @@ -0,0 +1,49 @@ +############################################################################### +# +# snmpd.conf: +# An example configuration file for monitoring. +# +############################################################################### + +## sec.name source community +#com2sec local localhost COMMUNITY +com2sec mynetwork 192.168.224.14 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