1122394Sharti#
2122394Sharti# Copyright (c) 2001-2003
3122394Sharti#	Fraunhofer Institute for Open Communication Systems (FhG Fokus).
4122394Sharti#	All rights reserved.
5122394Sharti#
6122394Sharti# Author: Harti Brandt <harti@freebsd.org>
7133211Sharti# 
8133211Sharti# Redistribution and use in source and binary forms, with or without
9133211Sharti# modification, are permitted provided that the following conditions
10133211Sharti# are met:
11133211Sharti# 1. Redistributions of source code must retain the above copyright
12133211Sharti#    notice, this list of conditions and the following disclaimer.
13122394Sharti# 2. Redistributions in binary form must reproduce the above copyright
14122394Sharti#    notice, this list of conditions and the following disclaimer in the
15122394Sharti#    documentation and/or other materials provided with the distribution.
16133211Sharti# 
17133211Sharti# THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
18133211Sharti# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19133211Sharti# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20133211Sharti# ARE DISCLAIMED.  IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE
21133211Sharti# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22133211Sharti# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23133211Sharti# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24133211Sharti# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25133211Sharti# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26133211Sharti# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27133211Sharti# SUCH DAMAGE.
28122394Sharti#
29156066Sharti# $Begemot: bsnmp/snmpd/snmpd.config,v 1.16 2006/02/14 09:04:20 brandt_h Exp $
30122394Sharti#
31122394Sharti# Example configuration file.
32122394Sharti#
33122394Sharti
34122394Sharti#
35122394Sharti# Set some common variables
36122394Sharti#
37122394Shartihost := foo.bar.com
38122394Shartilocation := "Room 200"
39122394Sharticontact := "sysmeister@bar.com"
40122394Shartisystem := 1	# FreeBSD
41122394Shartitraphost := noc.bar.com
42122394Shartitrapport := 162
43122394Sharti
44122394Shartiread := "public"
45154180Sharti# Uncomment the line below that sets the community string
46154180Sharti# to enable write access.
47122394Shartiwrite := "geheim"
48122394Shartitrap := "mytrap"
49122394Sharti
50122394Sharti#
51122394Sharti# Configuration
52122394Sharti#
53122394Sharti%snmpd
54122394ShartibegemotSnmpdDebugDumpPdus	= 2
55122394ShartibegemotSnmpdDebugSyslogPri	= 7
56122394Sharti
57154180Sharti#
58154180Sharti# Set the read and write communities.
59154180Sharti#
60154180Sharti# The default value of the community strings is NULL (note, that this is
61154180Sharti# different from the empty string). This disables both read and write access.
62154180Sharti# To enable read access only the read community string must be set. Setting
63154180Sharti# the write community string enables both read and write access with that
64154180Sharti# string.
65154180Sharti#
66154180Sharti# Be sure to understand the security implications of SNMPv2 - the community
67154180Sharti# strings are readable on the wire!
68154180Sharti#
69122394ShartibegemotSnmpdCommunityString.0.1	= $(read)
70154180Sharti# begemotSnmpdCommunityString.0.2	= $(write)
71122394ShartibegemotSnmpdCommunityDisable	= 1
72122394Sharti
73122394Sharti# open standard SNMP ports
74122394ShartibegemotSnmpdPortStatus.[$(host)].161 = 1
75122394ShartibegemotSnmpdPortStatus.127.0.0.1.161 = 1
76122394Sharti
77122394Sharti# open a unix domain socket
78122394ShartibegemotSnmpdLocalPortStatus."/var/run/snmpd.sock" = 1
79142810ShartibegemotSnmpdLocalPortType."/var/run/snmpd.sock" = 4
80122394Sharti
81122394Sharti# send traps to the traphost
82128237ShartibegemotTrapSinkStatus.[$(traphost)].$(trapport) = 4
83128237ShartibegemotTrapSinkVersion.[$(traphost)].$(trapport) = 2
84128237ShartibegemotTrapSinkComm.[$(traphost)].$(trapport) = $(trap)
85122394Sharti
86122394ShartisysContact	= $(contact)
87122394ShartisysLocation	= $(location)
88122394ShartisysObjectId 	= 1.3.6.1.4.1.12325.1.1.2.1.$(system)
89122394Sharti
90122394ShartisnmpEnableAuthenTraps = 2
91122394Sharti
92122394Sharti#
93122394Sharti# Load MIB-2 module
94122394Sharti#
95122394ShartibegemotSnmpdModulePath."mibII"	= "/usr/local/lib/snmp_mibII.so"
96122394Sharti
97122394Sharti#
98122394Sharti# Netgraph module
99122394Sharti#
100122394ShartibegemotSnmpdModulePath."netgraph" = "/usr/local/lib/snmp_netgraph.so"
101122394Sharti
102122394Sharti%netgraph
103122394ShartibegemotNgControlNodeName = "snmpd"
104