FreeBSD Monitoring

Last updated on 17 March, 2023

FreeBSD requires activating the snmp daemon, and configuring to report more information than it does in the default setup. We also recommend ensuring ntp is enabled and configured.

Enabling SNMP

FreeBSD ships by default with the bsnmpd daemon.  This is not started by default, and is configured by /etc/snmpd.config, with a default community of ‘public’.

To set bsnmpd to start on system boot, add the line to /etc/rc.conf:

bsnmpd_enable="YES"

bsnmp modules

You should have the bsnmp-ucd package installed to allow more complete monitoring. This package can be installed by the following:

freebsd# pkg_add -r bsnmp-ucd
 Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-9.0/Latest/bsnmp-ucd.tbz
... Done.

edit /etc/snmpd.config to add the line:

begemotSnmpdModulePath."ucd" = "/usr/local/lib/snmp_ucd.so"

and uncomment the line:

begemotSnmpdModulePath."hostres" = "/usr/lib/snmp_hostres.so"

Restarting bsnmp

With snmp configured, you start or restart it so that the changes take effect:

/etc/rc.d/bsnmpd restart
In This Article