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:


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
... Done.

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

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

and uncomment the line:

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

Restarting bsnmp

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

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