Установка zabbix-agent на debian
Качаем пакет для подключения репозитория:
ubuntu 18.04
wget https://repo.zabbix.com/zabbix/4.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_4.0-2%2Bbionic_all.deb
ubuntu 16.04
wget https://repo.zabbix.com/zabbix/4.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_4.0-2%2Bxenial_all.deb
debian 9
wget https://repo.zabbix.com/zabbix/4.0/debian/pool/main/z/zabbix-release/zabbix-release_4.0-2%2Bstretch_all.deb
Устанавливаем
dpkg -i ./zabbix-release*.deb apt-get update apt install zabbix-agent zabbix-sender mkdir /etc/zabbix/scripts mv /etc/zabbix/zabbix_agentd.conf /etc/zabbix/zabbix_agentd.conf_dit
Создаем конфиг /etc/zabbix/zabbix_agentd.conf
:
Hostname=<NAME> Server=<SERVER> ServerActive=<SERVER> PidFile=/var/run/zabbix/zabbix_agentd.pid LogFile=/var/log/zabbix/zabbix_agentd.log LogFileSize=0 Timeout=30 Include=/etc/zabbix/zabbix_agentd.d/
Запускаем
systemctl restart zabbix-agent
Готово!