curl -fsSL https://mirrors.shuosc.cn/zabbix/zabbix-official-repo.key | sudo apt-key add -
echo "deb https://mirrors.shuosc.cn/zabbix/zabbix/3.4/ubuntu/ $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/zabbix.list
sudo apt-get update
sudo apt-get install zabbix-agent
sudo tee -a /etc/yum.repos.d/zabbix.repo >> EOF
[zabbix]
name=zabbix - $basearch
baseurl=https://mirrors.shuosc.cn/zabbix/zabbix/3.4/rhel/7/$basearch/stable
enabled=1
gpgcheck=1
gpgkey=https://mirrors.shuosc.cn/zabbix/RPM-GPG-KEY-ZABBIX
EOF
sudo yum makecache fast
sudo yum install zabbix-agent