This commit is contained in:
2022-09-23 08:41:52 +03:00
parent 496f5ce18e
commit 9b01a8ed26
+5 -5
View File
@@ -17,7 +17,7 @@ echo -e "${C_LGn}Installation of necessary components ...${RES}"
sudo apt install openssh-server mc htop qemu-guest-agent curl lsb-release wget -y
sudo sed -i 's/#Port 22/Port 22321\n\nAllowUsers root@92.255.251.110 sem\n/' /etc/ssh/sshd_config
sudo sed -i 's/#Port 22/#Port 22\n\nAllowUsers root@92.255.251.110 sem\n/' /etc/ssh/sshd_config
#write out current crontab
crontab -l > mycron
@@ -29,8 +29,8 @@ rm mycron
. /etc/*-release
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
sudo dpkg -i zabbix-release_6.2-1+${DISTRIB_ID,,}${DISTRIB_RELEASE}_all.deb
wget https://repo.zabbix.com/zabbix/6.2/ubuntu/pool/main/z/zabbix-release/zabbix-release_6.2-2+${DISTRIB_ID,,}${DISTRIB_RELEASE}_all.deb
sudo dpkg -i zabbix-release_6.2-2+${DISTRIB_ID,,}${DISTRIB_RELEASE}_all.deb
sudo apt update
sudo apt upgrade -y
sudo apt install zabbix-agent -y
@@ -75,5 +75,5 @@ sudo systemctl daemon-reload
sudo systemctl enable exporterd
sudo systemctl restart exporterd
echo -e "Проверить работу zabbix-agent ${C_LGn}sudo systemctl status zabbix-agent${RES}:"
echo -e "Проверить работу Node Exporter ${C_LGn}sudo journalctl -u exporterd -f${RES}:"
echo -e "Проверить работу zabbix-agent ${C_LGn}sudo systemctl status zabbix-agent${RES}"
echo -e "Проверить работу Node Exporter ${C_LGn}sudo journalctl -u exporterd -f${RES}"