1# $FreeBSD: head/etc/snmpd.config 155458 2006-02-08 11:55:03Z glebius $
| 1# $FreeBSD: head/etc/snmpd.config 155768 2006-02-16 20:38:09Z ceri $
|
2# 3# Example configuration file for bsnmpd(1). 4# 5 6# 7# Set some common variables 8# 9host := foobar 10location := "Room 200"
| 2# 3# Example configuration file for bsnmpd(1). 4# 5 6# 7# Set some common variables 8# 9host := foobar 10location := "Room 200"
|
11contact := "sysmeister@bar.com"
| 11contact := "sysmeister@example.com"
|
12system := 1 # FreeBSD 13traphost := localhost 14trapport := 162 15 16# Change this! 17read := "public" 18# Uncomment line 42 that sets the community string to enable write access. 19write := "geheim" 20trap := "mytrap" 21 22# 23# Configuration 24# 25%snmpd 26begemotSnmpdDebugDumpPdus = 2 27begemotSnmpdDebugSyslogPri = 7 28 29# 30# Set the read and write communities. 31# 32# The default value of the community strings is NULL (note, that this is 33# different from the empty string). This disables both read and write access. 34# To enable read access only the read community string must be set. Setting 35# the write community string enables both read and write access with that 36# string. 37# 38# Be sure to understand the security implications of SNMPv2 - the community 39# strings are readable on the wire! 40# 41begemotSnmpdCommunityString.0.1 = $(read) 42# begemotSnmpdCommunityString.0.2 = $(write) 43begemotSnmpdCommunityDisable = 1 44 45# open standard SNMP ports 46begemotSnmpdPortStatus.[$(host)].161 = 1 47begemotSnmpdPortStatus.127.0.0.1.161 = 1 48 49# open a unix domain socket 50begemotSnmpdLocalPortStatus."/var/run/snmpd.sock" = 1 51begemotSnmpdLocalPortType."/var/run/snmpd.sock" = 4 52 53# send traps to the traphost 54begemotTrapSinkStatus.[$(traphost)].$(trapport) = 4 55begemotTrapSinkVersion.[$(traphost)].$(trapport) = 2 56begemotTrapSinkComm.[$(traphost)].$(trapport) = $(trap) 57 58sysContact = $(contact) 59sysLocation = $(location) 60sysObjectId = 1.3.6.1.4.1.12325.1.1.2.1.$(system) 61 62snmpEnableAuthenTraps = 2 63 64# 65# Load MIB-2 module 66# 67begemotSnmpdModulePath."mibII" = "/usr/lib/snmp_mibII.so" 68 69# 70# Netgraph module 71# 72#begemotSnmpdModulePath."netgraph" = "/usr/lib/snmp_netgraph.so" 73# 74#%netgraph 75#begemotNgControlNodeName = "snmpd" 76 77# 78# pf(4) module 79# 80#begemotSnmpdModulePath."pf" = "/usr/lib/snmp_pf.so" 81 82# 83# Host resources module 84# This requires the mibII module. 85# 86#begemotSnmpdModulePath."hostres" = "/usr/lib/snmp_hostres.so"
| 12system := 1 # FreeBSD 13traphost := localhost 14trapport := 162 15 16# Change this! 17read := "public" 18# Uncomment line 42 that sets the community string to enable write access. 19write := "geheim" 20trap := "mytrap" 21 22# 23# Configuration 24# 25%snmpd 26begemotSnmpdDebugDumpPdus = 2 27begemotSnmpdDebugSyslogPri = 7 28 29# 30# Set the read and write communities. 31# 32# The default value of the community strings is NULL (note, that this is 33# different from the empty string). This disables both read and write access. 34# To enable read access only the read community string must be set. Setting 35# the write community string enables both read and write access with that 36# string. 37# 38# Be sure to understand the security implications of SNMPv2 - the community 39# strings are readable on the wire! 40# 41begemotSnmpdCommunityString.0.1 = $(read) 42# begemotSnmpdCommunityString.0.2 = $(write) 43begemotSnmpdCommunityDisable = 1 44 45# open standard SNMP ports 46begemotSnmpdPortStatus.[$(host)].161 = 1 47begemotSnmpdPortStatus.127.0.0.1.161 = 1 48 49# open a unix domain socket 50begemotSnmpdLocalPortStatus."/var/run/snmpd.sock" = 1 51begemotSnmpdLocalPortType."/var/run/snmpd.sock" = 4 52 53# send traps to the traphost 54begemotTrapSinkStatus.[$(traphost)].$(trapport) = 4 55begemotTrapSinkVersion.[$(traphost)].$(trapport) = 2 56begemotTrapSinkComm.[$(traphost)].$(trapport) = $(trap) 57 58sysContact = $(contact) 59sysLocation = $(location) 60sysObjectId = 1.3.6.1.4.1.12325.1.1.2.1.$(system) 61 62snmpEnableAuthenTraps = 2 63 64# 65# Load MIB-2 module 66# 67begemotSnmpdModulePath."mibII" = "/usr/lib/snmp_mibII.so" 68 69# 70# Netgraph module 71# 72#begemotSnmpdModulePath."netgraph" = "/usr/lib/snmp_netgraph.so" 73# 74#%netgraph 75#begemotNgControlNodeName = "snmpd" 76 77# 78# pf(4) module 79# 80#begemotSnmpdModulePath."pf" = "/usr/lib/snmp_pf.so" 81 82# 83# Host resources module 84# This requires the mibII module. 85# 86#begemotSnmpdModulePath."hostres" = "/usr/lib/snmp_hostres.so"
|