snmpd.config revision 165685
1145184Sglebius# $FreeBSD: head/etc/snmpd.config 165685 2006-12-31 11:19:48Z maxim $
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"
17165685Smaxim# Uncomment begemotSnmpdCommunityString.0.2 below that sets the community
18165685Smaxim# 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
46163823ShartibegemotSnmpdPortStatus.0.0.0.0.161 = 1
47145184Sglebius
48145184Sglebius# open a unix domain socket
49145184SglebiusbegemotSnmpdLocalPortStatus."/var/run/snmpd.sock" = 1
50145184SglebiusbegemotSnmpdLocalPortType."/var/run/snmpd.sock" = 4
51145184Sglebius
52145184Sglebius# send traps to the traphost
53145184SglebiusbegemotTrapSinkStatus.[$(traphost)].$(trapport) = 4
54145184SglebiusbegemotTrapSinkVersion.[$(traphost)].$(trapport) = 2
55145184SglebiusbegemotTrapSinkComm.[$(traphost)].$(trapport) = $(trap)
56145184Sglebius
57145184SglebiussysContact	= $(contact)
58145184SglebiussysLocation	= $(location)
59145184SglebiussysObjectId 	= 1.3.6.1.4.1.12325.1.1.2.1.$(system)
60145184Sglebius
61145184SglebiussnmpEnableAuthenTraps = 2
62145184Sglebius
63145184Sglebius#
64145184Sglebius# Load MIB-2 module
65145184Sglebius#
66145184SglebiusbegemotSnmpdModulePath."mibII"	= "/usr/lib/snmp_mibII.so"
67145184Sglebius
68156070Sharti# Force a polling rate for the 64-bit interface counters in case
69156070Sharti# the automatic computation is wrong (which may be the case if an interface
70156070Sharti# announces the wrong bit rate via its MIB).
71156070Sharti#%mibII
72156070Sharti#begemotIfForcePoll = 2000
73156070Sharti
74145184Sglebius#
75145184Sglebius# Netgraph module
76145184Sglebius#
77145184Sglebius#begemotSnmpdModulePath."netgraph" = "/usr/lib/snmp_netgraph.so"
78145184Sglebius#
79145184Sglebius#%netgraph
80145184Sglebius#begemotNgControlNodeName = "snmpd"
81145184Sglebius
82145184Sglebius#
83145184Sglebius# pf(4) module
84145184Sglebius#
85145184Sglebius#begemotSnmpdModulePath."pf"	= "/usr/lib/snmp_pf.so"
86154177Sharti
87154177Sharti#
88154177Sharti# Host resources module
89154177Sharti#  This requires the mibII module.
90154177Sharti#
91154177Sharti#begemotSnmpdModulePath."hostres" = "/usr/lib/snmp_hostres.so"
92165419Ssyrinx
93165419Ssyrinx#
94165419Ssyrinx# Bridge module
95165419Ssyrinx#  This requires the mibII module.
96165419Ssyrinx#
97165419Ssyrinx#begemotSnmpdModulePath."bridge" = "/usr/lib/snmp_bridge.so"
98