snmpd.config revision 163823
177999Sache# $FreeBSD: head/etc/snmpd.config 163823 2006-10-31 10:23:28Z harti $ 277999Sache# 377999Sache# Example configuration file for bsnmpd(1). 477999Sache# 577999Sache 677999Sache# 777999Sache# Set some common variables 877999Sache# 977999Sachelocation := "Room 200" 1077999Sachecontact := "sysmeister@example.com" 1177999Sachesystem := 1 # FreeBSD 1277999Sachetraphost := localhost 1377999Sachetrapport := 162 1477999Sache 1577999Sache# Change this! 1677999Sacheread := "public" 1777999Sache# Uncomment line 42 that sets the community string to enable write access. 1877999Sachewrite := "geheim" 1977999Sachetrap := "mytrap" 2077999Sache 2177999Sache# 2277999Sache# Configuration 2377999Sache# 2477999Sache%snmpd 2577999SachebegemotSnmpdDebugDumpPdus = 2 2677999SachebegemotSnmpdDebugSyslogPri = 7 2777999Sache 2877999Sache# 2977999Sache# Set the read and write communities. 3077999Sache# 3177999Sache# The default value of the community strings is NULL (note, that this is 3277999Sache# different from the empty string). This disables both read and write access. 3377999Sache# To enable read access only the read community string must be set. Setting 3477999Sache# the write community string enables both read and write access with that 3577999Sache# string. 3677999Sache# 3777999Sache# Be sure to understand the security implications of SNMPv2 - the community 3877999Sache# strings are readable on the wire! 3977999Sache# 4077999SachebegemotSnmpdCommunityString.0.1 = $(read) 4177999Sache# begemotSnmpdCommunityString.0.2 = $(write) 4277999SachebegemotSnmpdCommunityDisable = 1 4377999Sache 4477999Sache# open standard SNMP ports 4577999SachebegemotSnmpdPortStatus.0.0.0.0.161 = 1 4677999Sache 4777999Sache# open a unix domain socket 4877999SachebegemotSnmpdLocalPortStatus."/var/run/snmpd.sock" = 1 4977999SachebegemotSnmpdLocalPortType."/var/run/snmpd.sock" = 4 5077999Sache 5177999Sache# send traps to the traphost 5277999SachebegemotTrapSinkStatus.[$(traphost)].$(trapport) = 4 5377999SachebegemotTrapSinkVersion.[$(traphost)].$(trapport) = 2 5477999SachebegemotTrapSinkComm.[$(traphost)].$(trapport) = $(trap) 5577999Sache 5677999SachesysContact = $(contact) 5777999SachesysLocation = $(location) 5877999SachesysObjectId = 1.3.6.1.4.1.12325.1.1.2.1.$(system) 5977999Sache 6077999SachesnmpEnableAuthenTraps = 2 6177999Sache 6277999Sache# 6377999Sache# Load MIB-2 module 6477999Sache# 6577999SachebegemotSnmpdModulePath."mibII" = "/usr/lib/snmp_mibII.so" 6677999Sache 6777999Sache# Force a polling rate for the 64-bit interface counters in case 6877999Sache# the automatic computation is wrong (which may be the case if an interface 6977999Sache# announces the wrong bit rate via its MIB). 7077999Sache#%mibII 7177999Sache#begemotIfForcePoll = 2000 7277999Sache 7377999Sache# 7477999Sache# Netgraph module 7577999Sache# 7677999Sache#begemotSnmpdModulePath."netgraph" = "/usr/lib/snmp_netgraph.so" 7777999Sache# 7877999Sache#%netgraph 7977999Sache#begemotNgControlNodeName = "snmpd" 8077999Sache 8177999Sache# 8277999Sache# pf(4) module 8377999Sache# 8477999Sache#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