Utils
This commit is contained in:
@@ -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 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
|
#write out current crontab
|
||||||
crontab -l > mycron
|
crontab -l > mycron
|
||||||
@@ -29,8 +29,8 @@ rm mycron
|
|||||||
|
|
||||||
. /etc/*-release
|
. /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
|
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-1+${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 update
|
||||||
sudo apt upgrade -y
|
sudo apt upgrade -y
|
||||||
sudo apt install zabbix-agent -y
|
sudo apt install zabbix-agent -y
|
||||||
@@ -75,5 +75,5 @@ sudo systemctl daemon-reload
|
|||||||
sudo systemctl enable exporterd
|
sudo systemctl enable exporterd
|
||||||
sudo systemctl restart exporterd
|
sudo systemctl restart exporterd
|
||||||
|
|
||||||
echo -e "Проверить работу zabbix-agent ${C_LGn}sudo systemctl status zabbix-agent${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}:"
|
echo -e "Проверить работу Node Exporter ${C_LGn}sudo journalctl -u exporterd -f${RES}"
|
||||||
Reference in New Issue
Block a user