|
|
@ -102,7 +102,7 @@ after() { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
install_SMP() { |
|
|
|
install_SMP() { |
|
|
|
rpm_packages="smokeping tcptraceroute wqy-zenhei-fonts.noarch" |
|
|
|
rpm_packages="smokeping tcptraceroute sendmail wqy-zenhei-fonts.noarch" |
|
|
|
apt_packages="smokeping echoping traceroute tcptraceroute" |
|
|
|
apt_packages="smokeping echoping traceroute tcptraceroute" |
|
|
|
read -rp "输入监控页面端口(默认20000):" port1 |
|
|
|
read -rp "输入监控页面端口(默认20000):" port1 |
|
|
|
ss -tnlp | grep -q ":${port1:-20000} " && echo -e "${RED}端口 ${port1:-20000} 已被占用${PLAIN}" && exit 1 |
|
|
|
ss -tnlp | grep -q ":${port1:-20000} " && echo -e "${RED}端口 ${port1:-20000} 已被占用${PLAIN}" && exit 1 |
|
|
@ -174,8 +174,6 @@ configureUb() { |
|
|
|
echo "" |
|
|
|
echo "" |
|
|
|
echo "Smokeping安装完成,监控页面:http://$ip:${port1:-20000}/smokeping" |
|
|
|
echo "Smokeping安装完成,监控页面:http://$ip:${port1:-20000}/smokeping" |
|
|
|
echo "" |
|
|
|
echo "" |
|
|
|
echo "注意:" |
|
|
|
|
|
|
|
echo "如有必要请在防火墙放行 ${port1:-20000} 端口" |
|
|
|
|
|
|
|
echo "请等待一会,监控数据不会立即更新" |
|
|
|
echo "请等待一会,监控数据不会立即更新" |
|
|
|
echo "" |
|
|
|
echo "" |
|
|
|
} |
|
|
|
} |
|
|
@ -197,9 +195,6 @@ configureUbAgent() { |
|
|
|
echo "" |
|
|
|
echo "" |
|
|
|
echo "Agent安装完成,请到监控页面添加Agent和下发策略:$monitorSvr" |
|
|
|
echo "Agent安装完成,请到监控页面添加Agent和下发策略:$monitorSvr" |
|
|
|
echo "" |
|
|
|
echo "" |
|
|
|
echo "注意:" |
|
|
|
|
|
|
|
echo "如有必要请在防火墙放行 9123 端口" |
|
|
|
|
|
|
|
echo "" |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
configureCe() { |
|
|
|
configureCe() { |
|
|
@ -239,8 +234,6 @@ configureCe() { |
|
|
|
echo "" |
|
|
|
echo "" |
|
|
|
echo "Smokeping安装完成,监控页面:http://$ip:${port1:-20000}/smokeping/sm.cgi" |
|
|
|
echo "Smokeping安装完成,监控页面:http://$ip:${port1:-20000}/smokeping/sm.cgi" |
|
|
|
echo "" |
|
|
|
echo "" |
|
|
|
echo "注意:" |
|
|
|
|
|
|
|
echo "如有必要请在防火墙放行 ${port1:-20000} 端口" |
|
|
|
|
|
|
|
echo "请等待一会,监控数据不会立即更新" |
|
|
|
echo "请等待一会,监控数据不会立即更新" |
|
|
|
echo "" |
|
|
|
echo "" |
|
|
|
} |
|
|
|
} |
|
|
@ -261,8 +254,5 @@ configureCeAgent() { |
|
|
|
echo "" |
|
|
|
echo "" |
|
|
|
echo "Agent安装完成,请到监控页面添加Agent和下发策略:$monitorSvr" |
|
|
|
echo "Agent安装完成,请到监控页面添加Agent和下发策略:$monitorSvr" |
|
|
|
echo "" |
|
|
|
echo "" |
|
|
|
echo "注意:" |
|
|
|
|
|
|
|
echo "如有必要请在防火墙放行 9123 端口" |
|
|
|
|
|
|
|
echo "" |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
selectAction |
|
|
|
selectAction |
|
|
|