snmpd.config revision 154177
167760Smsmith# $FreeBSD: head/etc/snmpd.config 154177 2006-01-10 11:43:25Z harti $ 267760Smsmith# 367760Smsmith# Example configuration file for bsnmpd(1). 467760Smsmith# 567760Smsmith 667760Smsmith# 767760Smsmith# Set some common variables 867760Smsmith# 967760Smsmithhost := foo.bar.com 1067760Smsmithlocation := "Room 200" 1167760Smsmithcontact := "sysmeister@bar.com" 1267760Smsmithsystem := 1 # FreeBSD 1367760Smsmithtraphost := noc.bar.com 1467760Smsmithtrapport := 162 1567760Smsmith 1667760Smsmith# Change this! 1767760Smsmithread := "public" 1867760Smsmithwrite := "geheim" 1967760Smsmithtrap := "mytrap" 2067760Smsmith 2167760Smsmith# 2267760Smsmith# Configuration 2367760Smsmith# 2467760Smsmith%snmpd 2567760SmsmithbegemotSnmpdDebugDumpPdus = 2 2667760SmsmithbegemotSnmpdDebugSyslogPri = 7 2767760Smsmith 2867760SmsmithbegemotSnmpdCommunityString.0.1 = $(read) 2967760SmsmithbegemotSnmpdCommunityString.0.2 = $(write) 3067760SmsmithbegemotSnmpdCommunityDisable = 1 3167760Smsmith 32148318Snjl# open standard SNMP ports 33148318SnjlbegemotSnmpdPortStatus.[$(host)].161 = 1 34148318SnjlbegemotSnmpdPortStatus.127.0.0.1.161 = 1 3567760Smsmith 3667760Smsmith# open a unix domain socket 37131910SmarcelbegemotSnmpdLocalPortStatus."/var/run/snmpd.sock" = 1 3867760SmsmithbegemotSnmpdLocalPortType."/var/run/snmpd.sock" = 4 3967760Smsmith 4067760Smsmith# send traps to the traphost 41128240SnjlbegemotTrapSinkStatus.[$(traphost)].$(trapport) = 4 42128240SnjlbegemotTrapSinkVersion.[$(traphost)].$(trapport) = 2 4367760SmsmithbegemotTrapSinkComm.[$(traphost)].$(trapport) = $(trap) 44193530Sjkim 45193530SjkimsysContact = $(contact) 46193530SjkimsysLocation = $(location) 47193530SjkimsysObjectId = 1.3.6.1.4.1.12325.1.1.2.1.$(system) 4867760Smsmith 4967760SmsmithsnmpEnableAuthenTraps = 2 50222544Sjkim 51222544Sjkim# 5267760Smsmith# Load MIB-2 module 5367760Smsmith# 54222544SjkimbegemotSnmpdModulePath."mibII" = "/usr/lib/snmp_mibII.so" 5567760Smsmith 56222544Sjkim# 57222544Sjkim# Netgraph module 58222544Sjkim# 59222544Sjkim#begemotSnmpdModulePath."netgraph" = "/usr/lib/snmp_netgraph.so" 60222544Sjkim# 61222544Sjkim#%netgraph 62222544Sjkim#begemotNgControlNodeName = "snmpd" 63222544Sjkim 6467760Smsmith# 65222544Sjkim# pf(4) module 66222544Sjkim# 67128225Snjl#begemotSnmpdModulePath."pf" = "/usr/lib/snmp_pf.so" 6867760Smsmith 6967760Smsmith# 7080071Smsmith# Host resources module 71128225Snjl# This requires the mibII module. 7280071Smsmith# 7380071Smsmith#begemotSnmpdModulePath."hostres" = "/usr/lib/snmp_hostres.so" 74134628Snjl