snmpd.config revision 165419
1145184Sglebius# $FreeBSD: head/etc/snmpd.config 165419 2006-12-20 22:10:34Z syrinx $ 2145184Sglebius# 3145184Sglebius# Example configuration file for bsnmpd(1). 4145184Sglebius# 5145184Sglebius 6145184Sglebius# 7145184Sglebius# Set some common variables 8145184Sglebius# 9145184Sglebiuslocation := "Room 200" 10155768Scericontact := "sysmeister@example.com" 11145184Sglebiussystem := 1 # FreeBSD 12155458Sglebiustraphost := localhost 13145184Sglebiustrapport := 162 14145184Sglebius 15145184Sglebius# Change this! 16145184Sglebiusread := "public" 17154186Sharti# Uncomment line 42 that sets the community string to enable write access. 18145184Sglebiuswrite := "geheim" 19145184Sglebiustrap := "mytrap" 20145184Sglebius 21145184Sglebius# 22145184Sglebius# Configuration 23145184Sglebius# 24145184Sglebius%snmpd 25145184SglebiusbegemotSnmpdDebugDumpPdus = 2 26145184SglebiusbegemotSnmpdDebugSyslogPri = 7 27145184Sglebius 28154186Sharti# 29154186Sharti# Set the read and write communities. 30154186Sharti# 31154186Sharti# The default value of the community strings is NULL (note, that this is 32154186Sharti# different from the empty string). This disables both read and write access. 33154186Sharti# To enable read access only the read community string must be set. Setting 34154186Sharti# the write community string enables both read and write access with that 35154186Sharti# string. 36154186Sharti# 37154186Sharti# Be sure to understand the security implications of SNMPv2 - the community 38154186Sharti# strings are readable on the wire! 39154186Sharti# 40145184SglebiusbegemotSnmpdCommunityString.0.1 = $(read) 41154186Sharti# begemotSnmpdCommunityString.0.2 = $(write) 42145184SglebiusbegemotSnmpdCommunityDisable = 1 43145184Sglebius 44145184Sglebius# open standard SNMP ports 45163823ShartibegemotSnmpdPortStatus.0.0.0.0.161 = 1 46145184Sglebius 47145184Sglebius# open a unix domain socket 48145184SglebiusbegemotSnmpdLocalPortStatus."/var/run/snmpd.sock" = 1 49145184SglebiusbegemotSnmpdLocalPortType."/var/run/snmpd.sock" = 4 50145184Sglebius 51145184Sglebius# send traps to the traphost 52145184SglebiusbegemotTrapSinkStatus.[$(traphost)].$(trapport) = 4 53145184SglebiusbegemotTrapSinkVersion.[$(traphost)].$(trapport) = 2 54145184SglebiusbegemotTrapSinkComm.[$(traphost)].$(trapport) = $(trap) 55145184Sglebius 56145184SglebiussysContact = $(contact) 57145184SglebiussysLocation = $(location) 58145184SglebiussysObjectId = 1.3.6.1.4.1.12325.1.1.2.1.$(system) 59145184Sglebius 60145184SglebiussnmpEnableAuthenTraps = 2 61145184Sglebius 62145184Sglebius# 63145184Sglebius# Load MIB-2 module 64145184Sglebius# 65145184SglebiusbegemotSnmpdModulePath."mibII" = "/usr/lib/snmp_mibII.so" 66145184Sglebius 67156070Sharti# Force a polling rate for the 64-bit interface counters in case 68156070Sharti# the automatic computation is wrong (which may be the case if an interface 69156070Sharti# announces the wrong bit rate via its MIB). 70156070Sharti#%mibII 71156070Sharti#begemotIfForcePoll = 2000 72156070Sharti 73145184Sglebius# 74145184Sglebius# Netgraph module 75145184Sglebius# 76145184Sglebius#begemotSnmpdModulePath."netgraph" = "/usr/lib/snmp_netgraph.so" 77145184Sglebius# 78145184Sglebius#%netgraph 79145184Sglebius#begemotNgControlNodeName = "snmpd" 80145184Sglebius 81145184Sglebius# 82145184Sglebius# pf(4) module 83145184Sglebius# 84145184Sglebius#begemotSnmpdModulePath."pf" = "/usr/lib/snmp_pf.so" 85154177Sharti 86154177Sharti# 87154177Sharti# Host resources module 88154177Sharti# This requires the mibII module. 89154177Sharti# 90154177Sharti#begemotSnmpdModulePath."hostres" = "/usr/lib/snmp_hostres.so" 91165419Ssyrinx 92165419Ssyrinx# 93165419Ssyrinx# Bridge module 94165419Ssyrinx# This requires the mibII module. 95165419Ssyrinx# 96165419Ssyrinx#begemotSnmpdModulePath."bridge" = "/usr/lib/snmp_bridge.so" 97