summaryrefslogtreecommitdiff
path: root/etc/snmpd.config
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2005-04-17 10:47:58 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2005-04-17 10:47:58 +0000
commit8d6e44f80fc527d96a6133d0c86d9c2d3e6a4c1c (patch)
tree30692d45cbf7d0fb3817d031076c0d7385e67395 /etc/snmpd.config
parent3033cea56c867fdc8b06e816ada188d20655d0a8 (diff)
Notes
Diffstat (limited to 'etc/snmpd.config')
-rw-r--r--etc/snmpd.config67
1 files changed, 67 insertions, 0 deletions
diff --git a/etc/snmpd.config b/etc/snmpd.config
new file mode 100644
index 000000000000..22603737611c
--- /dev/null
+++ b/etc/snmpd.config
@@ -0,0 +1,67 @@
+# $FreeBSD$
+#
+# Example configuration file for bsnmpd(1).
+#
+
+#
+# Set some common variables
+#
+host := foo.bar.com
+location := "Room 200"
+contact := "sysmeister@bar.com"
+system := 1 # FreeBSD
+traphost := noc.bar.com
+trapport := 162
+
+# Change this!
+read := "public"
+write := "geheim"
+trap := "mytrap"
+
+#
+# Configuration
+#
+%snmpd
+begemotSnmpdDebugDumpPdus = 2
+begemotSnmpdDebugSyslogPri = 7
+
+begemotSnmpdCommunityString.0.1 = $(read)
+begemotSnmpdCommunityString.0.2 = $(write)
+begemotSnmpdCommunityDisable = 1
+
+# open standard SNMP ports
+begemotSnmpdPortStatus.[$(host)].161 = 1
+begemotSnmpdPortStatus.127.0.0.1.161 = 1
+
+# open a unix domain socket
+begemotSnmpdLocalPortStatus."/var/run/snmpd.sock" = 1
+begemotSnmpdLocalPortType."/var/run/snmpd.sock" = 4
+
+# send traps to the traphost
+begemotTrapSinkStatus.[$(traphost)].$(trapport) = 4
+begemotTrapSinkVersion.[$(traphost)].$(trapport) = 2
+begemotTrapSinkComm.[$(traphost)].$(trapport) = $(trap)
+
+sysContact = $(contact)
+sysLocation = $(location)
+sysObjectId = 1.3.6.1.4.1.12325.1.1.2.1.$(system)
+
+snmpEnableAuthenTraps = 2
+
+#
+# Load MIB-2 module
+#
+begemotSnmpdModulePath."mibII" = "/usr/lib/snmp_mibII.so"
+
+#
+# Netgraph module
+#
+#begemotSnmpdModulePath."netgraph" = "/usr/lib/snmp_netgraph.so"
+#
+#%netgraph
+#begemotNgControlNodeName = "snmpd"
+
+#
+# pf(4) module
+#
+#begemotSnmpdModulePath."pf" = "/usr/lib/snmp_pf.so"