ZABBIX_CONFDIR=/usr/local/etc/zabbix4 below
-
Copy freebsd-release-stats.sh to $ZABBIX_CONFDIR/scripts/ (create directory if necessary)
-
Copy userparameter_freebsd_release.conf to $ZABBIX_CONFDIR/zabbix_agentd.conf.d/
-
Create /var/db/zabbix directory, owned by zabbix:zabbix
-
Import Zabbix template zabbix-freebsd-release.xml and assign to the FreeBSD host
You may need to change the type of freebsd.release.stats item to "Zabbix agent" (configured as "Zabbix agent (active)" in the template.