fix /usr/sbin/fping on centos 7

master
livejq 2 years ago
parent f90712f9aa
commit 4ef8a64b2c
  1. 7
      AutoPing.sh
  2. 2
      SMP/CentOS7/Probes

@ -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 ""

@ -2,7 +2,7 @@
+ FPing
binary = /usr/bin/fping
binary = /usr/sbin/fping
#++ FPingtun
#offset = 0%

Loading…
Cancel
Save