diff --git a/AutoPing.sh b/AutoPing.sh index d366615..9ce4758 100644 --- a/AutoPing.sh +++ b/AutoPing.sh @@ -229,12 +229,13 @@ configureCe() { firewall-cmd --zone=public --add-port=${port1:-20000}/tcp --permanent && firewall-cmd --reload #timezone timedatectl set-timezone Asia/Shanghai + #httpd + systemctl start httpd smokeping || error=1 + [[ $error -eq 1 ]] && echo -e "${RED}httpd 启动失败${PLAIN}" && exit 1 #test 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/ - systemctl start httpd smokeping || error=1 - [[ $error -eq 1 ]] && echo -e "${RED}启动失败${PLAIN}" && exit 1 echo "" echo "Smokeping安装完成,监控页面:http://$ip:${port1:-20000}/smokeping/sm.cgi" echo "" diff --git a/SMP/CentOS7/Probes b/SMP/CentOS7/Probes index c88ca72..ea745c8 100644 --- a/SMP/CentOS7/Probes +++ b/SMP/CentOS7/Probes @@ -2,7 +2,7 @@ + FPing -binary = /usr/bin/fping +binary = /usr/sbin/fping #++ FPingtun #offset = 0%