snmpd.config revision 165419
191398Stmm# $FreeBSD: head/etc/snmpd.config 165419 2006-12-20 22:10:34Z syrinx $ 291398Stmm# 391398Stmm# Example configuration file for bsnmpd(1). 491398Stmm# 591398Stmm 691398Stmm# 791398Stmm# Set some common variables 891398Stmm# 991398Stmmlocation := "Room 200" 1091398Stmmcontact := "sysmeister@example.com" 1191398Stmmsystem := 1 # FreeBSD 1291398Stmmtraphost := localhost 1391398Stmmtrapport := 162 1491398Stmm 1591398Stmm# Change this! 1691398Stmmread := "public" 1791398Stmm# Uncomment line 42 that sets the community string to enable write access. 1891398Stmmwrite := "geheim" 1991398Stmmtrap := "mytrap" 2091398Stmm 2191398Stmm# 2291398Stmm# Configuration 2391398Stmm# 2491398Stmm%snmpd 2591398StmmbegemotSnmpdDebugDumpPdus = 2 2699726SbennobegemotSnmpdDebugSyslogPri = 7 2791398Stmm 2891398Stmm# 2991398Stmm# Set the read and write communities. 3091398Stmm# 3191398Stmm# The default value of the community strings is NULL (note, that this is 3291398Stmm# different from the empty string). This disables both read and write access. 3391398Stmm# To enable read access only the read community string must be set. Setting 3491398Stmm# the write community string enables both read and write access with that 3591398Stmm# string. 3691398Stmm# 3791398Stmm# Be sure to understand the security implications of SNMPv2 - the community 3891398Stmm# strings are readable on the wire! 3991398Stmm# 4091398StmmbegemotSnmpdCommunityString.0.1 = $(read) 4195533Smike# begemotSnmpdCommunityString.0.2 = $(write) 4291398StmmbegemotSnmpdCommunityDisable = 1 4391398Stmm 4491398Stmm# open standard SNMP ports 4591398StmmbegemotSnmpdPortStatus.0.0.0.0.161 = 1 4691398Stmm 4791398Stmm# open a unix domain socket 4891398StmmbegemotSnmpdLocalPortStatus."/var/run/snmpd.sock" = 1 4991398StmmbegemotSnmpdLocalPortType."/var/run/snmpd.sock" = 4 5091398Stmm 5191398Stmm# send traps to the traphost 5291398StmmbegemotTrapSinkStatus.[$(traphost)].$(trapport) = 4 5391398StmmbegemotTrapSinkVersion.[$(traphost)].$(trapport) = 2 5491398StmmbegemotTrapSinkComm.[$(traphost)].$(trapport) = $(trap) 5591398Stmm 5691398StmmsysContact = $(contact) 5791398StmmsysLocation = $(location) 5891398StmmsysObjectId = 1.3.6.1.4.1.12325.1.1.2.1.$(system) 5991398Stmm 6091398StmmsnmpEnableAuthenTraps = 2 6191398Stmm 6291398Stmm# 6391398Stmm# Load MIB-2 module 6492739Salfred# 6592739SalfredbegemotSnmpdModulePath."mibII" = "/usr/lib/snmp_mibII.so" 6692739Salfred 6792739Salfred# Force a polling rate for the 64-bit interface counters in case 6892739Salfred# the automatic computation is wrong (which may be the case if an interface 6992739Salfred# announces the wrong bit rate via its MIB). 7092739Salfred#%mibII 7192739Salfred#begemotIfForcePoll = 2000 7292739Salfred 7392739Salfred# 7492739Salfred# Netgraph module 7592739Salfred# 7692739Salfred#begemotSnmpdModulePath."netgraph" = "/usr/lib/snmp_netgraph.so" 7792739Salfred# 7892739Salfred#%netgraph 7992739Salfred#begemotNgControlNodeName = "snmpd" 8092739Salfred 8192739Salfred# 8292739Salfred# pf(4) module 8392739Salfred# 8492739Salfred#begemotSnmpdModulePath."pf" = "/usr/lib/snmp_pf.so" 8592739Salfred 8692739Salfred# 8792739Salfred# Host resources module 8892739Salfred# This requires the mibII module. 8992739Salfred# 9091398Stmm#begemotSnmpdModulePath."hostres" = "/usr/lib/snmp_hostres.so" 9192739Salfred 9292739Salfred# 9392739Salfred# Bridge module 94100587Sjake# This requires the mibII module. 9593045Stmm# 96100587Sjake#begemotSnmpdModulePath."bridge" = "/usr/lib/snmp_bridge.so" 9792739Salfred