Changeset View
Changeset View
Standalone View
Standalone View
contrib/bsnmp/snmpd/snmpd.config
Context not available. | |||||
# | # | ||||
# $Begemot: bsnmp/snmpd/snmpd.config,v 1.16 2006/02/14 09:04:20 brandt_h Exp $ | # $Begemot: bsnmp/snmpd/snmpd.config,v 1.16 2006/02/14 09:04:20 brandt_h Exp $ | ||||
# | # | ||||
# Example configuration file. | # Example configuration file for testing. | ||||
# | # | ||||
# | # | ||||
Context not available. | |||||
location := "Room 200" | location := "Room 200" | ||||
contact := "sysmeister@bar.com" | contact := "sysmeister@bar.com" | ||||
system := 1 # FreeBSD | system := 1 # FreeBSD | ||||
traphost := noc.bar.com | traphost := localhost | ||||
trapport := 162 | trapport := 162 | ||||
read := "public" | read := "public" | ||||
# Uncomment the line below that sets the community string | write := "geheim" # take care - this allows writing | ||||
# to enable write access. | |||||
write := "geheim" | |||||
trap := "mytrap" | trap := "mytrap" | ||||
securityModelSNMPv1 := 1 | |||||
securityModelSNMPv2c := 2 | |||||
noAuthNoPriv := 1 | |||||
# | # | ||||
# Configuration | # Configuration | ||||
# | # | ||||
Context not available. | |||||
%snmpd | %snmpd | ||||
begemotSnmpdDebugDumpPdus = 2 | begemotSnmpdDebugDumpPdus = 2 | ||||
begemotSnmpdDebugSyslogPri = 7 | begemotSnmpdDebugSyslogPri = 7 | ||||
begemotSnmpdDebugSnmpTrace = 0 | |||||
# | # | ||||
# Set the read and write communities. | # Set the read and write communities. | ||||
Context not available. | |||||
# strings are readable on the wire! | # strings are readable on the wire! | ||||
# | # | ||||
begemotSnmpdCommunityString.0.1 = $(read) | begemotSnmpdCommunityString.0.1 = $(read) | ||||
# begemotSnmpdCommunityString.0.2 = $(write) | begemotSnmpdCommunityString.0.2 = $(write) | ||||
# begemotSnmpdCommunityString.0.3 = "otherPublic" | # begemotSnmpdCommunityString.0.3 = "otherPublic" | ||||
begemotSnmpdCommunityDisable = 1 | begemotSnmpdCommunityDisable = 1 | ||||
# open standard SNMP ports | # open standard SNMP ports | ||||
begemotSnmpdPortStatus.[$(host)].161 = 1 | # 0.0.0.0:161 | ||||
begemotSnmpdPortStatus.127.0.0.1.161 = 1 | begemotSnmpdTransInetStatus.1.4.0.0.0.0.161.1 = 4 | ||||
# test the port table; IPv4 address | |||||
# 127.0.0.1:10161 | |||||
begemotSnmpdTransInetStatus.1.4.127.0.0.1.10161.1 = 4 | |||||
# test the port table; IPv6 address | |||||
# ::1:10162 | |||||
begemotSnmpdTransInetStatus.2.16.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.1.10162.1 = 4 | |||||
# :::10163 | |||||
begemotSnmpdTransInetStatus.2.16.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.10163.1 = 4 | |||||
# fe80::1%1:10164 - requires inet fe80::1%em0/64 | |||||
begemotSnmpdTransInetStatus.4.20.254.128.0.0.0.0.0.0.0.0.0.0.0.0.0.1.0.0.0.1.10164.1 = 4 | |||||
# fe80::1%2:10164 - requires inet fe80::1%em1/64 | |||||
begemotSnmpdTransInetStatus.4.20.254.128.0.0.0.0.0.0.0.0.0.0.0.0.0.1.0.0.0.2.10164.1 = 4 | |||||
# test the port table; DNS address | |||||
# :10165 UDPv4 and UDPv6 | |||||
begemotSnmpdTransInetStatus.16.0.10165.1 = 4 | |||||
# 127.0.0.1:10166 | |||||
# ::1:10166 | |||||
begemotSnmpdTransInetStatus.16."localhost".10166.1 = 4 | |||||
# ::1:10167 | |||||
begemotSnmpdTransInetStatus.16."localhost6".10167.1 = 4 | |||||
# fe80::1%em0:10168 - requires inet fe80::$em0/64 | |||||
begemotSnmpdTransInetStatus.16."fe80::1%em0".10168.1 = 4 | |||||
# fe80::1%em1:10169 - requires inet fe80::$em1/64 | |||||
begemotSnmpdTransInetStatus.16."fe80::1%em1".10169.1 = 4 | |||||
# open a unix domain socket | # open a unix domain socket | ||||
begemotSnmpdLocalPortStatus."/var/run/snmpd.sock" = 1 | # begemotSnmpdLocalPortStatus."/var/run/snmpd.sock" = 1 | ||||
begemotSnmpdLocalPortType."/var/run/snmpd.sock" = 4 | # begemotSnmpdLocalPortType."/var/run/snmpd.sock" = 4 | ||||
# send traps to the traphost | # send traps to the traphost | ||||
begemotTrapSinkStatus.[$(traphost)].$(trapport) = 4 | begemotTrapSinkStatus.[$(traphost)].$(trapport) = 4 | ||||
Context not available. | |||||
# | # | ||||
# Load MIB-2 module | # Load MIB-2 module | ||||
# | # | ||||
begemotSnmpdModulePath."mibII" = "/usr/local/lib/snmp_mibII.so" | #begemotSnmpdModulePath."mibII" = "../snmp_mibII/.libs/snmp_mibII.so" | ||||
# | # | ||||
# SNMPv3 notification targets | |||||
# | |||||
begemotSnmpdModulePath."target" = "../snmp_target/.libs/snmp_target.so" | |||||
# | |||||
# SNMPv3 user-based security module | |||||
# | |||||
# begemotSnmpdModulePath."usm" = "../snmp_usm/.libs/snmp_usm.so" | |||||
# | |||||
# SNMPv3 view-based access control module | |||||
# | |||||
begemotSnmpdModulePath."vacm" = "../snmp_vacm/.libs/snmp_vacm.so" | |||||
# | |||||
# Netgraph module | # Netgraph module | ||||
# | # | ||||
begemotSnmpdModulePath."netgraph" = "/usr/local/lib/snmp_netgraph.so" | # begemotSnmpdModulePath."netgraph" = "/usr/local/lib/snmp_netgraph.so" | ||||
# %netgraph | |||||
# begemotNgControlNodeName = "snmpd" | |||||
%netgraph | %vacm | ||||
begemotNgControlNodeName = "snmpd" | |||||
internetoid := 1.3.6.1 | |||||
internetoidlen := 4 | |||||
vacmSecurityToGroupStatus.$(securityModelSNMPv1).$(read) = 4 | |||||
vacmGroupName.$(securityModelSNMPv1).$(read) = $(read) | |||||
vacmSecurityToGroupStatus.$(securityModelSNMPv2c).$(read) = 4 | |||||
vacmGroupName.$(securityModelSNMPv2c).$(read) = $(read) | |||||
vacmSecurityToGroupStatus.$(securityModelSNMPv2c).$(write) = 4 | |||||
vacmGroupName.$(securityModelSNMPv2c).$(write) = $(write) | |||||
vacmViewTreeFamilyStatus."internet".$(internetoidlen).$(internetoid) = 4 | |||||
vacmAccessStatus.$(read)."".$(securityModelSNMPv1).$(noAuthNoPriv) = 4 | |||||
vacmAccessReadViewName.$(read)."".$(securityModelSNMPv1).$(noAuthNoPriv) = "internet" | |||||
vacmAccessStatus.$(write)."".$(securityModelSNMPv2c).$(noAuthNoPriv) = 4 | |||||
vacmAccessStatus.$(read)."".$(securityModelSNMPv2c).$(noAuthNoPriv) = 4 | |||||
vacmAccessReadViewName.$(write)."".$(securityModelSNMPv2c).$(noAuthNoPriv) = "internet" | |||||
vacmAccessReadViewName.$(read)."".$(securityModelSNMPv2c).$(noAuthNoPriv) = "internet" | |||||
vacmAccessWriteViewName.$(write)."".$(securityModelSNMPv2c).$(noAuthNoPriv) = "internet" | |||||
vacmAccessWriteViewName.$(read)."".$(securityModelSNMPv2c).$(noAuthNoPriv) = "internet" | |||||
Context not available. |