diff options
author | glebius <glebius@FreeBSD.org> | 2005-04-17 10:47:58 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2005-04-17 10:47:58 +0000 |
commit | 07ad0b76bc3c463f046619730731fb80590119aa (patch) | |
tree | 30692d45cbf7d0fb3817d031076c0d7385e67395 /etc/snmpd.config | |
parent | 0fd846eb5e25bb6a49303919122074b94c5a88e9 (diff) | |
download | FreeBSD-src-07ad0b76bc3c463f046619730731fb80590119aa.zip FreeBSD-src-07ad0b76bc3c463f046619730731fb80590119aa.tar.gz |
Add startup script and default configuration file for bsnmpd.
Reviewed by: harti
Diffstat (limited to 'etc/snmpd.config')
-rw-r--r-- | etc/snmpd.config | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/etc/snmpd.config b/etc/snmpd.config new file mode 100644 index 0000000..2260373 --- /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" |