File:  [ELWIX - Embedded LightWeight unIX -] / elwix / config / etc / default / snmpd.config
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Tue Jul 5 23:43:00 2011 UTC (13 years ago) by misho
Branches: MAIN
CVS tags: HEAD
Initial revision

    1: # $FreeBSD: src/etc/snmpd.config,v 1.10 2010/07/26 16:20:52 syrinx Exp $
    2: #
    3: # Example configuration file for bsnmpd(1).
    4: #
    5: 
    6: #
    7: # Set some common variables
    8: #
    9: location := "Room 200"
   10: contact := "sysmeister@elwix.org"
   11: system := 1	# FreeBSD
   12: traphost := localhost
   13: trapport := 162
   14: 
   15: # Change this!
   16: read := "public"
   17: # Uncomment begemotSnmpdCommunityString.0.2 below that sets the community
   18: # string to enable write access.
   19: write := "geheim"
   20: trap := "mytrap"
   21: 
   22: #
   23: # Configuration
   24: #
   25: %snmpd
   26: begemotSnmpdDebugDumpPdus	= 2
   27: begemotSnmpdDebugSyslogPri	= 7
   28: 
   29: #
   30: # Set the read and write communities.
   31: #
   32: # The default value of the community strings is NULL (note, that this is
   33: # different from the empty string). This disables both read and write access.
   34: # To enable read access only the read community string must be set. Setting
   35: # the write community string enables both read and write access with that
   36: # string.
   37: #
   38: # Be sure to understand the security implications of SNMPv2 - the community
   39: # strings are readable on the wire!
   40: #
   41: begemotSnmpdCommunityString.0.1	= $(read)
   42: # begemotSnmpdCommunityString.0.2	= $(write)
   43: begemotSnmpdCommunityDisable	= 1
   44: 
   45: # open standard SNMP ports
   46: begemotSnmpdPortStatus.0.0.0.0.161 = 1
   47: 
   48: # open a unix domain socket
   49: begemotSnmpdLocalPortStatus."/var/run/snmpd.sock" = 1
   50: begemotSnmpdLocalPortType."/var/run/snmpd.sock" = 4
   51: 
   52: # send traps to the traphost
   53: begemotTrapSinkStatus.[$(traphost)].$(trapport) = 4
   54: begemotTrapSinkVersion.[$(traphost)].$(trapport) = 2
   55: begemotTrapSinkComm.[$(traphost)].$(trapport) = $(trap)
   56: 
   57: sysContact	= $(contact)
   58: sysLocation	= $(location)
   59: sysObjectId 	= 1.3.6.1.4.1.12325.1.1.2.1.$(system)
   60: 
   61: snmpEnableAuthenTraps = 2
   62: 
   63: #
   64: # Load MIB-2 module
   65: #
   66: begemotSnmpdModulePath."mibII"	= "/usr/lib/snmp_mibII.so.6"
   67: 
   68: # Force a polling rate for the 64-bit interface counters in case
   69: # the automatic computation is wrong (which may be the case if an interface
   70: # announces the wrong bit rate via its MIB).
   71: #%mibII
   72: #begemotIfForcePoll = 2000
   73: 
   74: #
   75: # Netgraph module
   76: #
   77: #begemotSnmpdModulePath."netgraph" = "/usr/lib/snmp_netgraph.so.6"
   78: #
   79: #%netgraph
   80: #begemotNgControlNodeName = "snmpd"
   81: 
   82: #
   83: # pf(4) module
   84: #
   85: #begemotSnmpdModulePath."pf"	= "/usr/lib/snmp_pf.so.6"
   86: 
   87: #
   88: # Host resources module
   89: #  This requires the mibII module.
   90: #
   91: #begemotSnmpdModulePath."hostres" = "/usr/lib/snmp_hostres.so.6"
   92: 
   93: #
   94: # Bridge module
   95: #  This requires the mibII module.
   96: #
   97: #begemotSnmpdModulePath."bridge" = "/usr/lib/snmp_bridge.so.6"
   98: 
   99: #
  100: # Wireless module
  101: #  This requires the mibII module.
  102: #
  103: #begemotSnmpdModulePath."wlan" = "/usr/lib/snmp_wlan.so.6"

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>