]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - etc/snmpd.config
This commit was generated by cvs2svn to compensate for changes in r147013,
[FreeBSD/FreeBSD.git] / etc / snmpd.config
1 # $FreeBSD$
2 #
3 # Example configuration file for bsnmpd(1).
4 #
5
6 #
7 # Set some common variables
8 #
9 host := foo.bar.com
10 location := "Room 200"
11 contact := "sysmeister@bar.com"
12 system := 1     # FreeBSD
13 traphost := noc.bar.com
14 trapport := 162
15
16 # Change this!
17 read := "public"
18 write := "geheim"
19 trap := "mytrap"
20
21 #
22 # Configuration
23 #
24 %snmpd
25 begemotSnmpdDebugDumpPdus       = 2
26 begemotSnmpdDebugSyslogPri      = 7
27
28 begemotSnmpdCommunityString.0.1 = $(read)
29 begemotSnmpdCommunityString.0.2 = $(write)
30 begemotSnmpdCommunityDisable    = 1
31
32 # open standard SNMP ports
33 begemotSnmpdPortStatus.[$(host)].161 = 1
34 begemotSnmpdPortStatus.127.0.0.1.161 = 1
35
36 # open a unix domain socket
37 begemotSnmpdLocalPortStatus."/var/run/snmpd.sock" = 1
38 begemotSnmpdLocalPortType."/var/run/snmpd.sock" = 4
39
40 # send traps to the traphost
41 begemotTrapSinkStatus.[$(traphost)].$(trapport) = 4
42 begemotTrapSinkVersion.[$(traphost)].$(trapport) = 2
43 begemotTrapSinkComm.[$(traphost)].$(trapport) = $(trap)
44
45 sysContact      = $(contact)
46 sysLocation     = $(location)
47 sysObjectId     = 1.3.6.1.4.1.12325.1.1.2.1.$(system)
48
49 snmpEnableAuthenTraps = 2
50
51 #
52 # Load MIB-2 module
53 #
54 begemotSnmpdModulePath."mibII"  = "/usr/lib/snmp_mibII.so"
55
56 #
57 # Netgraph module
58 #
59 #begemotSnmpdModulePath."netgraph" = "/usr/lib/snmp_netgraph.so"
60 #
61 #%netgraph
62 #begemotNgControlNodeName = "snmpd"
63
64 #
65 # pf(4) module
66 #
67 #begemotSnmpdModulePath."pf"    = "/usr/lib/snmp_pf.so"