snmpd.config revision 163823
1148871Scperciva# $FreeBSD: head/etc/snmpd.config 163823 2006-10-31 10:23:28Z harti $ 2148871Scperciva# 3148871Scperciva# Example configuration file for bsnmpd(1). 4148871Scperciva# 5148871Scperciva 6148871Scperciva# 7148871Scperciva# Set some common variables 8148871Scperciva# 9148871Scpercivalocation := "Room 200" 10148871Scpercivacontact := "sysmeister@example.com" 11148871Scpercivasystem := 1 # FreeBSD 12148871Scpercivatraphost := localhost 13148871Scpercivatrapport := 162 14148871Scperciva 15148871Scperciva# Change this! 16148871Scpercivaread := "public" 17148871Scperciva# Uncomment line 42 that sets the community string to enable write access. 18148871Scpercivawrite := "geheim" 19149824Scpercivatrap := "mytrap" 20149824Scperciva 21149824Scperciva# 22149824Scperciva# Configuration 23154497Scperciva# 24154497Scperciva%snmpd 25154497ScpercivabegemotSnmpdDebugDumpPdus = 2 26154497ScpercivabegemotSnmpdDebugSyslogPri = 7 27154497Scperciva 28154497Scperciva# 29149824Scperciva# Set the read and write communities. 30149824Scperciva# 31# The default value of the community strings is NULL (note, that this is 32# different from the empty string). This disables both read and write access. 33# To enable read access only the read community string must be set. Setting 34# the write community string enables both read and write access with that 35# string. 36# 37# Be sure to understand the security implications of SNMPv2 - the community 38# strings are readable on the wire! 39# 40begemotSnmpdCommunityString.0.1 = $(read) 41# begemotSnmpdCommunityString.0.2 = $(write) 42begemotSnmpdCommunityDisable = 1 43 44# open standard SNMP ports 45begemotSnmpdPortStatus.0.0.0.0.161 = 1 46 47# open a unix domain socket 48begemotSnmpdLocalPortStatus."/var/run/snmpd.sock" = 1 49begemotSnmpdLocalPortType."/var/run/snmpd.sock" = 4 50 51# send traps to the traphost 52begemotTrapSinkStatus.[$(traphost)].$(trapport) = 4 53begemotTrapSinkVersion.[$(traphost)].$(trapport) = 2 54begemotTrapSinkComm.[$(traphost)].$(trapport) = $(trap) 55 56sysContact = $(contact) 57sysLocation = $(location) 58sysObjectId = 1.3.6.1.4.1.12325.1.1.2.1.$(system) 59 60snmpEnableAuthenTraps = 2 61 62# 63# Load MIB-2 module 64# 65begemotSnmpdModulePath."mibII" = "/usr/lib/snmp_mibII.so" 66 67# Force a polling rate for the 64-bit interface counters in case 68# the automatic computation is wrong (which may be the case if an interface 69# announces the wrong bit rate via its MIB). 70#%mibII 71#begemotIfForcePoll = 2000 72 73# 74# Netgraph module 75# 76#begemotSnmpdModulePath."netgraph" = "/usr/lib/snmp_netgraph.so" 77# 78#%netgraph 79#begemotNgControlNodeName = "snmpd" 80 81# 82# pf(4) module 83# 84#begemotSnmpdModulePath."pf" = "/usr/lib/snmp_pf.so" 85 86# 87# Host resources module 88# This requires the mibII module. 89# 90#begemotSnmpdModulePath."hostres" = "/usr/lib/snmp_hostres.so" 91