snmpd.config revision 156070
1145184Sglebius# $FreeBSD: head/etc/snmpd.config 156070 2006-02-27 16:31:01Z harti $ 2145184Sglebius# 3145184Sglebius# Example configuration file for bsnmpd(1). 4145184Sglebius# 5145184Sglebius 6145184Sglebius# 7145184Sglebius# Set some common variables 8145184Sglebius# 9155458Sglebiushost := foobar 10145184Sglebiuslocation := "Room 200" 11155768Scericontact := "sysmeister@example.com" 12145184Sglebiussystem := 1 # FreeBSD 13155458Sglebiustraphost := localhost 14145184Sglebiustrapport := 162 15145184Sglebius 16145184Sglebius# Change this! 17145184Sglebiusread := "public" 18154186Sharti# Uncomment line 42 that sets the community string to enable write access. 19145184Sglebiuswrite := "geheim" 20145184Sglebiustrap := "mytrap" 21145184Sglebius 22145184Sglebius# 23145184Sglebius# Configuration 24145184Sglebius# 25145184Sglebius%snmpd 26145184SglebiusbegemotSnmpdDebugDumpPdus = 2 27145184SglebiusbegemotSnmpdDebugSyslogPri = 7 28145184Sglebius 29154186Sharti# 30154186Sharti# Set the read and write communities. 31154186Sharti# 32154186Sharti# The default value of the community strings is NULL (note, that this is 33154186Sharti# different from the empty string). This disables both read and write access. 34154186Sharti# To enable read access only the read community string must be set. Setting 35154186Sharti# the write community string enables both read and write access with that 36154186Sharti# string. 37154186Sharti# 38154186Sharti# Be sure to understand the security implications of SNMPv2 - the community 39154186Sharti# strings are readable on the wire! 40154186Sharti# 41145184SglebiusbegemotSnmpdCommunityString.0.1 = $(read) 42154186Sharti# begemotSnmpdCommunityString.0.2 = $(write) 43145184SglebiusbegemotSnmpdCommunityDisable = 1 44145184Sglebius 45145184Sglebius# open standard SNMP ports 46145184SglebiusbegemotSnmpdPortStatus.[$(host)].161 = 1 47145184SglebiusbegemotSnmpdPortStatus.127.0.0.1.161 = 1 48145184Sglebius 49145184Sglebius# open a unix domain socket 50145184SglebiusbegemotSnmpdLocalPortStatus."/var/run/snmpd.sock" = 1 51145184SglebiusbegemotSnmpdLocalPortType."/var/run/snmpd.sock" = 4 52145184Sglebius 53145184Sglebius# send traps to the traphost 54145184SglebiusbegemotTrapSinkStatus.[$(traphost)].$(trapport) = 4 55145184SglebiusbegemotTrapSinkVersion.[$(traphost)].$(trapport) = 2 56145184SglebiusbegemotTrapSinkComm.[$(traphost)].$(trapport) = $(trap) 57145184Sglebius 58145184SglebiussysContact = $(contact) 59145184SglebiussysLocation = $(location) 60145184SglebiussysObjectId = 1.3.6.1.4.1.12325.1.1.2.1.$(system) 61145184Sglebius 62145184SglebiussnmpEnableAuthenTraps = 2 63145184Sglebius 64145184Sglebius# 65145184Sglebius# Load MIB-2 module 66145184Sglebius# 67145184SglebiusbegemotSnmpdModulePath."mibII" = "/usr/lib/snmp_mibII.so" 68145184Sglebius 69156070Sharti# Force a polling rate for the 64-bit interface counters in case 70156070Sharti# the automatic computation is wrong (which may be the case if an interface 71156070Sharti# announces the wrong bit rate via its MIB). 72156070Sharti#%mibII 73156070Sharti#begemotIfForcePoll = 2000 74156070Sharti 75145184Sglebius# 76145184Sglebius# Netgraph module 77145184Sglebius# 78145184Sglebius#begemotSnmpdModulePath."netgraph" = "/usr/lib/snmp_netgraph.so" 79145184Sglebius# 80145184Sglebius#%netgraph 81145184Sglebius#begemotNgControlNodeName = "snmpd" 82145184Sglebius 83145184Sglebius# 84145184Sglebius# pf(4) module 85145184Sglebius# 86145184Sglebius#begemotSnmpdModulePath."pf" = "/usr/lib/snmp_pf.so" 87154177Sharti 88154177Sharti# 89154177Sharti# Host resources module 90154177Sharti# This requires the mibII module. 91154177Sharti# 92154177Sharti#begemotSnmpdModulePath."hostres" = "/usr/lib/snmp_hostres.so" 93