snmpd.config revision 154186
1145184Sglebius# $FreeBSD: head/etc/snmpd.config 154186 2006-01-10 12:08:25Z harti $ 2145184Sglebius# 3145184Sglebius# Example configuration file for bsnmpd(1). 4145184Sglebius# 5145184Sglebius 6145184Sglebius# 7145184Sglebius# Set some common variables 8145184Sglebius# 9145184Sglebiushost := foo.bar.com 10145184Sglebiuslocation := "Room 200" 11145184Sglebiuscontact := "sysmeister@bar.com" 12145184Sglebiussystem := 1 # FreeBSD 13145184Sglebiustraphost := noc.bar.com 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 69145184Sglebius# 70145184Sglebius# Netgraph module 71145184Sglebius# 72145184Sglebius#begemotSnmpdModulePath."netgraph" = "/usr/lib/snmp_netgraph.so" 73145184Sglebius# 74145184Sglebius#%netgraph 75145184Sglebius#begemotNgControlNodeName = "snmpd" 76145184Sglebius 77145184Sglebius# 78145184Sglebius# pf(4) module 79145184Sglebius# 80145184Sglebius#begemotSnmpdModulePath."pf" = "/usr/lib/snmp_pf.so" 81154177Sharti 82154177Sharti# 83154177Sharti# Host resources module 84154177Sharti# This requires the mibII module. 85154177Sharti# 86154177Sharti#begemotSnmpdModulePath."hostres" = "/usr/lib/snmp_hostres.so" 87