Enable SNMP FreeBSD

1) Install Net-SNMP

# cd /usr/ports/net-mgmt/net-snmp
# make install clean

 

2) Create SNMP conf file

# vi /usr/local/share/snmp/snmpd.conf

syscontact   [email protected]
rocommunity  public 10.0.0.1/24
syscontact   Jordansphere
syslocation  London 

 

3) Start SNMP service

# /usr/local/etc/rc.d/snmpd start

 

4) Input line in rc.conf so it starts on a reboot

# vi /etc/rc.conf
snmpd_enable="YES"