snmpd.config revision 128237
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>
7122394Sharti#
8122394Sharti# Redistribution of this software and documentation and use in source and
9122394Sharti# binary forms, with or without modification, are permitted provided that
10122394Sharti# the following conditions are met:
11122394Sharti#
12122394Sharti# 1. Redistributions of source code or documentation must retain the above
13122394Sharti#    copyright notice, this list of conditions and the following disclaimer.
14122394Sharti# 2. Redistributions in binary form must reproduce the above copyright
15122394Sharti#    notice, this list of conditions and the following disclaimer in the
16122394Sharti#    documentation and/or other materials provided with the distribution.
17122394Sharti# 3. Neither the name of the Institute nor the names of its contributors
18122394Sharti#    may be used to endorse or promote products derived from this software
19122394Sharti#    without specific prior written permission.
20122394Sharti#
21122394Sharti# THIS SOFTWARE AND DOCUMENTATION IS PROVIDED BY FRAUNHOFER FOKUS
22122394Sharti# AND ITS CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
23122394Sharti# INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
24122394Sharti# FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL
25122394Sharti# FRAUNHOFER FOKUS OR ITS CONTRIBUTORS  BE LIABLE FOR ANY DIRECT, INDIRECT,
26122394Sharti# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27122394Sharti# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
28122394Sharti# OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
29122394Sharti# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
30122394Sharti# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
31122394Sharti# EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32122394Sharti#
33128237Sharti# $Begemot: bsnmp/snmpd/snmpd.config,v 1.13 2004/04/13 15:00:00 novo Exp $
34122394Sharti#
35122394Sharti# Example configuration file.
36122394Sharti#
37122394Sharti
38122394Sharti#
39122394Sharti# Set some common variables
40122394Sharti#
41122394Shartihost := foo.bar.com
42122394Shartilocation := "Room 200"
43122394Sharticontact := "sysmeister@bar.com"
44122394Shartisystem := 1	# FreeBSD
45122394Shartitraphost := noc.bar.com
46122394Shartitrapport := 162
47122394Sharti
48122394Shartiread := "public"
49122394Shartiwrite := "geheim"
50122394Shartitrap := "mytrap"
51122394Sharti
52122394Sharti#
53122394Sharti# Configuration
54122394Sharti#
55122394Sharti%snmpd
56122394ShartibegemotSnmpdDebugDumpPdus	= 2
57122394ShartibegemotSnmpdDebugSyslogPri	= 7
58122394Sharti
59122394ShartibegemotSnmpdCommunityString.0.1	= $(read)
60122394ShartibegemotSnmpdCommunityString.0.2	= $(write)
61122394ShartibegemotSnmpdCommunityDisable	= 1
62122394Sharti
63122394Sharti# open standard SNMP ports
64122394ShartibegemotSnmpdPortStatus.[$(host)].161 = 1
65122394ShartibegemotSnmpdPortStatus.127.0.0.1.161 = 1
66122394Sharti
67122394Sharti# open a unix domain socket
68122394ShartibegemotSnmpdLocalPortStatus."/var/run/snmpd.sock" = 1
69122394Sharti
70122394Sharti# send traps to the traphost
71128237ShartibegemotTrapSinkStatus.[$(traphost)].$(trapport) = 4
72128237ShartibegemotTrapSinkVersion.[$(traphost)].$(trapport) = 2
73128237ShartibegemotTrapSinkComm.[$(traphost)].$(trapport) = $(trap)
74122394Sharti
75122394ShartisysContact	= $(contact)
76122394ShartisysLocation	= $(location)
77122394ShartisysObjectId 	= 1.3.6.1.4.1.12325.1.1.2.1.$(system)
78122394Sharti
79122394ShartisnmpEnableAuthenTraps = 2
80122394Sharti
81122394Sharti#
82122394Sharti# Load MIB-2 module
83122394Sharti#
84122394ShartibegemotSnmpdModulePath."mibII"	= "/usr/local/lib/snmp_mibII.so"
85122394Sharti
86122394Sharti#
87122394Sharti# Netgraph module
88122394Sharti#
89122394ShartibegemotSnmpdModulePath."netgraph" = "/usr/local/lib/snmp_netgraph.so"
90122394Sharti
91122394Sharti%netgraph
92122394ShartibegemotNgControlNodeName = "snmpd"
93