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