1# 2# Copyright (c) 2001-2003 3# Fraunhofer Institute for Open Communication Systems (FhG Fokus). 4# All rights reserved. 5# 6# Author: Harti Brandt <harti@freebsd.org> 7# 8# Redistribution and use in source and binary forms, with or without 9# modification, are permitted provided that the following conditions 10# are met: 11# 1. Redistributions of source code must retain the above copyright 12# notice, this list of conditions and the following disclaimer. 13# 2. Redistributions in binary form must reproduce the above copyright 14# notice, this list of conditions and the following disclaimer in the 15# documentation and/or other materials provided with the distribution. 16# 17# THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND 18# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20# ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE 21# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27# SUCH DAMAGE. 28# 29# $Begemot: bsnmp/snmpd/snmpd.config,v 1.16 2006/02/14 09:04:20 brandt_h Exp $ 30# 31# Example configuration file. 32# 33 34# 35# Set some common variables 36# 37host := foo.bar.com 38location := "Room 200" 39contact := "sysmeister@bar.com" 40system := 1 # FreeBSD 41traphost := noc.bar.com 42trapport := 162 43 44read := "public" 45# Uncomment the line below that sets the community string 46# to enable write access. 47write := "geheim" 48trap := "mytrap" 49 50# 51# Configuration 52# 53%snmpd 54begemotSnmpdDebugDumpPdus = 2 55begemotSnmpdDebugSyslogPri = 7 56 57# 58# Set the read and write communities. 59# 60# The default value of the community strings is NULL (note, that this is 61# different from the empty string). This disables both read and write access. 62# To enable read access only the read community string must be set. Setting 63# the write community string enables both read and write access with that 64# string. 65# 66# Be sure to understand the security implications of SNMPv2 - the community 67# strings are readable on the wire! 68# 69begemotSnmpdCommunityString.0.1 = $(read) 70# begemotSnmpdCommunityString.0.2 = $(write) 71# begemotSnmpdCommunityString.0.3 = "otherPublic" 72begemotSnmpdCommunityDisable = 1 73 74# open standard SNMP ports 75# begemotSnmpdPortStatus.[$(host)].161 = 1 76# begemotSnmpdPortStatus.127.0.0.1.161 = 1 77 78# UDP over IPv4: 127.0.0.1:161 79begemotSnmpdTransInetStatus.1.4.127.0.0.1.161.1 = 4 80 81# UDP over IPv6: ::1:161 82begemotSnmpdTransInetStatus.2.16.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.1.161.1 = 4 83 84# Use domain name and IPv6 link-local address with scope zone id as address 85# begemotSnmpdTransInetStatus.16."localhost".161.1 = 4 86# begemotSnmpdTransInetStatus.16."fe80::1%em0".161.1 = 4 87 88# open a unix domain socket 89begemotSnmpdLocalPortStatus."/var/run/snmpd.sock" = 1 90begemotSnmpdLocalPortType."/var/run/snmpd.sock" = 4 91 92# send traps to the traphost 93begemotTrapSinkStatus.[$(traphost)].$(trapport) = 4 94begemotTrapSinkVersion.[$(traphost)].$(trapport) = 2 95begemotTrapSinkComm.[$(traphost)].$(trapport) = $(trap) 96 97sysContact = $(contact) 98sysLocation = $(location) 99sysObjectId = 1.3.6.1.4.1.12325.1.1.2.1.$(system) 100 101snmpEnableAuthenTraps = 2 102 103# 104# Load MIB-2 module 105# 106begemotSnmpdModulePath."mibII" = "/usr/local/lib/snmp_mibII.so" 107 108# 109# Netgraph module 110# 111begemotSnmpdModulePath."netgraph" = "/usr/local/lib/snmp_netgraph.so" 112 113%netgraph 114begemotNgControlNodeName = "snmpd" 115