This commit is contained in:
2022-09-23 00:40:44 +03:00
parent dec5f01a57
commit 79999da1d2
+6 -3
View File
@@ -13,9 +13,11 @@ sudo apt update
sudo apt upgrade -y sudo apt upgrade -y
echo -e "${C_LGn}Installation of necessary components ...${RES}" echo -e "${C_LGn}Installation of necessary components ...${RES}"
sudo apt install openssh-server mc htop qemu-guest-agent curl -y sudo apt install openssh-server mc htop qemu-guest-agent curl lsb-release wget -y
wget https://repo.zabbix.com/zabbix/6.2/ubuntu/pool/main/z/zabbix-release/zabbix-release_6.2-1+ubuntu20.04_all.de . /etc/*-release
dpkg -i zabbix-release_6.2-1+ubuntu20.04_all.deb
wget https://repo.zabbix.com/zabbix/6.2/ubuntu/pool/main/z/zabbix-release/zabbix-release_6.2-1+${DISTRIB_ID,,}${DISTRIB_RELEASE}_all.deb
dpkg -i zabbix-release_6.2-1+${DISTRIB_ID,,}${DISTRIB_RELEASE}_all.deb
apt upgrade -y apt upgrade -y
apt install zabbix-agent -y apt install zabbix-agent -y
systemctl restart zabbix-agent systemctl restart zabbix-agent
@@ -23,6 +25,7 @@ systemctl enable zabbix-agent
/etc/init.d/zabbix-agent status /etc/init.d/zabbix-agent status
#zabbix_agentd -V #zabbix_agentd -V
echo -e "${C_LGn}Installing Node Exporter ...${RES}" echo -e "${C_LGn}Installing Node Exporter ...${RES}"
cd $HOME && \ cd $HOME && \
wget https://github.com/prometheus/node_exporter/releases/download/v1.3.1/node_exporter-1.3.1.linux-amd64.tar.gz && \ wget https://github.com/prometheus/node_exporter/releases/download/v1.3.1/node_exporter-1.3.1.linux-amd64.tar.gz && \