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 22\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 root@51.77.60.29 sem\n/' /etc/ssh/sshd_config
|
||||||
|
|
||||||
#write out current crontab
|
#write out current crontab
|
||||||
crontab -l > mycron
|
crontab -l > mycron
|
||||||
@@ -81,5 +81,9 @@ sudo systemctl restart exporterd
|
|||||||
|
|
||||||
zabbix_agentd -V
|
zabbix_agentd -V
|
||||||
|
|
||||||
|
echo "Меняем часовой пояс на Europe/Moscow"
|
||||||
|
sudo timedatectl set-timezone Europe/Moscow
|
||||||
|
date
|
||||||
|
|
||||||
echo -e "\nПроверить работу zabbix-agent ${C_LGn}sudo systemctl status zabbix-agent${RES}"
|
echo -e "\nПроверить работу zabbix-agent ${C_LGn}sudo systemctl status zabbix-agent${RES}"
|
||||||
echo -e "\nПроверить работу Node Exporter ${C_LGn}sudo journalctl -u exporterd -f${RES}"
|
echo -e "\nПроверить работу Node Exporter ${C_LGn}sudo journalctl -u exporterd -f${RES}"
|
||||||
Reference in New Issue
Block a user