Deleted Added
full compact
snmpd.config (165419) snmpd.config (165685)
1# $FreeBSD: head/etc/snmpd.config 165419 2006-12-20 22:10:34Z syrinx $
1# $FreeBSD: head/etc/snmpd.config 165685 2006-12-31 11:19:48Z maxim $
2#
3# Example configuration file for bsnmpd(1).
4#
5
6#
7# Set some common variables
8#
9location := "Room 200"
10contact := "sysmeister@example.com"
11system := 1 # FreeBSD
12traphost := localhost
13trapport := 162
14
15# Change this!
16read := "public"
2#
3# Example configuration file for bsnmpd(1).
4#
5
6#
7# Set some common variables
8#
9location := "Room 200"
10contact := "sysmeister@example.com"
11system := 1 # FreeBSD
12traphost := localhost
13trapport := 162
14
15# Change this!
16read := "public"
17# Uncomment line 42 that sets the community string to enable write access.
17# Uncomment begemotSnmpdCommunityString.0.2 below that sets the community
18# string to enable write access.
18write := "geheim"
19trap := "mytrap"
20
21#
22# Configuration
23#
24%snmpd
25begemotSnmpdDebugDumpPdus = 2
26begemotSnmpdDebugSyslogPri = 7
27
28#
29# Set the read and write communities.
30#
31# The default value of the community strings is NULL (note, that this is
32# different from the empty string). This disables both read and write access.
33# To enable read access only the read community string must be set. Setting
34# the write community string enables both read and write access with that
35# string.
36#
37# Be sure to understand the security implications of SNMPv2 - the community
38# strings are readable on the wire!
39#
40begemotSnmpdCommunityString.0.1 = $(read)
41# begemotSnmpdCommunityString.0.2 = $(write)
42begemotSnmpdCommunityDisable = 1
43
44# open standard SNMP ports
45begemotSnmpdPortStatus.0.0.0.0.161 = 1
46
47# open a unix domain socket
48begemotSnmpdLocalPortStatus."/var/run/snmpd.sock" = 1
49begemotSnmpdLocalPortType."/var/run/snmpd.sock" = 4
50
51# send traps to the traphost
52begemotTrapSinkStatus.[$(traphost)].$(trapport) = 4
53begemotTrapSinkVersion.[$(traphost)].$(trapport) = 2
54begemotTrapSinkComm.[$(traphost)].$(trapport) = $(trap)
55
56sysContact = $(contact)
57sysLocation = $(location)
58sysObjectId = 1.3.6.1.4.1.12325.1.1.2.1.$(system)
59
60snmpEnableAuthenTraps = 2
61
62#
63# Load MIB-2 module
64#
65begemotSnmpdModulePath."mibII" = "/usr/lib/snmp_mibII.so"
66
67# Force a polling rate for the 64-bit interface counters in case
68# the automatic computation is wrong (which may be the case if an interface
69# announces the wrong bit rate via its MIB).
70#%mibII
71#begemotIfForcePoll = 2000
72
73#
74# Netgraph module
75#
76#begemotSnmpdModulePath."netgraph" = "/usr/lib/snmp_netgraph.so"
77#
78#%netgraph
79#begemotNgControlNodeName = "snmpd"
80
81#
82# pf(4) module
83#
84#begemotSnmpdModulePath."pf" = "/usr/lib/snmp_pf.so"
85
86#
87# Host resources module
88# This requires the mibII module.
89#
90#begemotSnmpdModulePath."hostres" = "/usr/lib/snmp_hostres.so"
91
92#
93# Bridge module
94# This requires the mibII module.
95#
96#begemotSnmpdModulePath."bridge" = "/usr/lib/snmp_bridge.so"
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.0.0.0.0.161 = 1
47
48# open a unix domain socket
49begemotSnmpdLocalPortStatus."/var/run/snmpd.sock" = 1
50begemotSnmpdLocalPortType."/var/run/snmpd.sock" = 4
51
52# send traps to the traphost
53begemotTrapSinkStatus.[$(traphost)].$(trapport) = 4
54begemotTrapSinkVersion.[$(traphost)].$(trapport) = 2
55begemotTrapSinkComm.[$(traphost)].$(trapport) = $(trap)
56
57sysContact = $(contact)
58sysLocation = $(location)
59sysObjectId = 1.3.6.1.4.1.12325.1.1.2.1.$(system)
60
61snmpEnableAuthenTraps = 2
62
63#
64# Load MIB-2 module
65#
66begemotSnmpdModulePath."mibII" = "/usr/lib/snmp_mibII.so"
67
68# Force a polling rate for the 64-bit interface counters in case
69# the automatic computation is wrong (which may be the case if an interface
70# announces the wrong bit rate via its MIB).
71#%mibII
72#begemotIfForcePoll = 2000
73
74#
75# Netgraph module
76#
77#begemotSnmpdModulePath."netgraph" = "/usr/lib/snmp_netgraph.so"
78#
79#%netgraph
80#begemotNgControlNodeName = "snmpd"
81
82#
83# pf(4) module
84#
85#begemotSnmpdModulePath."pf" = "/usr/lib/snmp_pf.so"
86
87#
88# Host resources module
89# This requires the mibII module.
90#
91#begemotSnmpdModulePath."hostres" = "/usr/lib/snmp_hostres.so"
92
93#
94# Bridge module
95# This requires the mibII module.
96#
97#begemotSnmpdModulePath."bridge" = "/usr/lib/snmp_bridge.so"