Last active
December 17, 2020 19:32
-
-
Save lcuevastodoit/f8c71293d352faa0b8ba3826d9dbd311 to your computer and use it in GitHub Desktop.
Install Zabbix Agent Ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget https://repo.zabbix.com/zabbix/5.2/ubuntu/pool/main/z/zabbix-release/zabbix-release_5.2-1%2Bubuntu20.04_all.deb | |
sudo dpkg -i zabbix-release_5.2-1+ubuntu20.04_all.deb | |
sudo apt update | |
sudo apt-get -y install zabbix-agent | |
sudo nano +117 /etc/zabbix/zabbix_agentd.conf | |
# modify Server:127.0.0.1,200.200.1.2 (example) | |
sudo systemctl enable zabbix-agent | |
sudo systemctl start zabbix-agent | |
sudo ufw allow 10050 | |
########Optionals######### | |
/usr/sbin/zabbix_agentd --foreground -c /etc/zabbix/zabbix_agentd.conf & | |
nc -v -z 172.19.2.3 10050 | |
nc -v -z localhost 10050 | |
nc -v -z yourtargetzabbix_ip_or_fqdn 10051 | |
nc -v -z 172.19.2.21 10051 | |
Connection to 172.19.2.21 10051 port [tcp/zabbix-trapper] succeeded! | |
# zabbix_get -s 172.19.2.1 -k system.run["docker ps"] | |
wget https://repo.zabbix.com/zabbix/5.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_5.0-1%2Bbionic_all.deb | |
sudo dpkg -i zabbix-release_5.0-1+bionic_all.deb | |
sudo apt update | |
sudo apt-get -y install zabbix-agent | |
sudo nano +117 /etc/zabbix/zabbix_agentd.conf | |
# modify Server:127.0.0.1,200.200.1.2 (example) | |
sudo systemctl enable zabbix-agent | |
sudo systemctl start zabbix-agent | |
sudo ufw allow 10050 | |
wget https://repo.zabbix.com/zabbix/5.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_5.0-1%2Bxenial_all.deb | |
sudo dpkg -i zabbix-release_5.0-1+xenial_all.deb | |
sudo apt update | |
sudo apt-get -y install zabbix-agent | |
sudo nano +117 /etc/zabbix/zabbix_agentd.conf | |
# modify Server:127.0.0.1,200.200.1.2 (example) | |
sudo systemctl enable zabbix-agent | |
sudo systemctl start zabbix-agent | |
sudo ufw allow 10050 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment