snmpd.config revision 145184
1178355Ssam# $FreeBSD: head/etc/snmpd.config 145184 2005-04-17 10:47:58Z glebius $ 2178355Ssam# 3178355Ssam# Example configuration file for bsnmpd(1). 4208060Sdougb# 5178355Ssam 6178355Ssam# 7178355Ssam# Set some common variables 8178355Ssam# 9178355Ssamhost := foo.bar.com 10178355Ssamlocation := "Room 200" 11178355Ssamcontact := "sysmeister@bar.com" 12178355Ssamsystem := 1 # FreeBSD 13208060Sdougbtraphost := noc.bar.com 14178355Ssamtrapport := 162 15178355Ssam 16178355Ssam# Change this! 17178355Ssamread := "public" 18178355Ssamwrite := "geheim" 19178355Ssamtrap := "mytrap" 20178355Ssam 21178355Ssam# 22178355Ssam# Configuration 23178355Ssam# 24208060Sdougb%snmpd 25178355SsambegemotSnmpdDebugDumpPdus = 2 26178355SsambegemotSnmpdDebugSyslogPri = 7 27178355Ssam 28178355SsambegemotSnmpdCommunityString.0.1 = $(read) 29178355SsambegemotSnmpdCommunityString.0.2 = $(write) 30178355SsambegemotSnmpdCommunityDisable = 1 31178355Ssam 32178355Ssam# open standard SNMP ports 33178355SsambegemotSnmpdPortStatus.[$(host)].161 = 1 34178355SsambegemotSnmpdPortStatus.127.0.0.1.161 = 1 35178355Ssam 36178355Ssam# open a unix domain socket 37178355SsambegemotSnmpdLocalPortStatus."/var/run/snmpd.sock" = 1 38178355SsambegemotSnmpdLocalPortType."/var/run/snmpd.sock" = 4 39178355Ssam 40178355Ssam# send traps to the traphost 41178355SsambegemotTrapSinkStatus.[$(traphost)].$(trapport) = 4 42186106SsambegemotTrapSinkVersion.[$(traphost)].$(trapport) = 2 43178355SsambegemotTrapSinkComm.[$(traphost)].$(trapport) = $(trap) 44178355Ssam 45178355SsamsysContact = $(contact) 46178355SsamsysLocation = $(location) 47178355SsamsysObjectId = 1.3.6.1.4.1.12325.1.1.2.1.$(system) 48178355Ssam 49178355SsamsnmpEnableAuthenTraps = 2 50178355Ssam 51178355Ssam# 52178355Ssam# Load MIB-2 module 53178355Ssam# 54178355SsambegemotSnmpdModulePath."mibII" = "/usr/lib/snmp_mibII.so" 55178355Ssam 56178355Ssam# 57178355Ssam# Netgraph module 58178355Ssam# 59178355Ssam#begemotSnmpdModulePath."netgraph" = "/usr/lib/snmp_netgraph.so" 60178355Ssam# 61178355Ssam#%netgraph 62178355Ssam#begemotNgControlNodeName = "snmpd" 63178355Ssam 64178355Ssam# 65178355Ssam# pf(4) module 66178355Ssam# 67178355Ssam#begemotSnmpdModulePath."pf" = "/usr/lib/snmp_pf.so" 68178355Ssam