加入Apt Repository
For Ubuntu 16.04 LTS: wget http://repo.zabbix.com/zabbix/3.4/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.4-1+xenial_all.deb dpkg -i zabbix-release_3.4-1+xenial_all.deb For Ubuntu 14.04 LTS: wget http://repo.zabbix.com/zabbix/3.4/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.4-1+trusty_all.deb dpkg -i zabbix-release_3.4-1+trusty_all.deb For Debian 9: wget http://repo.zabbix.com/zabbix/3.4/debian/pool/main/z/zabbix-release/zabbix-release_3.4-1+stretch_all.deb dpkg -i zabbix-release_3.4-1+stretch_all.deb For Debian 8: wget http://repo.zabbix.com/zabbix/3.4/debian/pool/main/z/zabbix-release/zabbix-release_3.4-1+jessie_all.deb dpkg -i zabbix-release_3.4-1+jessie_all.deb For Debian 7: wget http://repo.zabbix.com/zabbix/3.4/debian/pool/main/z/zabbix-release/zabbix-release_3.4-1+wheezy_all.deb dpkg -i zabbix-release_3.4-1+wheezy_all.deb
更新後安裝zabbix-agent
sudo apt-get update sudo apt-get install zabbix-agent
設定檔修改
vim /etc/zabbix/zabix_agentd.conf
#Server=[zabbix server ip] #Hostname=[Hostname of client system ] Server=192.168.1.x Hostname=ubuntu
重啟服務及停止服務
sudo service zabbix-agent stop sudo service zabbix-agent start