snmpd.config revision 154177
1145184Sglebius# $FreeBSD: head/etc/snmpd.config 154177 2006-01-10 11:43:25Z harti $ 2145184Sglebius# 3145184Sglebius# Example configuration file for bsnmpd(1). 4145184Sglebius# 5145184Sglebius 6145184Sglebius# 7145184Sglebius# Set some common variables 8145184Sglebius# 9145184Sglebiushost := foo.bar.com 10145184Sglebiuslocation := "Room 200" 11145184Sglebiuscontact := "sysmeister@bar.com" 12145184Sglebiussystem := 1 # FreeBSD 13145184Sglebiustraphost := noc.bar.com 14145184Sglebiustrapport := 162 15145184Sglebius 16145184Sglebius# Change this! 17145184Sglebiusread := "public" 18145184Sglebiuswrite := "geheim" 19145184Sglebiustrap := "mytrap" 20145184Sglebius 21145184Sglebius# 22145184Sglebius# Configuration 23145184Sglebius# 24145184Sglebius%snmpd 25145184SglebiusbegemotSnmpdDebugDumpPdus = 2 26145184SglebiusbegemotSnmpdDebugSyslogPri = 7 27145184Sglebius 28145184SglebiusbegemotSnmpdCommunityString.0.1 = $(read) 29145184SglebiusbegemotSnmpdCommunityString.0.2 = $(write) 30145184SglebiusbegemotSnmpdCommunityDisable = 1 31145184Sglebius 32145184Sglebius# open standard SNMP ports 33145184SglebiusbegemotSnmpdPortStatus.[$(host)].161 = 1 34145184SglebiusbegemotSnmpdPortStatus.127.0.0.1.161 = 1 35145184Sglebius 36145184Sglebius# open a unix domain socket 37145184SglebiusbegemotSnmpdLocalPortStatus."/var/run/snmpd.sock" = 1 38145184SglebiusbegemotSnmpdLocalPortType."/var/run/snmpd.sock" = 4 39145184Sglebius 40145184Sglebius# send traps to the traphost 41145184SglebiusbegemotTrapSinkStatus.[$(traphost)].$(trapport) = 4 42145184SglebiusbegemotTrapSinkVersion.[$(traphost)].$(trapport) = 2 43145184SglebiusbegemotTrapSinkComm.[$(traphost)].$(trapport) = $(trap) 44145184Sglebius 45145184SglebiussysContact = $(contact) 46145184SglebiussysLocation = $(location) 47145184SglebiussysObjectId = 1.3.6.1.4.1.12325.1.1.2.1.$(system) 48145184Sglebius 49145184SglebiussnmpEnableAuthenTraps = 2 50145184Sglebius 51145184Sglebius# 52145184Sglebius# Load MIB-2 module 53145184Sglebius# 54145184SglebiusbegemotSnmpdModulePath."mibII" = "/usr/lib/snmp_mibII.so" 55145184Sglebius 56145184Sglebius# 57145184Sglebius# Netgraph module 58145184Sglebius# 59145184Sglebius#begemotSnmpdModulePath."netgraph" = "/usr/lib/snmp_netgraph.so" 60145184Sglebius# 61145184Sglebius#%netgraph 62145184Sglebius#begemotNgControlNodeName = "snmpd" 63145184Sglebius 64145184Sglebius# 65145184Sglebius# pf(4) module 66145184Sglebius# 67145184Sglebius#begemotSnmpdModulePath."pf" = "/usr/lib/snmp_pf.so" 68154177Sharti 69154177Sharti# 70154177Sharti# Host resources module 71154177Sharti# This requires the mibII module. 72154177Sharti# 73154177Sharti#begemotSnmpdModulePath."hostres" = "/usr/lib/snmp_hostres.so" 74