Files
zabbix-server/scripts/setupagent.sh
2019-07-13 15:01:13 +07:00

16 lines
462 B
Bash
Executable File

#!/bin/bash
cd ~
sudo wget https://repo.zabbix.com/zabbix/4.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_4.0-2+bionic_all.deb
sudo dpkg -i zabbix-release_4.0-2+bionic_all.deb
sudo apt-get update
sudo apt-get install mc htop -y
sudo apt install zabbix-agent -y
sudo cp ~/zabbix_agentd.conf /etc/zabbix/
sudo service zabbix-agent restart
sudo update-rc.d zabbix-agent enable
sudo apt install nginx -y
sudo systemctl enable nginx
sudo systemctl start nginx