|
|
@ -229,12 +229,13 @@ configureCe() { |
|
|
|
firewall-cmd --zone=public --add-port=${port1:-20000}/tcp --permanent && firewall-cmd --reload |
|
|
|
firewall-cmd --zone=public --add-port=${port1:-20000}/tcp --permanent && firewall-cmd --reload |
|
|
|
#timezone |
|
|
|
#timezone |
|
|
|
timedatectl set-timezone Asia/Shanghai |
|
|
|
timedatectl set-timezone Asia/Shanghai |
|
|
|
|
|
|
|
#httpd |
|
|
|
|
|
|
|
systemctl start httpd smokeping || error=1 |
|
|
|
|
|
|
|
[[ $error -eq 1 ]] && echo -e "${RED}httpd 启动失败${PLAIN}" && exit 1 |
|
|
|
#test |
|
|
|
#test |
|
|
|
smokeping --debug || error=1 |
|
|
|
smokeping --debug || error=1 |
|
|
|
[[ $error -eq 1 ]] && echo -e "${RED}测试运行失败${PLAIN}" && exit 1 |
|
|
|
[[ $error -eq 1 ]] && echo -e "${RED}smokeping 测试运行失败${PLAIN}" && exit 1 |
|
|
|
chmod 777 -R /var/lib/smokeping/ |
|
|
|
chmod 777 -R /var/lib/smokeping/ |
|
|
|
systemctl start httpd smokeping || error=1 |
|
|
|
|
|
|
|
[[ $error -eq 1 ]] && echo -e "${RED}启动失败${PLAIN}" && exit 1 |
|
|
|
|
|
|
|
echo "" |
|
|
|
echo "" |
|
|
|
echo "Smokeping安装完成,监控页面:http://$ip:${port1:-20000}/smokeping/sm.cgi" |
|
|
|
echo "Smokeping安装完成,监控页面:http://$ip:${port1:-20000}/smokeping/sm.cgi" |
|
|
|
echo "" |
|
|
|
echo "" |
|
|
|