welcome: please sign in
location: FBSD_bsnmpd

Mini Howto für BSNMPD (mini snmp-Daemon in FreeBSD Base)

1. configure /etc/snmpd.conf

#
# Set some common variables
#
host := ... # resolvable hostname or ip adress
[...]
# Change this!
read := "public"
# Uncomment line 42 that sets the community string to enable write access.
#write := "geheim"
#trap := "mytrap"
[...]
#
# Load MIB-2 module
#
begemotSnmpdModulePath."mibII"  = "/usr/lib/snmp_mibII.so"

# Hostres module
begemotSnmpdModulePath."hostres" = "/usr/lib/snmp_hostres.so"

# Force a polling rate for the 64-bit interface counters in case
# the automatic computation is wrong (which may be the case if an interface
# announces the wrong bit rate via its MIB).
#%mibII
#begemotIfForcePoll = 2000

#
# Netgraph module
#
begemotSnmpdModulePath."netgraph" = "/usr/lib/snmp_netgraph.so"
#
#%netgraph
#begemotNgControlNodeName = "snmpd"

#
# pf(4) module
#
#begemotSnmpdModulePath."pf"    = "/usr/lib/snmp_pf.so"

2. start bsnmpd

/etc/rc.d/bsnmpd start

3. snmpwalk from another host to test it, example:

snmpwalk -v1 -Ci -c public 192.168.0.1

4. activate bsnmpd at startup rc.conf

# snmp
bsnmpd_enable="yes"              # Run the SNMP daemon (or NO).

FBSD_bsnmpd (last edited 2008-07-14 09:55:40 by localhost)