Це стара версія документу!
Zabbix agent
# pkg search zabbix | grep agent zabbix4-agent-4.0.45 Enterprise-class open source distributed monitoring (agent) LTS zabbix5-agent-5.0.33 Enterprise-class open source distributed monitoring (agent) LTS zabbix6-agent-6.0.16 Enterprise-class open source distributed monitoring (agent) zabbix62-agent-6.2.9 Enterprise-class open source distributed monitoring (agent) zabbix64-agent-6.4.1 Enterprise-class open source distributed monitoring (agent)
Встановлення zabbix6-agent-6:
pkg install zabbix6-agent-6
Копіюємо каталог конфігурацій:
cp -a /usr/local/etc/zabbix6/ /usr/local/etc/zabbix6.orig
Перейдемо до каталогу
cd /usr/local/etc/zabbix6/
у конфізі додамо параметри:
tee -a ./zabbix_agentd.conf << EOF Include=/usr/local/etc/zabbix6/zabbix_agentd.conf.d/*.conf Include=/usr/local/etc/zabbix6/zabbix_agentd.conf.d/*.local EOF
tee ./zabbix_agentd.conf.d/agent.local << EOF Server=172.16.0.21 ServerActive=172.16.0.21 Hostname=example.com EOF
nano ./zabbix_agentd.conf.d/agent.local Додамо в автозавантаження:
sysrc zabbix_agentd_enable=YES
service zabbix_agentd start