snmpd.config revision 156070
11553Srgrimes# $FreeBSD: head/etc/snmpd.config 156070 2006-02-27 16:31:01Z harti $ 21553Srgrimes# 31553Srgrimes# Example configuration file for bsnmpd(1). 41553Srgrimes# 51553Srgrimes 61553Srgrimes# 71553Srgrimes# Set some common variables 81553Srgrimes# 91553Srgrimeshost := foobar 101553Srgrimeslocation := "Room 200" 111553Srgrimescontact := "sysmeister@example.com" 121553Srgrimessystem := 1 # FreeBSD 131553Srgrimestraphost := localhost 141553Srgrimestrapport := 162 151553Srgrimes 161553Srgrimes# Change this! 171553Srgrimesread := "public" 181553Srgrimes# Uncomment line 42 that sets the community string to enable write access. 191553Srgrimeswrite := "geheim" 201553Srgrimestrap := "mytrap" 211553Srgrimes 221553Srgrimes# 231553Srgrimes# Configuration 241553Srgrimes# 251553Srgrimes%snmpd 261553SrgrimesbegemotSnmpdDebugDumpPdus = 2 271553SrgrimesbegemotSnmpdDebugSyslogPri = 7 281553Srgrimes 291553Srgrimes# 30133249Simp# Set the read and write communities. 311553Srgrimes# 321553Srgrimes# The default value of the community strings is NULL (note, that this is 331553Srgrimes# different from the empty string). This disables both read and write access. 341553Srgrimes# To enable read access only the read community string must be set. Setting 351553Srgrimes# the write community string enables both read and write access with that 361553Srgrimes# string. 37# 38# Be sure to understand the security implications of SNMPv2 - the community 39# strings are readable on the wire! 40# 41begemotSnmpdCommunityString.0.1 = $(read) 42# begemotSnmpdCommunityString.0.2 = $(write) 43begemotSnmpdCommunityDisable = 1 44 45# open standard SNMP ports 46begemotSnmpdPortStatus.[$(host)].161 = 1 47begemotSnmpdPortStatus.127.0.0.1.161 = 1 48 49# open a unix domain socket 50begemotSnmpdLocalPortStatus."/var/run/snmpd.sock" = 1 51begemotSnmpdLocalPortType."/var/run/snmpd.sock" = 4 52 53# send traps to the traphost 54begemotTrapSinkStatus.[$(traphost)].$(trapport) = 4 55begemotTrapSinkVersion.[$(traphost)].$(trapport) = 2 56begemotTrapSinkComm.[$(traphost)].$(trapport) = $(trap) 57 58sysContact = $(contact) 59sysLocation = $(location) 60sysObjectId = 1.3.6.1.4.1.12325.1.1.2.1.$(system) 61 62snmpEnableAuthenTraps = 2 63 64# 65# Load MIB-2 module 66# 67begemotSnmpdModulePath."mibII" = "/usr/lib/snmp_mibII.so" 68 69# Force a polling rate for the 64-bit interface counters in case 70# the automatic computation is wrong (which may be the case if an interface 71# announces the wrong bit rate via its MIB). 72#%mibII 73#begemotIfForcePoll = 2000 74 75# 76# Netgraph module 77# 78#begemotSnmpdModulePath."netgraph" = "/usr/lib/snmp_netgraph.so" 79# 80#%netgraph 81#begemotNgControlNodeName = "snmpd" 82 83# 84# pf(4) module 85# 86#begemotSnmpdModulePath."pf" = "/usr/lib/snmp_pf.so" 87 88# 89# Host resources module 90# This requires the mibII module. 91# 92#begemotSnmpdModulePath."hostres" = "/usr/lib/snmp_hostres.so" 93