ARMS应用监控探针需要确保和ARMS服务端的连通性才能正常工作,本文介绍使用应用监控需开放的端口以及域名/IP地址。
3.x及以上版本探针
需要开放的目标端口
接入ARMS应用监控,必须确保以下目标端口的可连通性,探针才能正常工作。
端口 | 功能说明 |
8080 | 由ACM服务提供,用于应用配置服务。 |
8848 | 由ACM服务提供,用于应用配置服务。 |
9990 | 由调用链&元数据接入点提供,用于元数据上报。 |
80 | 由调用链&元数据接入点、指标接入点、持续剖析服务提供,分别用于调用链、指标、持续剖析数据的上报。 |
9092 | 由调用链&元数据接入点提供,用于应用诊断功能。 |
9093 | 由调用链&元数据接入点提供,用于应用安全。 |
需要开放的域名
接入ARMS应用监控,需要开放ARMS接入点域名,以及ACM(应用配置管理)域名,请根据如下表格获得对应地域的ARMS接入点域名,以及ACM域名。如果应用部署在阿里云VPC内(包括专线打通阿里云VPC的场景),请使用ARMS内网接入点以及ACM内网域名;如果应用部署在线下数据中心或其他云上,请使用ARMS公网接入点和公网ACM域名。
展开查看ARMS和ACM服务各地域网络域名
地域 | 公网接入点 | 内网接入点(VPC网络) |
华东1(杭州) |
|
|
华东2(上海) |
|
|
华北1(青岛) |
|
|
华北2(北京) |
|
|
华北3(张家口) |
|
|
华北5(呼和浩特) |
|
|
华北6(乌兰察布) |
|
|
华南1(深圳) |
|
|
华南2(河源) |
|
|
华南3(广州) |
|
|
西南1(成都) |
|
|
中国(香港) |
|
|
亚太东北1(东京) |
|
|
新加坡 |
|
|
亚太东南2(悉尼)关停中 |
|
|
亚太东南3(吉隆坡) |
|
|
亚太东南5(雅加达) |
|
|
欧洲中部1(法兰克福) |
|
|
英国伦敦(伦敦) |
|
|
美国东部1(弗吉尼亚) |
|
|
美国西部1(硅谷) |
|
|
政务云 |
|
|
金融云华东1(杭州) |
|
|
金融云华东2(上海) |
|
|
金融云华南1(深圳) |
|
|
可使用Curl命令测试目标主机与ARMS接入点以及ACM服务之间的网络是否连通。以杭州地域为例,请登录应用所部署的机器,并参考以下命令测试网络连通性:
#测试调用链&元数据接入点,返回码为200代表连通
curl -I -w "%{http_code}" http://arms-dc-hz.aliyuncs.com/api/checkHealth
#测试元信息接入点,返回200代表连通
curl -I -w "%{http_code}" http://arms-dc-hz.aliyuncs.com:9990/api/checkHealth
#测试指标接入点,返回码为200代表连通
curl -I -w "%{http_code}" http://cn-hangzhou.arms.aliyuncs.com/health/readiness
部分地域没有开通内网ACM服务,需要使用公网ACM域名,此时应用需要具备访问公网的能力。
ARMS还提供了自动化脚本帮助您自动快速定位数据上报时存在的网络连通性问题,更多信息,请参见自动检查网络连通性。
需要开放的IP段
如果应用部署在阿里云VPC内(包括专线打通阿里云VPC的场景),请在确保内网域名连通性的情况下,开放100.0.0.0/8目标网段。如果应用部署在线下数据中心或其他云上,ARMS暂时无法提供公网接入点的网段详情,请确保公网域名的连通性。
需要开放的ACM引擎IP地址
ARMS探针需要连接ACM引擎获取配置信息,ACM引擎的IP地址可以通过访问ACM提供的HTTP接口获得,此IP地址会长期保持不变,请先根据对应地域的ACM域名查询ACM引擎的IP地址。
curl 'acm.aliyun.com:8080/diamond-server/diamond'
请确保防火墙放行通过curl命令得到的ACM引擎IP地址,可以通过以下命令进行验证。
curl -X GET "http://139.196.XX.XX:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -i
如果查询不到相关内容,则说明无法访问。
2.x版本探针
需要开放的目标端口
接入ARMS应用监控,必须确保以下目标端口的可连通性,探针才能正常工作。
端口 | 功能说明 |
8080 | 由ACM服务提供,用于应用配置服务。 |
8442 | 由ARMS接入点提供,用于元数据上报。 |
8443 | 由ARMS接入点提供,用于统计数据上报。 |
8883 | 由ARMS接入点提供,用于明细数据上报。 |
8848 | 由ARMS接入点提供,用于微服务相关数据上报。 |
9092 | 由ARMS接入点提供,用于应用诊断功能。 |
9093 | 由ARMS接入点提供,用于应用安全。 |
需要开放的域名
接入ARMS应用监控,需要开放ARMS接入点域名,以及ACM(应用配置管理)域名,请根据如下表格获得对应地域的ARMS接入点域名,以及ACM域名。如果应用部署在阿里云VPC内(包括专线打通阿里云VPC的场景),请使用ARMS内网接入点以及ACM内网域名;如果应用部署在线下数据中心或其他云上,请使用ARMS公网接入点和公网ACM域名。
展开查看ARMS和ACM各地域网络域名
地域 | 公网接入点 | 内网接入点(VPC网络) |
华东1(杭州) |
|
|
华东2(上海) |
|
|
华北1(青岛) |
|
|
华北2(北京) |
|
|
华北3(张家口) |
|
|
华北5(呼和浩特) |
| dc-cn-huhehaote-internal.arms.aliyuncs.com(ARMS) |
华北6(乌兰察布) |
| dc-cn-wulanchabu-internal.arms.aliyuncs.com(ARMS) |
华南1(深圳) |
|
|
华南2(河源) |
| dc-cn-heyuan-internal.arms.aliyuncs.com(ARMS) |
华南3(广州) |
| dc-cn-guangzhou-internal.arms.aliyuncs.com(ARMS) |
西南1(成都) |
| dc-cn-chengdu-internal.arms.aliyuncs.com(ARMS) |
中国(香港) |
|
|
亚太东北1(东京) |
|
|
新加坡 |
|
|
亚太东南2(悉尼)关停中 |
|
|
亚太东南3(吉隆坡) |
| dc-ap-southeast-3-internal.arms.aliyuncs.com(ARMS) |
亚太东南5(雅加达) |
| arms-dc-indonesia-internal.aliyuncs.com(ARMS) |
欧洲中部1(法兰克福) |
|
|
英国伦敦(伦敦) |
|
|
美国东部1(弗吉尼亚) |
|
|
美国西部1(硅谷) |
|
|
政务云 |
|
|
金融云华东1(杭州) |
|
|
金融云华东2(上海) |
|
|
金融云华南1(深圳) |
|
|
可使用Telnet命令测试目标主机与ARMS接入点以及ACM服务之间的网络是否连通。以杭州地域为例,请登录应用所部署的机器,并参考以下命令测试网络连通性:
telnet arms-dc-hz-internal.aliyuncs.com 8442
telnet arms-dc-hz-internal.aliyuncs.com 8443
telnet arms-dc-hz-internal.aliyuncs.com 8883
telnet arms-dc-hz-internal.aliyuncs.com 9092
telnet arms-dc-hz-internal.aliyuncs.com 9093
telnet addr-hz-internal.edas.aliyun.com 8080
部分地域没有开通内网ACM服务,需要使用公网ACM域名,此时应用需要具备访问公网的能力。
ARMS还提供了自动化脚本帮助您自动快速定位数据上报时存在的网络连通性问题,更多信息,请参见自动检查网络连通性。
需要开放的IP段
如果应用部署在阿里云VPC内(包括专线打通阿里云VPC的场景),请在确保内网域名连通性的情况下,开放100.0.0.0/8目标网段。如果应用部署在线下数据中心或其他云上,ARMS暂时无法提供公网接入点的网段详情,请确保公网域名的连通性。
需要开放的ACM引擎IP地址
ARMS探针需要连接ACM引擎获取配置信息,ACM引擎的IP地址可以通过访问ACM提供的HTTP接口获得,此IP地址会长期保持不变,请先根据对应地域的ACM域名查询ACM引擎的IP地址。
curl 'acm.aliyun.com:8080/diamond-server/diamond'
请确保防火墙放行通过curl命令得到的ACM引擎IP地址,可以通过以下命令进行验证。
curl -X GET "http://139.196.XX.XX:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -i
如果查询不到相关内容,则说明无法访问。
自动检查网络连通性
准备工具
请在应用所在容器或者机器上下载对应的包管理工具(如yum、apt等),此处以curl和nc工具包为例:
在容器或机器上执行curl
和nc
命令,若出现以下输出则说明容器或机器上已经成功安装了curl与nc工具。
运行自动化检查脚本
新建check_network.sh脚本并添加以下内容。
展开查看脚本内容
function check_http_value() { if [ "$1" = "000" ]; then echo "失败" else echo "成功" fi return 0 } function check_nc_value() { if [ "$1" = 0 ]; then echo "成功" else echo "失败" fi return 0 } function cn_beijing_3() { echo "公网调用链端口(80)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-dc-bj.aliyuncs.com/api/checkHealth -m 5))" echo "公网元信息端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-dc-bj.aliyuncs.com:9990/api/checkHealth -m 5))" echo "公网指标端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://cn-beijing.arms.aliyuncs.com/health/readiness -m 5))" echo "公网持续剖析连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-profiling-cn-beijing.oss-cn-beijing.aliyuncs.com -m 5))" timeout 5 nc -z -v arms-dc-bj.aliyuncs.com 9093 >/dev/null 2>&1 echo "公网应用安全端口(9093)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-bj.aliyuncs.com 9092 >/dev/null 2>&1 echo "公网应用诊断端口(9092)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://acm.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "公网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "公网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi echo "内网调用链端口(80)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-dc-bj-internal.aliyuncs.com/api/checkHealth -m 5))" echo "内网元信息端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-dc-bj-internal.aliyuncs.com:9990/api/checkHealth -m 5))" echo "内网指标端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://cn-beijing-intranet.arms.aliyuncs.com/health/readiness -m 5))" echo "内网持续剖析连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-profiling-cn-beijing.oss-cn-beijing-internal.aliyuncs.com -m 5))" timeout 5 nc -z -v arms-dc-bj-internal.aliyuncs.com 9093 >/dev/null 2>&1 echo "内网应用安全端口(9093)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-bj-internal.aliyuncs.com 9092 >/dev/null 2>&1 echo "内网应用诊断端口(9092)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://addr-bj-internal.edas.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "内网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "内网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi } function cn_hangzhou_3() { echo "公网调用链端口(80)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-dc-hz.aliyuncs.com/api/checkHealth -m 5))" echo "公网元信息端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-dc-hz.aliyuncs.com:9990/api/checkHealth -m 5))" echo "公网指标端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://cn-hangzhou.arms.aliyuncs.com/health/readiness -m 5))" echo "公网持续剖析连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-profiling-cn-hangzhou.oss-cn-hangzhou.aliyuncs.com -m 5))" timeout 5 nc -z -v arms-dc-hz.aliyuncs.com 9093 >/dev/null 2>&1 echo "公网应用安全端口(9093)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-hz.aliyuncs.com 9092 >/dev/null 2>&1 echo "公网应用诊断端口(9092)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://acm.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "公网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "公网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi echo "内网调用链端口(80)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-dc-hz-internal.aliyuncs.com/api/checkHealth -m 5))" echo "内网元信息端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-dc-hz-internal.aliyuncs.com:9990/api/checkHealth -m 5))" echo "内网指标端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://cn-hangzhou-intranet.arms.aliyuncs.com/health/readiness -m 5))" echo "内网持续剖析连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-profiling-cn-hangzhou.oss-cn-hangzhou-internal.aliyuncs.com -m 5))" timeout 5 nc -z -v arms-dc-hz-internal.aliyuncs.com 9093 >/dev/null 2>&1 echo "内网应用安全端口(9093)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-hz-internal.aliyuncs.com 9092 >/dev/null 2>&1 echo "内网应用诊断端口(9092)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://addr-hz-internal.edas.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "内网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "内网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi } function ap_south_1_3() { echo "公网调用链端口(80)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://dc-ap-south-1.arms.aliyuncs.com/api/checkHealth -m 5))" echo "公网元信息端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://dc-ap-south-1.arms.aliyuncs.com:9990/api/checkHealth -m 5))" echo "公网指标端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://ap-south-1.arms.aliyuncs.com/health/readiness -m 5))" echo "公网持续剖析连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-profiling-ap-south-1.oss-ap-south-1.aliyuncs.com -m 5))" timeout 5 nc -z -v dc-ap-south-1.arms.aliyuncs.com 9093 >/dev/null 2>&1 echo "公网应用安全端口(9093)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-ap-south-1.arms.aliyuncs.com 9092 >/dev/null 2>&1 echo "公网应用诊断端口(9092)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://acm.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "公网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "公网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi echo "内网调用链端口(80)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://dc-ap-south-1-internal.arms.aliyuncs.com/api/checkHealth -m 5))" echo "内网元信息端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://dc-ap-south-1-internal.arms.aliyuncs.com:9990/api/checkHealth -m 5))" echo "内网指标端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://ap-south-1-intranet.arms.aliyuncs.com/health/readiness -m 5))" echo "内网持续剖析连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-profiling-ap-south-1.oss-ap-south-1-internal.aliyuncs.com -m 5))" timeout 5 nc -z -v dc-ap-south-1-internal.arms.aliyuncs.com 9093 >/dev/null 2>&1 echo "内网应用安全端口(9093)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-ap-south-1-internal.arms.aliyuncs.com 9092 >/dev/null 2>&1 echo "内网应用诊断端口(9092)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://addr-ap-south-1-internal.acm.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "内网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "内网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi } function ap_southeast_2_3() { echo "公网调用链端口(80)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://dc-ap-southeast-2.arms.aliyuncs.com/api/checkHealth -m 5))" echo "公网元信息端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://dc-ap-southeast-2.arms.aliyuncs.com:9990/api/checkHealth -m 5))" echo "公网指标端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://ap-southeast-2.arms.aliyuncs.com/health/readiness -m 5))" echo "公网持续剖析连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-profiling-ap-southeast-2.oss-ap-southeast-2.aliyuncs.com -m 5))" timeout 5 nc -z -v dc-ap-southeast-2.arms.aliyuncs.com 9093 >/dev/null 2>&1 echo "公网应用安全端口(9093)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-ap-southeast-2.arms.aliyuncs.com 9092 >/dev/null 2>&1 echo "公网应用诊断端口(9092)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://acm.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "公网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "公网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi echo "内网调用链端口(80)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://dc-ap-southeast-2-internal.arms.aliyuncs.com/api/checkHealth -m 5))" echo "内网元信息端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://dc-ap-southeast-2-internal.arms.aliyuncs.com:9990/api/checkHealth -m 5))" echo "内网指标端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://ap-southeast-2-intranet.arms.aliyuncs.com/health/readiness -m 5))" echo "内网持续剖析连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-profiling-ap-southeast-2.oss-ap-southeast-2-internal.aliyuncs.com -m 5))" timeout 5 nc -z -v dc-ap-southeast-2-internal.arms.aliyuncs.com 9093 >/dev/null 2>&1 echo "内网应用安全端口(9093)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-ap-southeast-2-internal.arms.aliyuncs.com 9092 >/dev/null 2>&1 echo "内网应用诊断端口(9092)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://addr-ap-southeast-2-internal.edas.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "内网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "内网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi } function ap_southeast_3_3() { echo "公网调用链端口(80)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://dc-ap-southeast-3.arms.aliyuncs.com/api/checkHealth -m 5))" echo "公网元信息端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://dc-ap-southeast-3.arms.aliyuncs.com:9990/api/checkHealth -m 5))" echo "公网指标端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://ap-southeast-3.arms.aliyuncs.com/health/readiness -m 5))" echo "公网持续剖析连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-profiling-ap-southeast-3.oss-ap-southeast-3.aliyuncs.com -m 5))" timeout 5 nc -z -v dc-ap-southeast-3.arms.aliyuncs.com 9093 >/dev/null 2>&1 echo "公网应用安全端口(9093)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-ap-southeast-3.arms.aliyuncs.com 9092 >/dev/null 2>&1 echo "公网应用诊断端口(9092)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://acm.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "公网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "公网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi echo "内网调用链端口(80)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://dc-ap-southeast-3-internal.arms.aliyuncs.com/api/checkHealth -m 5))" echo "内网元信息端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://dc-ap-southeast-3-internal.arms.aliyuncs.com:9990/api/checkHealth -m 5))" echo "内网指标端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://ap-southeast-3-intranet.arms.aliyuncs.com/health/readiness -m 5))" echo "内网持续剖析连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-profiling-ap-southeast-3.oss-ap-southeast-3-internal.aliyuncs.com -m 5))" timeout 5 nc -z -v dc-ap-southeast-3-internal.arms.aliyuncs.com 9093 >/dev/null 2>&1 echo "内网应用安全端口(9093)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-ap-southeast-3-internal.arms.aliyuncs.com 9092 >/dev/null 2>&1 echo "内网应用诊断端口(9092)连通性检查$(check_nc_value $?)" } function cn_chengdu_3() { echo "公网调用链端口(80)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://dc-cn-chengdu.arms.aliyuncs.com/api/checkHealth -m 5))" echo "公网元信息端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://dc-cn-chengdu.arms.aliyuncs.com:9990/api/checkHealth -m 5))" echo "公网指标端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://cn-chengdu.arms.aliyuncs.com/health/readiness -m 5))" echo "公网持续剖析连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-profiling-cn-chengdu.oss-cn-chengdu.aliyuncs.com -m 5))" timeout 5 nc -z -v dc-cn-chengdu.arms.aliyuncs.com 9093 >/dev/null 2>&1 echo "公网应用安全端口(9093)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-cn-chengdu.arms.aliyuncs.com 9092 >/dev/null 2>&1 echo "公网应用诊断端口(9092)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://acm.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "公网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "公网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi echo "内网调用链端口(80)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://dc-cn-chengdu-internal.arms.aliyuncs.com/api/checkHealth -m 5))" echo "内网元信息端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://dc-cn-chengdu-internal.arms.aliyuncs.com:9990/api/checkHealth -m 5))" echo "内网指标端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://cn-chengdu-intranet.arms.aliyuncs.com/health/readiness -m 5))" echo "内网持续剖析连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-profiling-cn-chengdu.oss-cn-chengdu-internal.aliyuncs.com -m 5))" timeout 5 nc -z -v dc-cn-chengdu-internal.arms.aliyuncs.com 9093 >/dev/null 2>&1 echo "内网应用安全端口(9093)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-cn-chengdu-internal.arms.aliyuncs.com 9092 >/dev/null 2>&1 echo "内网应用诊断端口(9092)连通性检查$(check_nc_value $?)" } function cn_guangzhou_3() { echo "公网调用链端口(80)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://dc-cn-guangzhou.arms.aliyuncs.com/api/checkHealth -m 5))" echo "公网元信息端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://dc-cn-guangzhou.arms.aliyuncs.com:9990/api/checkHealth -m 5))" echo "公网指标端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://cn-guangzhou.arms.aliyuncs.com/health/readiness -m 5))" echo "公网持续剖析连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-profiling-cn-guangzhou.oss-cn-guangzhou.aliyuncs.com -m 5))" timeout 5 nc -z -v dc-cn-guangzhou.arms.aliyuncs.com 9093 >/dev/null 2>&1 echo "公网应用安全端口(9093)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-cn-guangzhou.arms.aliyuncs.com 9092 >/dev/null 2>&1 echo "公网应用诊断端口(9092)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://acm.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "公网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "公网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi echo "内网调用链端口(80)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://dc-cn-guangzhou-internal.arms.aliyuncs.com/api/checkHealth -m 5))" echo "内网元信息端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://dc-cn-guangzhou-internal.arms.aliyuncs.com:9990/api/checkHealth -m 5))" echo "内网指标端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://cn-guangzhou-intranet.arms.aliyuncs.com/health/readiness -m 5))" echo "内网持续剖析连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-profiling-cn-guangzhou.oss-cn-guangzhou-internal.aliyuncs.com -m 5))" timeout 5 nc -z -v dc-cn-guangzhou-internal.arms.aliyuncs.com 9093 >/dev/null 2>&1 echo "内网应用安全端口(9093)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-cn-guangzhou-internal.arms.aliyuncs.com 9092 >/dev/null 2>&1 echo "内网应用诊断端口(9092)连通性检查$(check_nc_value $?)" } function cn_heyuan_3() { echo "公网调用链端口(80)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://dc-cn-heyuan.arms.aliyuncs.com/api/checkHealth -m 5))" echo "公网元信息端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://dc-cn-heyuan.arms.aliyuncs.com:9990/api/checkHealth -m 5))" echo "公网指标端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://cn-heyuan.arms.aliyuncs.com/health/readiness -m 5))" echo "公网持续剖析连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-profiling-cn-heyuan.oss-cn-heyuan.aliyuncs.com -m 5))" timeout 5 nc -z -v dc-cn-heyuan.arms.aliyuncs.com 9093 >/dev/null 2>&1 echo "公网应用安全端口(9093)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-cn-heyuan.arms.aliyuncs.com 9092 >/dev/null 2>&1 echo "公网应用诊断端口(9092)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://acm.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "公网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "公网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi echo "内网调用链端口(80)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://dc-cn-heyuan-internal.arms.aliyuncs.com/api/checkHealth -m 5))" echo "内网元信息端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://dc-cn-heyuan-internal.arms.aliyuncs.com:9990/api/checkHealth -m 5))" echo "内网指标端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://cn-heyuan-intranet.arms.aliyuncs.com/health/readiness -m 5))" echo "内网持续剖析连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-profiling-cn-heyuan.oss-cn-heyuan-internal.aliyuncs.com -m 5))" timeout 5 nc -z -v dc-cn-heyuan-internal.arms.aliyuncs.com 9093 >/dev/null 2>&1 echo "内网应用安全端口(9093)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-cn-heyuan-internal.arms.aliyuncs.com 9092 >/dev/null 2>&1 echo "内网应用诊断端口(9092)连通性检查$(check_nc_value $?)" } function cn_huhehaote_3() { echo "公网调用链端口(80)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://dc-cn-huhehaote.arms.aliyuncs.com/api/checkHealth -m 5))" echo "公网元信息端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://dc-cn-huhehaote.arms.aliyuncs.com:9990/api/checkHealth -m 5))" echo "公网指标端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://cn-huhehaote.arms.aliyuncs.com/health/readiness -m 5))" echo "公网持续剖析连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-profiling-cn-huhehaote.oss-cn-huhehaote.aliyuncs.com -m 5))" timeout 5 nc -z -v dc-cn-huhehaote.arms.aliyuncs.com 9093 >/dev/null 2>&1 echo "公网应用安全端口(9093)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-cn-huhehaote.arms.aliyuncs.com 9092 >/dev/null 2>&1 echo "公网应用诊断端口(9092)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://acm.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "公网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "公网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi echo "内网调用链端口(80)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://dc-cn-huhehaote-internal.arms.aliyuncs.com/api/checkHealth -m 5))" echo "内网元信息端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://dc-cn-huhehaote-internal.arms.aliyuncs.com:9990/api/checkHealth -m 5))" echo "内网指标端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://cn-huhehaote-intranet.arms.aliyuncs.com/health/readiness -m 5))" echo "内网持续剖析连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-profiling-cn-huhehaote.oss-cn-huhehaote-internal.aliyuncs.com -m 5))" timeout 5 nc -z -v dc-cn-huhehaote-internal.arms.aliyuncs.com 9093 >/dev/null 2>&1 echo "内网应用安全端口(9093)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-cn-huhehaote-internal.arms.aliyuncs.com 9092 >/dev/null 2>&1 } function cn_wulanchabu_3() { echo "公网调用链端口(80)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://dc-cn-wulanchabu.arms.aliyuncs.com/api/checkHealth -m 5))" echo "公网元信息端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://dc-cn-wulanchabu.arms.aliyuncs.com:9990/api/checkHealth -m 5))" echo "公网指标端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://cn-wulanchabu.arms.aliyuncs.com/health/readiness -m 5))" echo "公网持续剖析连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-profiling-cn-wulanchabu.oss-cn-wulanchabu.aliyuncs.com -m 5))" timeout 5 nc -z -v dc-cn-wulanchabu.arms.aliyuncs.com 9093 >/dev/null 2>&1 echo "公网应用安全端口(9093)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-cn-wulanchabu.arms.aliyuncs.com 9092 >/dev/null 2>&1 echo "公网应用诊断端口(9092)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://acm.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "公网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "公网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi echo "内网调用链端口(80)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://dc-cn-wulanchabu-internal.arms.aliyuncs.com/api/checkHealth -m 5))" echo "内网元信息端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://dc-cn-wulanchabu-internal.arms.aliyuncs.com:9990/api/checkHealth -m 5))" echo "内网指标端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://cn-wulanchabu-intranet.arms.aliyuncs.com/health/readiness -m 5))" echo "内网持续剖析连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-profiling-cn-wulanchabu.oss-cn-wulanchabu-internal.aliyuncs.com -m 5))" timeout 5 nc -z -v dc-cn-wulanchabu-internal.arms.aliyuncs.com 9093 >/dev/null 2>&1 echo "内网应用安全端口(9093)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-cn-wulanchabu-internal.arms.aliyuncs.com 9092 >/dev/null 2>&1 echo "内网应用诊断端口(9092)连通性检查$(check_nc_value $?)" } function eu_west_1_3() { echo "公网调用链端口(80)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://dc-eu-west-1.arms.aliyuncs.com/api/checkHealth -m 5))" echo "公网元信息端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://dc-eu-west-1.arms.aliyuncs.com:9990/api/checkHealth -m 5))" echo "公网指标端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://eu-west-1.arms.aliyuncs.com/health/readiness -m 5))" echo "公网持续剖析连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-profiling-eu-west-1.oss-eu-west-1.aliyuncs.com -m 5))" timeout 5 nc -z -v dc-eu-west-1.arms.aliyuncs.com 9093 >/dev/null 2>&1 echo "公网应用安全端口(9093)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-eu-west-1.arms.aliyuncs.com 9092 >/dev/null 2>&1 echo "公网应用诊断端口(9092)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://acm.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "公网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "公网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi echo "内网调用链端口(80)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://dc-eu-west-1-internal.arms.aliyuncs.com/api/checkHealth -m 5))" echo "内网元信息端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://dc-eu-west-1-internal.arms.aliyuncs.com:9990/api/checkHealth -m 5))" echo "内网指标端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://eu-west-1-intranet.arms.aliyuncs.com/health/readiness -m 5))" echo "内网持续剖析连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-profiling-eu-west-1.oss-eu-west-1-internal.aliyuncs.com -m 5))" timeout 5 nc -z -v dc-eu-west-1-internal.arms.aliyuncs.com 9093 >/dev/null 2>&1 echo "内网应用安全端口(9093)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-eu-west-1-internal.arms.aliyuncs.com 9092 >/dev/null 2>&1 echo "内网应用诊断端口(9092)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://addr-eu-west-1-internal.edas.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "内网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "内网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi } function us_east_1_3() { echo "公网调用链端口(80)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://dc-us-east-1.arms.aliyuncs.com/api/checkHealth -m 5))" echo "公网元信息端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://dc-us-east-1.arms.aliyuncs.com:9990/api/checkHealth -m 5))" echo "公网指标端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://us-east-1.arms.aliyuncs.com/health/readiness -m 5))" echo "公网持续剖析连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-profiling-us-east-1.oss-us-east-1.aliyuncs.com -m 5))" timeout 5 nc -z -v dc-us-east-1.arms.aliyuncs.com 9093 >/dev/null 2>&1 echo "公网应用安全端口(9093)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-us-east-1.arms.aliyuncs.com 9092 >/dev/null 2>&1 echo "公网应用诊断端口(9092)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://acm.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "公网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "公网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi echo "内网调用链端口(80)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://dc-us-east-1-internal.arms.aliyuncs.com/api/checkHealth -m 5))" echo "内网元信息端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://dc-us-east-1-internal.arms.aliyuncs.com:9990/api/checkHealth -m 5))" echo "内网指标端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://us-east-1-intranet.arms.aliyuncs.com/health/readiness -m 5))" echo "内网持续剖析连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-profiling-us-east-1.oss-us-east-1-internal.aliyuncs.com -m 5))" timeout 5 nc -z -v dc-us-east-1-internal.arms.aliyuncs.com 9093 >/dev/null 2>&1 echo "内网应用安全端口(9093)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-us-east-1-internal.arms.aliyuncs.com 9092 >/dev/null 2>&1 echo "内网应用诊断端口(9092)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://addr-us-east-1-internal.edas.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "内网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "内网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi } function eu_central_1_3() { echo "公网调用链端口(80)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-dc-frankfurt.aliyuncs.com/api/checkHealth -m 5))" echo "公网元信息端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-dc-frankfurt.aliyuncs.com:9990/api/checkHealth -m 5))" echo "公网指标端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://eu-central-1.arms.aliyuncs.com/health/readiness -m 5))" echo "公网持续剖析连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-profiling-eu-central-1.oss-eu-central-1.aliyuncs.com -m 5))" timeout 5 nc -z -v arms-dc-frankfurt.aliyuncs.com 9093 >/dev/null 2>&1 echo "公网应用安全端口(9093)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-frankfurt.aliyuncs.com 9092 >/dev/null 2>&1 echo "公网应用诊断端口(9092)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://acm.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "公网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "公网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi echo "内网调用链端口(80)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-dc-frankfurt-internal.aliyuncs.com/api/checkHealth -m 5))" echo "内网元信息端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-dc-frankfurt-internal.aliyuncs.com:9990/api/checkHealth -m 5))" echo "内网指标端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://eu-central-1-intranet.arms.aliyuncs.com/health/readiness -m 5))" echo "内网持续剖析连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-profiling-eu-central-1.oss-eu-central-1-internal.aliyuncs.com -m 5))" timeout 5 nc -z -v arms-dc-frankfurt-internal.aliyuncs.com 9093 >/dev/null 2>&1 echo "内网应用安全端口(9093)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-frankfurt-internal.aliyuncs.com 9092 >/dev/null 2>&1 echo "内网应用诊断端口(9092)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://addr-eu-central-1-internal.edas.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "内网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "内网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi } function cn_north_2_gov_1_3() { echo "公网调用链端口(80)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-dc-gov.aliyuncs.com/api/checkHealth -m 5))" echo "公网元信息端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-dc-gov.aliyuncs.com:9990/api/checkHealth -m 5))" echo "公网指标端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://cn-north-2-gov-1.arms.aliyuncs.com/health/readiness -m 5))" timeout 5 nc -z -v arms-dc-gov.aliyuncs.com 9093 >/dev/null 2>&1 echo "公网应用安全端口(9093)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-gov.aliyuncs.com 9092 >/dev/null 2>&1 echo "公网应用诊断端口(9092)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://acm.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "公网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "公网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi echo "内网调用链端口(80)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-dc-gov-internal.aliyuncs.com/api/checkHealth -m 5))" echo "内网元信息端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-dc-gov-internal.aliyuncs.com:9990/api/checkHealth -m 5))" echo "内网指标端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://cn-north-2-gov-1-intranet.arms.aliyuncs.com/health/readiness -m 5))" timeout 5 nc -z -v arms-dc-gov-internal.aliyuncs.com 9093 >/dev/null 2>&1 echo "内网应用安全端口(9093)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-gov-internal.aliyuncs.com 9092 >/dev/null 2>&1 echo "内网应用诊断端口(9092)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://addr-cn-north-2-gov-1-internal.edas.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "内网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "内网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi } function cn_hongkong_3() { echo "公网调用链端口(80)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-dc-hk.aliyuncs.com/api/checkHealth -m 5))" echo "公网元信息端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-dc-hk.aliyuncs.com:9990/api/checkHealth -m 5))" echo "公网指标端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://cn-hongkong.arms.aliyuncs.com/health/readiness -m 5))" echo "公网持续剖析连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-profiling-cn-hongkong.oss-cn-hongkong.aliyuncs.com -m 5))" timeout 5 nc -z -v arms-dc-hk.aliyuncs.com 9093 >/dev/null 2>&1 echo "公网应用安全端口(9093)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-hk.aliyuncs.com 9092 >/dev/null 2>&1 echo "公网应用诊断端口(9092)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://acm.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "公网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "公网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi echo "内网调用链端口(80)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-dc-hk-internal.aliyuncs.com)/api/checkHealth -m 5))" echo "内网元信息端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-dc-hk-internal.aliyuncs.com):9990/api/checkHealth -m 5))" echo "内网指标端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://cn-hongkong-intranet.arms.aliyuncs.com/health/readiness -m 5))" echo "内网持续剖析连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-profiling-cn-hongkong.oss-cn-hongkong-internal.aliyuncs.com -m 5))" timeout 5 nc -z -v arms-dc-hk-internal.aliyuncs.com) 9093 >/dev/null 2>&1 echo "内网应用安全端口(9093)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-hk-internal.aliyuncs.com) 9092 >/dev/null 2>&1 echo "内网应用诊断端口(9092)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://addr-hk-internal.edas.aliyuncs.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "内网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "内网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi } function cn_hangzhou_finance_3() { echo "公网调用链端口(80)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-dc-hz-finance.aliyuncs.com/api/checkHealth -m 5))" echo "公网元信息端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-dc-hz-finance.aliyuncs.com:9990/api/checkHealth -m 5))" echo "公网指标端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://cn-hangzhou-finance.arms.aliyuncs.com/health/readiness -m 5))" timeout 5 nc -z -v arms-dc-hz-finance.aliyuncs.com 9093 >/dev/null 2>&1 echo "公网应用安全端口(9093)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-hz-finance.aliyuncs.com 9092 >/dev/null 2>&1 echo "公网应用诊断端口(9092)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://acm.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "公网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "公网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi echo "内网调用链端口(80)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-dc-hz-finance-internal.aliyuncs.com/api/checkHealth -m 5))" echo "内网元信息端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-dc-hz-finance-internal.aliyuncs.com:9990/api/checkHealth -m 5))" echo "内网指标端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://cn-hangzhou-finance-intranet.arms.aliyuncs.com/health/readiness -m 5))" echo "内网持续剖析连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-profiling-cn-hangzhou-finance.oss-cn-hzjbp-b-internal.aliyuncs.com -m 5))" timeout 5 nc -z -v arms-dc-hz-finance-internal.aliyuncs.com 9093 >/dev/null 2>&1 echo "内网应用安全端口(9093)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-hz-finance-internal.aliyuncs.com 9092 >/dev/null 2>&1 echo "内网应用诊断端口(9092)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://addr-hz-internal.jbp.console.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "内网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "内网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi } function ap_southeast_5_3() { echo "公网调用链端口(80)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-dc-indonesia.aliyuncs.com/api/checkHealth -m 5))" echo "公网元信息端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-dc-indonesia.aliyuncs.com:9990/api/checkHealth -m 5))" echo "公网指标端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://ap-southeast-5.arms.aliyuncs.com/health/readiness -m 5))" echo "公网持续剖析连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-profiling-ap-southeast-5.oss-ap-southeast-5.aliyuncs.com -m 5))" timeout 5 nc -z -v arms-dc-indonesia.aliyuncs.com 9093 >/dev/null 2>&1 echo "公网应用安全端口(9093)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-indonesia.aliyuncs.com 9092 >/dev/null 2>&1 echo "公网应用诊断端口(9092)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://acm.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "公网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "公网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi echo "内网调用链端口(80)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-dc-indonesia-internal.aliyuncs.com/api/checkHealth -m 5))" echo "内网元信息端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-dc-indonesia-internal.aliyuncs.com:9990/api/checkHealth -m 5))" echo "内网指标端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://ap-southeast-5-intranet.arms.aliyuncs.com/health/readiness -m 5))" echo "内网持续剖析连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-profiling-ap-southeast-5.oss-ap-southeast-5-internal.aliyuncs.com -m 5))" timeout 5 nc -z -v arms-dc-indonesia-internal.aliyuncs.com 9093 >/dev/null 2>&1 echo "内网应用安全端口(9093)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-indonesia-internal.aliyuncs.com 9092 >/dev/null 2>&1 echo "内网应用诊断端口(9092)连通性检查$(check_nc_value $?)" } function ap_northeast_1_3() { echo "公网调用链端口(80)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-dc-jp.aliyuncs.com/api/checkHealth -m 5))" echo "公网元信息端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-dc-jp.aliyuncs.com:9990/api/checkHealth -m 5))" echo "公网指标端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://ap-northeast-1.arms.aliyuncs.com/health/readiness -m 5))" echo "公网持续剖析连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-profiling-ap-northeast-1.oss-ap-northeast-1.aliyuncs.com -m 5))" timeout 5 nc -z -v arms-dc-jp.aliyuncs.com 9093 >/dev/null 2>&1 echo "公网应用安全端口(9093)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-jp.aliyuncs.com 9092 >/dev/null 2>&1 echo "公网应用诊断端口(9092)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://acm.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "公网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "公网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi echo "内网调用链端口(80)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-dc-jp-internal.aliyuncs.com/api/checkHealth -m 5))" echo "内网元信息端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-dc-jp-internal.aliyuncs.com:9990/api/checkHealth -m 5))" echo "内网指标端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://ap-northeast-1-intranet.arms.aliyuncs.com/health/readiness -m 5))" echo "内网持续剖析连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-profiling-ap-northeast-1.oss-ap-northeast-1-internal.aliyuncs.com -m 5))" timeout 5 nc -z -v arms-dc-jp-internal.aliyuncs.com 9093 >/dev/null 2>&1 echo "内网应用安全端口(9093)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-jp-internal.aliyuncs.com 9092 >/dev/null 2>&1 echo "内网应用诊断端口(9092)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://addr-ap-northeast-1-internal.edas.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "内网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "内网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi } function cn_qingdao_3() { echo "公网调用链端口(80)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-dc-qd.aliyuncs.com/api/checkHealth -m 5))" echo "公网元信息端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-dc-qd.aliyuncs.com:9990/api/checkHealth -m 5))" echo "公网指标端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://cn-qingdao.arms.aliyuncs.com/health/readiness -m 5))" echo "公网持续剖析连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-profiling-cn-qingdao.oss-cn-qingdao.aliyuncs.com -m 5))" timeout 5 nc -z -v arms-dc-qd.aliyuncs.com 9093 >/dev/null 2>&1 echo "公网应用安全端口(9093)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-qd.aliyuncs.com 9092 >/dev/null 2>&1 echo "公网应用诊断端口(9092)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://acm.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "公网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "公网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi echo "内网调用链端口(80)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-dc-qd-internal.aliyuncs.com/api/checkHealth -m 5))" echo "内网元信息端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-dc-qd-internal.aliyuncs.com:9990/api/checkHealth -m 5))" echo "内网指标端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://cn-qingdao-intranet.arms.aliyuncs.com/health/readiness -m 5))" echo "内网持续剖析连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-profiling-cn-qingdao.oss-cn-qingdao-internal.aliyuncs.com -m 5))" timeout 5 nc -z -v arms-dc-qd-internal.aliyuncs.com 9093 >/dev/null 2>&1 echo "内网应用安全端口(9093)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-qd-internal.aliyuncs.com 9092 >/dev/null 2>&1 echo "内网应用诊断端口(9092)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://addr-qd-internal.edas.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "内网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "内网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi } function ap_southeast_1_3() { echo "公网调用链端口(80)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-dc-sg.aliyuncs.com/api/checkHealth -m 5))" echo "公网元信息端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-dc-sg.aliyuncs.com:9990/api/checkHealth -m 5))" echo "公网指标端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://ap-southeast-1.arms.aliyuncs.com/health/readiness -m 5))" echo "公网持续剖析连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-profiling-ap-southeast-1.oss-ap-southeast-1.aliyuncs.com -m 5))" timeout 5 nc -z -v arms-dc-sg.aliyuncs.com 9093 >/dev/null 2>&1 echo "公网应用安全端口(9093)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-sg.aliyuncs.com 9092 >/dev/null 2>&1 echo "公网应用诊断端口(9092)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://acm.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "公网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "公网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi echo "内网调用链端口(80)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-dc-sg-internal.aliyuncs.com/api/checkHealth -m 5))" echo "内网元信息端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-dc-sg-internal.aliyuncs.com:9990/api/checkHealth -m 5))" echo "内网指标端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://ap-southeast-1-intranet.arms.aliyuncs.com/health/readiness -m 5))" echo "内网持续剖析连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-profiling-ap-southeast-1.oss-ap-southeast-1-internal.aliyuncs.com -m 5))" timeout 5 nc -z -v arms-dc-sg-internal.aliyuncs.com 9093 >/dev/null 2>&1 echo "内网应用安全端口(9093)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-sg-internal.aliyuncs.com 9092 >/dev/null 2>&1 echo "内网应用诊断端口(9092)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://addr-singapore-internal.edas.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "内网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "内网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi } function cn_shanghai_finance_1_3() { echo "公网调用链端口(80)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-dc-sh-finance.aliyuncs.com/api/checkHealth -m 5))" echo "公网元信息端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-dc-sh-finance.aliyuncs.com:9990/api/checkHealth -m 5))" echo "公网指标端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://cn-shanghai-finance-1.arms.aliyuncs.com/health/readiness -m 5))" echo "公网持续剖析连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-profiling-cn-shanghai-finance-1.oss-cn-shanghai-finance-1.aliyuncs.com -m 5))" timeout 5 nc -z -v arms-dc-sh-finance.aliyuncs.com 9093 >/dev/null 2>&1 echo "公网应用安全端口(9093)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-sh-finance.aliyuncs.com 9092 >/dev/null 2>&1 echo "公网应用诊断端口(9092)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://acm.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "公网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "公网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi echo "内网调用链端口(80)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-dc-sh-finance-internal.aliyuncs.com/api/checkHealth -m 5))" echo "内网元信息端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-dc-sh-finance-internal.aliyuncs.com:9990/api/checkHealth -m 5))" echo "内网指标端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://cn-shanghai-finance-1-intranet.arms.aliyuncs.com/health/readiness -m 5))" echo "内网持续剖析连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-profiling-cn-shanghai-finance-1.oss-cn-shanghai-finance-1-internal.aliyuncs.com -m 5))" timeout 5 nc -z -v arms-dc-sh-finance-internal.aliyuncs.com 9093 >/dev/null 2>&1 echo "内网应用安全端口(9093)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-sh-finance-internal.aliyuncs.com 9092 >/dev/null 2>&1 echo "内网应用诊断端口(9092)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://addr-cn-shanghai-finance-1-internal.edas.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "内网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "内网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi } function cn_shanghai_3() { echo "公网调用链端口(80)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-dc-sh.aliyuncs.com/api/checkHealth -m 5))" echo "公网元信息端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-dc-sh.aliyuncs.com:9990/api/checkHealth -m 5))" echo "公网指标端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://cn-shanghai.arms.aliyuncs.com/health/readiness -m 5))" echo "公网持续剖析连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-profiling-cn-shanghai.oss-cn-shanghai.aliyuncs.com -m 5))" timeout 5 nc -z -v arms-dc-sh.aliyuncs.com 9093 >/dev/null 2>&1 echo "公网应用安全端口(9093)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-sh.aliyuncs.com 9092 >/dev/null 2>&1 echo "公网应用诊断端口(9092)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://acm.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "公网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "公网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi echo "内网调用链端口(80)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-dc-sh-internal.aliyuncs.com/api/checkHealth -m 5))" echo "内网元信息端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-dc-sh-internal.aliyuncs.com:9990/api/checkHealth -m 5))" echo "内网指标端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://cn-shanghai-intranet.arms.aliyuncs.com/health/readiness -m 5))" echo "内网持续剖析连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-profiling-cn-shanghai.oss-cn-shanghai-internal.aliyuncs.com -m 5))" timeout 5 nc -z -v arms-dc-sh-internal.aliyuncs.com 9093 >/dev/null 2>&1 echo "内网应用安全端口(9093)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-sh-internal.aliyuncs.com 9092 >/dev/null 2>&1 echo "内网应用诊断端口(9092)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://addr-sh-internal.edas.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "内网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "内网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi } function cn_shenzhen_finance_1_3() { echo "公网调用链端口(80)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-dc-sz-finance.aliyuncs.com/api/checkHealth -m 5))" echo "公网元信息端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-dc-sz-finance.aliyuncs.com:9990/api/checkHealth -m 5))" echo "公网指标端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://cn-shenzhen-finance-1.arms.aliyuncs.com/health/readiness -m 5))" echo "公网持续剖析连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-profiling-cn-shenzhen-finance-1.oss-cn-shenzhen-finance-1.aliyuncs.com -m 5))" timeout 5 nc -z -v arms-dc-sz-finance.aliyuncs.com 9093 >/dev/null 2>&1 echo "公网应用安全端口(9093)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-sz-finance.aliyuncs.com 9092 >/dev/null 2>&1 echo "公网应用诊断端口(9092)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://acm.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "公网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "公网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi echo "内网调用链端口(80)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-dc-sz-finance-internal.aliyuncs.com/api/checkHealth -m 5))" echo "内网元信息端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-dc-sz-finance-internal.aliyuncs.com:9990/api/checkHealth -m 5))" echo "内网指标端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://cn-shenzhen-finance-1-intranet.arms.aliyuncs.com/health/readiness -m 5))" echo "内网持续剖析连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-profiling-cn-shenzhen-finance-1.oss-cn-shenzhen-finance-1-internal.aliyuncs.com -m 5))" timeout 5 nc -z -v arms-dc-sz-finance-internal.aliyuncs.com 9093 >/dev/null 2>&1 echo "内网应用安全端口(9093)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-sz-finance-internal.aliyuncs.com 9092 >/dev/null 2>&1 echo "内网应用诊断端口(9092)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://addr-sz-internal.jbp.console.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "内网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "内网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi } function cn_shenzhen_3() { echo "公网调用链端口(80)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-dc-sz.aliyuncs.com/api/checkHealth -m 5))" echo "公网元信息端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-dc-sz.aliyuncs.com:9990/api/checkHealth -m 5))" echo "公网指标端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://cn-shenzhen.arms.aliyuncs.com/health/readiness -m 5))" echo "公网持续剖析连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-profiling-cn-shenzhen.oss-cn-shenzhen.aliyuncs.com -m 5))" timeout 5 nc -z -v arms-dc-sz.aliyuncs.com 9093 >/dev/null 2>&1 echo "公网应用安全端口(9093)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-sz.aliyuncs.com 9092 >/dev/null 2>&1 echo "公网应用诊断端口(9092)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://acm.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "公网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "公网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi echo "内网调用链端口(80)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-dc-sz-internal.aliyuncs.com/api/checkHealth -m 5))" echo "内网元信息端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-dc-sz-internal.aliyuncs.com:9990/api/checkHealth -m 5))" echo "内网指标端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://cn-shenzhen-intranet.arms.aliyuncs.com/health/readiness -m 5))" echo "内网持续剖析连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-profiling-cn-shenzhen.oss-cn-shenzhen-internal.aliyuncs.com -m 5))" timeout 5 nc -z -v arms-dc-sz-internal.aliyuncs.com 9093 >/dev/null 2>&1 echo "内网应用安全端口(9093)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-sz-internal.aliyuncs.com 9092 >/dev/null 2>&1 echo "内网应用诊断端口(9092)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://addr-sz-internal.edas.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "内网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "内网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi } function us_west_1_3() { echo "公网调用链端口(80)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-dc-usw.aliyuncs.com/api/checkHealth -m 5))" echo "公网元信息端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-dc-usw.aliyuncs.com:9990/api/checkHealth -m 5))" echo "公网指标端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://us-west-1.arms.aliyuncs.com/health/readiness -m 5))" echo "公网持续剖析连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-profiling-us-west-1.oss-us-west-1.aliyuncs.com -m 5))" timeout 5 nc -z -v arms-dc-usw.aliyuncs.com 9093 >/dev/null 2>&1 echo "公网应用安全端口(9093)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-usw.aliyuncs.com 9092 >/dev/null 2>&1 echo "公网应用诊断端口(9092)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://acm.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "公网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "公网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi echo "内网调用链端口(80)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://dc-us-west-1-internal.arms.aliyuncs.com/api/checkHealth -m 5))" echo "内网元信息端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://dc-us-west-1-internal.arms.aliyuncs.com:9990/api/checkHealth -m 5))" echo "内网指标端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://us-west-1-intranet.arms.aliyuncs.com/health/readiness -m 5))" echo "内网持续剖析连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-profiling-us-west-1.oss-us-west-1-internal.aliyuncs.com -m 5))" timeout 5 nc -z -v dc-us-west-1-internal.arms.aliyuncs.com 9093 >/dev/null 2>&1 echo "内网应用安全端口(9093)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-us-west-1-internal.arms.aliyuncs.com 9092 >/dev/null 2>&1 echo "内网应用诊断端口(9092)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://arms-dc-usw.aliyuncs.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "内网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "内网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi } function cn_zhangjiakou_3() { echo "公网调用链端口(80)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-dc-zb.aliyuncs.com/api/checkHealth -m 5))" echo "公网元信息端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-dc-zb.aliyuncs.com:9990/api/checkHealth -m 5))" echo "公网指标端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://cn-zhangjiakou.arms.aliyuncs.com/health/readiness -m 5))" echo "公网持续剖析连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-profiling-cn-zhangjiakou.oss-cn-zhangjiakou.aliyuncs.com -m 5))" timeout 5 nc -z -v arms-dc-zb.aliyuncs.com 9093 >/dev/null 2>&1 echo "公网应用安全端口(9093)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-zb.aliyuncs.com 9092 >/dev/null 2>&1 echo "公网应用诊断端口(9092)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://acm.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "公网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "公网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi echo "内网调用链端口(80)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-dc-zb-internal.aliyuncs.com/api/checkHealth -m 5))" echo "内网元信息端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-dc-zb-internal.aliyuncs.com:9990/api/checkHealth -m 5))" echo "内网指标端口(9990)连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://cn-zhangjiakou-intranet.arms.aliyuncs.com/health/readiness -m 5))" echo "内网持续剖析连通性检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" http://arms-profiling-cn-zhangjiakou.oss-cn-zhangjiakou-internal.aliyuncs.com -m 5))" timeout 5 nc -z -v arms-dc-zb-internal.aliyuncs.com 9093 >/dev/null 2>&1 echo "内网应用安全端口(9093)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-zb-internal.aliyuncs.com 9092 >/dev/null 2>&1 echo "内网应用诊断端口(9092)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://addr-cn-zhangjiakou-internal.edas.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "内网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "内网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi } function cn_beijing_2() { timeout 5 nc -z -v arms-dc-bj.aliyuncs.com 8442 >/dev/null 2>&1 echo "公网元数据端口(8442)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-bj.aliyuncs.com 8443 >/dev/null 2>&1 echo "公网统计数据端口(8443)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-bj.aliyuncs.com 8883 >/dev/null 2>&1 echo "公网明细数据端口(8883)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-bj.aliyuncs.com 8848 >/dev/null 2>&1 echo "公网微服务数据端口(8848)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-bj.aliyuncs.com 9092 >/dev/null 2>&1 echo "公网应用诊断数据端口(9092)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-bj.aliyuncs.com 9093 >/dev/null 2>&1 echo "公网应用安全数据端口(9093)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://acm.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "公网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "公网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi timeout 5 nc -z -v arms-dc-bj-internal.aliyuncs.com 8442 >/dev/null 2>&1 echo "内网元数据端口(8442)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-bj-internal.aliyuncs.com 8443 >/dev/null 2>&1 echo "内网统计数据端口(8443)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-bj-internal.aliyuncs.com 8883 >/dev/null 2>&1 echo "内网明细数据端口(8883)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-bj-internal.aliyuncs.com 8848 >/dev/null 2>&1 echo "内网微服务数据端口(8848)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-bj-internal.aliyuncs.com 9092 >/dev/null 2>&1 echo "内网应用诊断数据端口(9092)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-bj-internal.aliyuncs.com 9093 >/dev/null 2>&1 echo "内网应用安全数据端口(9093)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://addr-bj-internal.edas.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "内网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "内网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi } function cn_hangzhou_2() { timeout 5 nc -z -v arms-dc-hz.aliyuncs.com 8442 >/dev/null 2>&1 echo "公网元数据端口(8442)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-hz.aliyuncs.com 8443 >/dev/null 2>&1 echo "公网统计数据端口(8443)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-hz.aliyuncs.com 8883 >/dev/null 2>&1 echo "公网明细数据端口(8883)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-hz.aliyuncs.com 8848 >/dev/null 2>&1 echo "公网微服务数据端口(8848)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-hz.aliyuncs.com 9092 >/dev/null 2>&1 echo "公网应用诊断数据端口(9092)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-hz.aliyuncs.com 9093 >/dev/null 2>&1 echo "公网应用安全数据端口(9093)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://acm.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "公网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "公网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi timeout 5 nc -z -v arms-dc-hz-internal.aliyuncs.com 8442 >/dev/null 2>&1 echo "内网元数据端口(8442)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-hz-internal.aliyuncs.com 8443 >/dev/null 2>&1 echo "内网统计数据端口(8443)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-hz-internal.aliyuncs.com 8883 >/dev/null 2>&1 echo "内网明细数据端口(8883)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-hz-internal.aliyuncs.com 8848 >/dev/null 2>&1 echo "内网微服务数据端口(8848)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-hz-internal.aliyuncs.com 9092 >/dev/null 2>&1 echo "内网应用诊断数据端口(9092)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-hz-internal.aliyuncs.com 9093 >/dev/null 2>&1 echo "内网应用安全数据端口(9093)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://addr-hz-internal.edas.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "内网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "内网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi } function ap_south_1_2() { timeout 5 nc -z -v dc-ap-south-1.arms.aliyuncs.com 8442 >/dev/null 2>&1 echo "公网元数据端口(8442)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-ap-south-1.arms.aliyuncs.com 8443 >/dev/null 2>&1 echo "公网统计数据端口(8443)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-ap-south-1.arms.aliyuncs.com 8883 >/dev/null 2>&1 echo "公网明细数据端口(8883)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-ap-south-1.arms.aliyuncs.com 8848 >/dev/null 2>&1 echo "公网微服务数据端口(8848)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-ap-south-1.arms.aliyuncs.com 9092 >/dev/null 2>&1 echo "公网应用诊断数据端口(9092)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-ap-south-1.arms.aliyuncs.com 9093 >/dev/null 2>&1 echo "公网应用安全数据端口(9093)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://acm.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "公网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "公网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi timeout 5 nc -z -v dc-ap-south-1-internal.arms.aliyuncs.com 8442 >/dev/null 2>&1 echo "内网元数据端口(8442)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-ap-south-1-internal.arms.aliyuncs.com 8443 >/dev/null 2>&1 echo "内网统计数据端口(8443)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-ap-south-1-internal.arms.aliyuncs.com 8883 >/dev/null 2>&1 echo "内网明细数据端口(8883)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-ap-south-1-internal.arms.aliyuncs.com 8848 >/dev/null 2>&1 echo "内网微服务数据端口(8848)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-ap-south-1-internal.arms.aliyuncs.com 9092 >/dev/null 2>&1 echo "内网应用诊断数据端口(9092)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-ap-south-1-internal.arms.aliyuncs.com 9093 >/dev/null 2>&1 echo "内网应用安全数据端口(9093)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://addr-ap-south-1-internal.acm.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "内网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "内网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi } function ap_southeast_2_2() { timeout 5 nc -z -v dc-ap-southeast-2.arms.aliyuncs.com 8442 >/dev/null 2>&1 echo "公网元数据端口(8442)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-ap-southeast-2.arms.aliyuncs.com 8443 >/dev/null 2>&1 echo "公网统计数据端口(8443)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-ap-southeast-2.arms.aliyuncs.com 8883 >/dev/null 2>&1 echo "公网明细数据端口(8883)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-ap-southeast-2.arms.aliyuncs.com 8848 >/dev/null 2>&1 echo "公网微服务数据端口(8848)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-ap-southeast-2.arms.aliyuncs.com 9092 >/dev/null 2>&1 echo "公网应用诊断数据端口(9092)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-ap-southeast-2.arms.aliyuncs.com 9093 >/dev/null 2>&1 echo "公网应用安全数据端口(9093)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://acm.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "公网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "公网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi timeout 5 nc -z -v dc-ap-southeast-2-internal.arms.aliyuncs.com 8442 >/dev/null 2>&1 echo "内网元数据端口(8442)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-ap-southeast-2-internal.arms.aliyuncs.com 8443 >/dev/null 2>&1 echo "内网统计数据端口(8443)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-ap-southeast-2-internal.arms.aliyuncs.com 8883 >/dev/null 2>&1 echo "内网明细数据端口(8883)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-ap-southeast-2-internal.arms.aliyuncs.com 8848 >/dev/null 2>&1 echo "内网微服务数据端口(8848)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-ap-southeast-2-internal.arms.aliyuncs.com 9092 >/dev/null 2>&1 echo "内网应用诊断数据端口(9092)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-ap-southeast-2-internal.arms.aliyuncs.com 9093 >/dev/null 2>&1 echo "内网应用安全数据端口(9093)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://addr-ap-southeast-2-internal.edas.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "内网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "内网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi } function ap_southeast_3_2() { timeout 5 nc -z -v dc-ap-southeast-3.arms.aliyuncs.com 8442 >/dev/null 2>&1 echo "公网元数据端口(8442)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-ap-southeast-3.arms.aliyuncs.com 8443 >/dev/null 2>&1 echo "公网统计数据端口(8443)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-ap-southeast-3.arms.aliyuncs.com 8883 >/dev/null 2>&1 echo "公网明细数据端口(8883)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-ap-southeast-3.arms.aliyuncs.com 8848 >/dev/null 2>&1 echo "公网微服务数据端口(8848)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-ap-southeast-3.arms.aliyuncs.com 9092 >/dev/null 2>&1 echo "公网应用诊断数据端口(9092)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-ap-southeast-3.arms.aliyuncs.com 9093 >/dev/null 2>&1 echo "公网应用安全数据端口(9093)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://acm.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "公网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "公网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi timeout 5 nc -z -v dc-ap-southeast-3-internal.arms.aliyuncs.com 8442 >/dev/null 2>&1 echo "内网元数据端口(8442)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-ap-southeast-3-internal.arms.aliyuncs.com 8443 >/dev/null 2>&1 echo "内网统计数据端口(8443)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-ap-southeast-3-internal.arms.aliyuncs.com 8883 >/dev/null 2>&1 echo "内网明细数据端口(8883)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-ap-southeast-3-internal.arms.aliyuncs.com 8848 >/dev/null 2>&1 echo "内网微服务数据端口(8848)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-ap-southeast-3-internal.arms.aliyuncs.com 9092 >/dev/null 2>&1 echo "内网应用诊断数据端口(9092)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-ap-southeast-3-internal.arms.aliyuncs.com 9093 >/dev/null 2>&1 echo "内网应用安全数据端口(9093)连通性检查$(check_nc_value $?)" } function cn_chengdu_2() { timeout 5 nc -z -v dc-cn-chengdu.arms.aliyuncs.com 8442 >/dev/null 2>&1 echo "公网元数据端口(8442)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-cn-chengdu.arms.aliyuncs.com 8443 >/dev/null 2>&1 echo "公网统计数据端口(8443)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-cn-chengdu.arms.aliyuncs.com 8883 >/dev/null 2>&1 echo "公网明细数据端口(8883)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-cn-chengdu.arms.aliyuncs.com 8848 >/dev/null 2>&1 echo "公网微服务数据端口(8848)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-cn-chengdu.arms.aliyuncs.com 9092 >/dev/null 2>&1 echo "公网应用诊断数据端口(9092)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-cn-chengdu.arms.aliyuncs.com 9093 >/dev/null 2>&1 echo "公网应用安全数据端口(9093)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://acm.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "公网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "公网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi timeout 5 nc -z -v dc-cn-chengdu-internal.arms.aliyuncs.com 8442 >/dev/null 2>&1 echo "内网元数据端口(8442)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-cn-chengdu-internal.arms.aliyuncs.com 8443 >/dev/null 2>&1 echo "内网统计数据端口(8443)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-cn-chengdu-internal.arms.aliyuncs.com 8883 >/dev/null 2>&1 echo "内网明细数据端口(8883)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-cn-chengdu-internal.arms.aliyuncs.com 8848 >/dev/null 2>&1 echo "内网微服务数据端口(8848)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-cn-chengdu-internal.arms.aliyuncs.com 9092 >/dev/null 2>&1 echo "内网应用诊断数据端口(9092)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-cn-chengdu-internal.arms.aliyuncs.com 9093 >/dev/null 2>&1 echo "内网应用安全数据端口(9093)连通性检查$(check_nc_value $?)" } function cn_guangzhou_2() { timeout 5 nc -z -v dc-cn-guangzhou.arms.aliyuncs.com 8442 >/dev/null 2>&1 echo "公网元数据端口(8442)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-cn-guangzhou.arms.aliyuncs.com 8443 >/dev/null 2>&1 echo "公网统计数据端口(8443)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-cn-guangzhou.arms.aliyuncs.com 8883 >/dev/null 2>&1 echo "公网明细数据端口(8883)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-cn-guangzhou.arms.aliyuncs.com 8848 >/dev/null 2>&1 echo "公网微服务数据端口(8848)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-cn-guangzhou.arms.aliyuncs.com 9092 >/dev/null 2>&1 echo "公网应用诊断数据端口(9092)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-cn-guangzhou.arms.aliyuncs.com 9093 >/dev/null 2>&1 echo "公网应用安全数据端口(9093)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://acm.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "公网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "公网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi timeout 5 nc -z -v dc-cn-guangzhou-internal.arms.aliyuncs.com 8442 >/dev/null 2>&1 echo "内网元数据端口(8442)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-cn-guangzhou-internal.arms.aliyuncs.com 8443 >/dev/null 2>&1 echo "内网统计数据端口(8443)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-cn-guangzhou-internal.arms.aliyuncs.com 8883 >/dev/null 2>&1 echo "内网明细数据端口(8883)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-cn-guangzhou-internal.arms.aliyuncs.com 8848 >/dev/null 2>&1 echo "内网微服务数据端口(8848)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-cn-guangzhou-internal.arms.aliyuncs.com 9092 >/dev/null 2>&1 echo "内网应用诊断数据端口(9092)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-cn-guangzhou-internal.arms.aliyuncs.com 9093 >/dev/null 2>&1 echo "内网应用安全数据端口(9093)连通性检查$(check_nc_value $?)" } function cn_heyuan_2() { timeout 5 nc -z -v dc-cn-heyuan.arms.aliyuncs.com 8442 >/dev/null 2>&1 echo "公网元数据端口(8442)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-cn-heyuan.arms.aliyuncs.com 8443 >/dev/null 2>&1 echo "公网统计数据端口(8443)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-cn-heyuan.arms.aliyuncs.com 8883 >/dev/null 2>&1 echo "公网明细数据端口(8883)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-cn-heyuan.arms.aliyuncs.com 8848 >/dev/null 2>&1 echo "公网微服务数据端口(8848)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-cn-heyuan.arms.aliyuncs.com 9092 >/dev/null 2>&1 echo "公网应用诊断数据端口(9092)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-cn-heyuan.arms.aliyuncs.com 9093 >/dev/null 2>&1 echo "公网应用安全数据端口(9093)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://acm.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "公网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "公网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi timeout 5 nc -z -v dc-cn-heyuan-internal.arms.aliyuncs.com 8442 >/dev/null 2>&1 echo "内网元数据端口(8442)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-cn-heyuan-internal.arms.aliyuncs.com 8443 >/dev/null 2>&1 echo "内网统计数据端口(8443)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-cn-heyuan-internal.arms.aliyuncs.com 8883 >/dev/null 2>&1 echo "内网明细数据端口(8883)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-cn-heyuan-internal.arms.aliyuncs.com 8848 >/dev/null 2>&1 echo "内网微服务数据端口(8848)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-cn-heyuan-internal.arms.aliyuncs.com 9092 >/dev/null 2>&1 echo "内网应用诊断数据端口(9092)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-cn-heyuan-internal.arms.aliyuncs.com 9093 >/dev/null 2>&1 echo "内网应用安全数据端口(9093)连通性检查$(check_nc_value $?)" } function cn_huhehaote_2() { timeout 5 nc -z -v dc-cn-huhehaote.arms.aliyuncs.com 8442 >/dev/null 2>&1 echo "公网元数据端口(8442)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-cn-huhehaote.arms.aliyuncs.com 8443 >/dev/null 2>&1 echo "公网统计数据端口(8443)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-cn-huhehaote.arms.aliyuncs.com 8883 >/dev/null 2>&1 echo "公网明细数据端口(8883)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-cn-huhehaote.arms.aliyuncs.com 8848 >/dev/null 2>&1 echo "公网微服务数据端口(8848)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-cn-huhehaote.arms.aliyuncs.com 9092 >/dev/null 2>&1 echo "公网应用诊断数据端口(9092)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-cn-huhehaote.arms.aliyuncs.com 9093 >/dev/null 2>&1 echo "公网应用安全数据端口(9093)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://acm.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "公网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "公网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi timeout 5 nc -z -v dc-cn-huhehaote-internal.arms.aliyuncs.com 8442 >/dev/null 2>&1 echo "内网元数据端口(8442)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-cn-huhehaote-internal.arms.aliyuncs.com 8443 >/dev/null 2>&1 echo "内网统计数据端口(8443)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-cn-huhehaote-internal.arms.aliyuncs.com 8883 >/dev/null 2>&1 echo "内网明细数据端口(8883)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-cn-huhehaote-internal.arms.aliyuncs.com 8848 >/dev/null 2>&1 echo "内网微服务数据端口(8848)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-cn-huhehaote-internal.arms.aliyuncs.com 9092 >/dev/null 2>&1 echo "内网应用诊断数据端口(9092)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-cn-huhehaote-internal.arms.aliyuncs.com 9093 >/dev/null 2>&1 echo "内网应用安全数据端口(9093)连通性检查$(check_nc_value $?)" } function cn_wulanchabu_2() { timeout 5 nc -z -v dc-cn-wulanchabu.arms.aliyuncs.com 8442 >/dev/null 2>&1 echo "公网元数据端口(8442)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-cn-wulanchabu.arms.aliyuncs.com 8443 >/dev/null 2>&1 echo "公网统计数据端口(8443)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-cn-wulanchabu.arms.aliyuncs.com 8883 >/dev/null 2>&1 echo "公网明细数据端口(8883)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-cn-wulanchabu.arms.aliyuncs.com 8848 >/dev/null 2>&1 echo "公网微服务数据端口(8848)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-cn-wulanchabu.arms.aliyuncs.com 9092 >/dev/null 2>&1 echo "公网应用诊断数据端口(9092)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-cn-wulanchabu.arms.aliyuncs.com 9093 >/dev/null 2>&1 echo "公网应用安全数据端口(9093)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://acm.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "公网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "公网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi timeout 5 nc -z -v dc-cn-wulanchabu-internal.arms.aliyuncs.com 8442 >/dev/null 2>&1 echo "内网元数据端口(8442)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-cn-wulanchabu-internal.arms.aliyuncs.com 8443 >/dev/null 2>&1 echo "内网统计数据端口(8443)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-cn-wulanchabu-internal.arms.aliyuncs.com 8883 >/dev/null 2>&1 echo "内网明细数据端口(8883)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-cn-wulanchabu-internal.arms.aliyuncs.com 8848 >/dev/null 2>&1 echo "内网微服务数据端口(8848)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-cn-wulanchabu-internal.arms.aliyuncs.com 9092 >/dev/null 2>&1 echo "内网应用诊断数据端口(9092)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-cn-wulanchabu-internal.arms.aliyuncs.com 9093 >/dev/null 2>&1 echo "内网应用安全数据端口(9093)连通性检查$(check_nc_value $?)" } function eu_west_1_2() { timeout 5 nc -z -v dc-eu-west-1.arms.aliyuncs.com 8442 >/dev/null 2>&1 echo "公网元数据端口(8442)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-eu-west-1.arms.aliyuncs.com 8443 >/dev/null 2>&1 echo "公网统计数据端口(8443)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-eu-west-1.arms.aliyuncs.com 8883 >/dev/null 2>&1 echo "公网明细数据端口(8883)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-eu-west-1.arms.aliyuncs.com 8848 >/dev/null 2>&1 echo "公网微服务数据端口(8848)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-eu-west-1.arms.aliyuncs.com 9092 >/dev/null 2>&1 echo "公网应用诊断数据端口(9092)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-eu-west-1.arms.aliyuncs.com 9093 >/dev/null 2>&1 echo "公网应用安全数据端口(9093)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://acm.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "公网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "公网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi timeout 5 nc -z -v dc-eu-west-1-internal.arms.aliyuncs.com 8442 >/dev/null 2>&1 echo "内网元数据端口(8442)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-eu-west-1-internal.arms.aliyuncs.com 8443 >/dev/null 2>&1 echo "内网统计数据端口(8443)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-eu-west-1-internal.arms.aliyuncs.com 8883 >/dev/null 2>&1 echo "内网明细数据端口(8883)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-eu-west-1-internal.arms.aliyuncs.com 8848 >/dev/null 2>&1 echo "内网微服务数据端口(8848)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-eu-west-1-internal.arms.aliyuncs.com 9092 >/dev/null 2>&1 echo "内网应用诊断数据端口(9092)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-eu-west-1-internal.arms.aliyuncs.com 9093 >/dev/null 2>&1 echo "内网应用安全数据端口(9093)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://addr-eu-west-1-internal.edas.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "内网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "内网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi } function us_east_1_2() { timeout 5 nc -z -v dc-us-east-1.arms.aliyuncs.com 8442 >/dev/null 2>&1 echo "公网元数据端口(8442)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-us-east-1.arms.aliyuncs.com 8443 >/dev/null 2>&1 echo "公网统计数据端口(8443)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-us-east-1.arms.aliyuncs.com 8883 >/dev/null 2>&1 echo "公网明细数据端口(8883)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-us-east-1.arms.aliyuncs.com 8848 >/dev/null 2>&1 echo "公网微服务数据端口(8848)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-us-east-1.arms.aliyuncs.com 9092 >/dev/null 2>&1 echo "公网应用诊断数据端口(9092)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-us-east-1.arms.aliyuncs.com 9093 >/dev/null 2>&1 echo "公网应用安全数据端口(9093)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://acm.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "公网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "公网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi timeout 5 nc -z -v dc-us-east-1-internal.arms.aliyuncs.com 8442 >/dev/null 2>&1 echo "内网元数据端口(8442)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-us-east-1-internal.arms.aliyuncs.com 8443 >/dev/null 2>&1 echo "内网统计数据端口(8443)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-us-east-1-internal.arms.aliyuncs.com 8883 >/dev/null 2>&1 echo "内网明细数据端口(8883)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-us-east-1-internal.arms.aliyuncs.com 8848 >/dev/null 2>&1 echo "内网微服务数据端口(8848)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-us-east-1-internal.arms.aliyuncs.com 9092 >/dev/null 2>&1 echo "内网应用诊断数据端口(9092)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-us-east-1-internal.arms.aliyuncs.com 9093 >/dev/null 2>&1 echo "内网应用安全数据端口(9093)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://addr-us-east-1-internal.edas.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "内网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "内网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi } function eu_central_1_2() { timeout 5 nc -z -v arms-dc-frankfurt.aliyuncs.com 8442 >/dev/null 2>&1 echo "公网元数据端口(8442)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-frankfurt.aliyuncs.com 8443 >/dev/null 2>&1 echo "公网统计数据端口(8443)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-frankfurt.aliyuncs.com 8883 >/dev/null 2>&1 echo "公网明细数据端口(8883)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-frankfurt.aliyuncs.com 8848 >/dev/null 2>&1 echo "公网微服务数据端口(8848)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-frankfurt.aliyuncs.com 9092 >/dev/null 2>&1 echo "公网应用诊断数据端口(9092)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-frankfurt.aliyuncs.com 9093 >/dev/null 2>&1 echo "公网应用安全数据端口(9093)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://acm.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "公网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "公网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi timeout 5 nc -z -v arms-dc-frankfurt-internal.aliyuncs.com 8442 >/dev/null 2>&1 echo "内网元数据端口(8442)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-frankfurt-internal.aliyuncs.com 8443 >/dev/null 2>&1 echo "内网统计数据端口(8443)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-frankfurt-internal.aliyuncs.com 8883 >/dev/null 2>&1 echo "内网明细数据端口(8883)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-frankfurt-internal.aliyuncs.com 8848 >/dev/null 2>&1 echo "内网微服务数据端口(8848)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-frankfurt-internal.aliyuncs.com 9092 >/dev/null 2>&1 echo "内网应用诊断数据端口(9092)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-frankfurt-internal.aliyuncs.com 9093 >/dev/null 2>&1 echo "内网应用安全数据端口(9093)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://addr-eu-central-1-internal.edas.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "内网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "内网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi } function cn_north_2_gov_1_2() { timeout 5 nc -z -v arms-dc-gov.aliyuncs.com 8442 >/dev/null 2>&1 echo "公网元数据端口(8442)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-gov.aliyuncs.com 8443 >/dev/null 2>&1 echo "公网统计数据端口(8443)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-gov.aliyuncs.com 8883 >/dev/null 2>&1 echo "公网明细数据端口(8883)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-gov.aliyuncs.com 8848 >/dev/null 2>&1 echo "公网微服务数据端口(8848)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-gov.aliyuncs.com 9092 >/dev/null 2>&1 echo "公网应用诊断数据端口(9092)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-gov.aliyuncs.com 9093 >/dev/null 2>&1 echo "公网应用安全数据端口(9093)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://acm.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "公网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "公网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi timeout 5 nc -z -v arms-dc-gov-internal.aliyuncs.com 8442 >/dev/null 2>&1 echo "内网元数据端口(8442)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-gov-internal.aliyuncs.com 8443 >/dev/null 2>&1 echo "内网统计数据端口(8443)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-gov-internal.aliyuncs.com 8883 >/dev/null 2>&1 echo "内网明细数据端口(8883)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-gov-internal.aliyuncs.com 8848 >/dev/null 2>&1 echo "内网微服务数据端口(8848)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-gov-internal.aliyuncs.com 9092 >/dev/null 2>&1 echo "内网应用诊断数据端口(9092)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-gov-internal.aliyuncs.com 9093 >/dev/null 2>&1 echo "内网应用安全数据端口(9093)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://addr-cn-north-2-gov-1-internal.edas.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "内网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "内网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi } function cn_hongkong_2() { timeout 5 nc -z -v arms-dc-hk.aliyuncs.com 8442 >/dev/null 2>&1 echo "公网元数据端口(8442)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-hk.aliyuncs.com 8443 >/dev/null 2>&1 echo "公网统计数据端口(8443)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-hk.aliyuncs.com 8883 >/dev/null 2>&1 echo "公网明细数据端口(8883)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-hk.aliyuncs.com 8848 >/dev/null 2>&1 echo "公网微服务数据端口(8848)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-hk.aliyuncs.com 9092 >/dev/null 2>&1 echo "公网应用诊断数据端口(9092)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-hk.aliyuncs.com 9093 >/dev/null 2>&1 echo "公网应用安全数据端口(9093)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://acm.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "公网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "公网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi timeout 5 nc -z -v arms-dc-hk-internal.aliyuncs.com 8442 >/dev/null 2>&1 echo "内网元数据端口(8442)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-hk-internal.aliyuncs.com 8443 >/dev/null 2>&1 echo "内网统计数据端口(8443)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-hk-internal.aliyuncs.com 8883 >/dev/null 2>&1 echo "内网明细数据端口(8883)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-hk-internal.aliyuncs.com 8848 >/dev/null 2>&1 echo "内网微服务数据端口(8848)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-hk-internal.aliyuncs.com 9092 >/dev/null 2>&1 echo "内网应用诊断数据端口(9092)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-hk-internal.aliyuncs.com 9093 >/dev/null 2>&1 echo "内网应用安全数据端口(9093)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://addr-hk-internal.edas.aliyuncs.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "内网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "内网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi } function cn_hangzhou_finance_2() { timeout 5 nc -z -v arms-dc-hz-finance.aliyuncs.com 8442 >/dev/null 2>&1 echo "公网元数据端口(8442)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-hz-finance.aliyuncs.com 8443 >/dev/null 2>&1 echo "公网统计数据端口(8443)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-hz-finance.aliyuncs.com 8883 >/dev/null 2>&1 echo "公网明细数据端口(8883)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-hz-finance.aliyuncs.com 8848 >/dev/null 2>&1 echo "公网微服务数据端口(8848)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-hz-finance.aliyuncs.com 9092 >/dev/null 2>&1 echo "公网应用诊断数据端口(9092)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-hz-finance.aliyuncs.com 9093 >/dev/null 2>&1 echo "公网应用安全数据端口(9093)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://acm.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "公网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "公网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi timeout 5 nc -z -v arms-dc-hz-finance-internal.aliyuncs.com 8442 >/dev/null 2>&1 echo "内网元数据端口(8442)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-hz-finance-internal.aliyuncs.com 8443 >/dev/null 2>&1 echo "内网统计数据端口(8443)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-hz-finance-internal.aliyuncs.com 8883 >/dev/null 2>&1 echo "内网明细数据端口(8883)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-hz-finance-internal.aliyuncs.com 8848 >/dev/null 2>&1 echo "内网微服务数据端口(8848)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-hz-finance-internal.aliyuncs.com 9092 >/dev/null 2>&1 echo "内网应用诊断数据端口(9092)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-hz-finance-internal.aliyuncs.com 9093 >/dev/null 2>&1 echo "内网应用安全数据端口(9093)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://addr-hz-internal.jbp.console.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "内网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "内网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi } function ap_southeast_5_2() { timeout 5 nc -z -v arms-dc-indonesia.aliyuncs.com 8442 >/dev/null 2>&1 echo "公网元数据端口(8442)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-indonesia.aliyuncs.com 8443 >/dev/null 2>&1 echo "公网统计数据端口(8443)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-indonesia.aliyuncs.com 8883 >/dev/null 2>&1 echo "公网明细数据端口(8883)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-indonesia.aliyuncs.com 8848 >/dev/null 2>&1 echo "公网微服务数据端口(8848)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-indonesia.aliyuncs.com 9092 >/dev/null 2>&1 echo "公网应用诊断数据端口(9092)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-indonesia.aliyuncs.com 9093 >/dev/null 2>&1 echo "公网应用安全数据端口(9093)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://acm.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "公网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "公网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi timeout 5 nc -z -v arms-dc-indonesia-internal.aliyuncs.com 8442 >/dev/null 2>&1 echo "内网元数据端口(8442)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-indonesia-internal.aliyuncs.com 8443 >/dev/null 2>&1 echo "内网统计数据端口(8443)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-indonesia-internal.aliyuncs.com 8883 >/dev/null 2>&1 echo "内网明细数据端口(8883)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-indonesia-internal.aliyuncs.com 8848 >/dev/null 2>&1 echo "内网微服务数据端口(8848)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-indonesia-internal.aliyuncs.com 9092 >/dev/null 2>&1 echo "内网应用诊断数据端口(9092)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-indonesia-internal.aliyuncs.com 9093 >/dev/null 2>&1 echo "内网应用安全数据端口(9093)连通性检查$(check_nc_value $?)" } function ap_northeast_1_2() { timeout 5 nc -z -v arms-dc-jp.aliyuncs.com 8442 >/dev/null 2>&1 echo "公网元数据端口(8442)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-jp.aliyuncs.com 8443 >/dev/null 2>&1 echo "公网统计数据端口(8443)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-jp.aliyuncs.com 8883 >/dev/null 2>&1 echo "公网明细数据端口(8883)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-jp.aliyuncs.com 8848 >/dev/null 2>&1 echo "公网微服务数据端口(8848)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-jp.aliyuncs.com 9092 >/dev/null 2>&1 echo "公网应用诊断数据端口(9092)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-jp.aliyuncs.com 9093 >/dev/null 2>&1 echo "公网应用安全数据端口(9093)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://acm.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "公网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "公网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi timeout 5 nc -z -v arms-dc-jp-internal.aliyuncs.com 8442 >/dev/null 2>&1 echo "内网元数据端口(8442)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-jp-internal.aliyuncs.com 8443 >/dev/null 2>&1 echo "内网统计数据端口(8443)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-jp-internal.aliyuncs.com 8883 >/dev/null 2>&1 echo "内网明细数据端口(8883)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-jp-internal.aliyuncs.com 8848 >/dev/null 2>&1 echo "内网微服务数据端口(8848)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-jp-internal.aliyuncs.com 9092 >/dev/null 2>&1 echo "内网应用诊断数据端口(9092)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-jp-internal.aliyuncs.com 9093 >/dev/null 2>&1 echo "内网应用安全数据端口(9093)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://addr-ap-northeast-1-internal.edas.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "内网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "内网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi } function cn_qingdao_2() { timeout 5 nc -z -v arms-dc-qd.aliyuncs.com 8442 >/dev/null 2>&1 echo "公网元数据端口(8442)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-qd.aliyuncs.com 8443 >/dev/null 2>&1 echo "公网统计数据端口(8443)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-qd.aliyuncs.com 8883 >/dev/null 2>&1 echo "公网明细数据端口(8883)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-qd.aliyuncs.com 8848 >/dev/null 2>&1 echo "公网微服务数据端口(8848)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-qd.aliyuncs.com 9092 >/dev/null 2>&1 echo "公网应用诊断数据端口(9092)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-qd.aliyuncs.com 9093 >/dev/null 2>&1 echo "公网应用安全数据端口(9093)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://acm.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "公网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "公网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi timeout 5 nc -z -v arms-dc-qd-internal.aliyuncs.com 8442 >/dev/null 2>&1 echo "内网元数据端口(8442)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-qd-internal.aliyuncs.com 8443 >/dev/null 2>&1 echo "内网统计数据端口(8443)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-qd-internal.aliyuncs.com 8883 >/dev/null 2>&1 echo "内网明细数据端口(8883)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-qd-internal.aliyuncs.com 8848 >/dev/null 2>&1 echo "内网微服务数据端口(8848)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-qd-internal.aliyuncs.com 9092 >/dev/null 2>&1 echo "内网应用诊断数据端口(9092)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-qd-internal.aliyuncs.com 9093 >/dev/null 2>&1 echo "内网应用安全数据端口(9093)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://addr-qd-internal.edas.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "内网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "内网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi } function ap_southeast_1_2() { timeout 5 nc -z -v arms-dc-sg.aliyuncs.com 8442 >/dev/null 2>&1 echo "公网元数据端口(8442)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-sg.aliyuncs.com 8443 >/dev/null 2>&1 echo "公网统计数据端口(8443)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-sg.aliyuncs.com 8883 >/dev/null 2>&1 echo "公网明细数据端口(8883)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-sg.aliyuncs.com 8848 >/dev/null 2>&1 echo "公网微服务数据端口(8848)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-sg.aliyuncs.com 9092 >/dev/null 2>&1 echo "公网应用诊断数据端口(9092)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-sg.aliyuncs.com 9093 >/dev/null 2>&1 echo "公网应用安全数据端口(9093)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://acm.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "公网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "公网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi timeout 5 nc -z -v arms-dc-sg-internal.aliyuncs.com 8442 >/dev/null 2>&1 echo "内网元数据端口(8442)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-sg-internal.aliyuncs.com 8443 >/dev/null 2>&1 echo "内网统计数据端口(8443)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-sg-internal.aliyuncs.com 8883 >/dev/null 2>&1 echo "内网明细数据端口(8883)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-sg-internal.aliyuncs.com 8848 >/dev/null 2>&1 echo "内网微服务数据端口(8848)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-sg-internal.aliyuncs.com 9092 >/dev/null 2>&1 echo "内网应用诊断数据端口(9092)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-sg-internal.aliyuncs.com 9093 >/dev/null 2>&1 echo "内网应用安全数据端口(9093)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://addr-singapore-internal.edas.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "内网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "内网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi } function cn_shanghai_finance_1_2() { timeout 5 nc -z -v arms-dc-sh-finance.aliyuncs.com 8442 >/dev/null 2>&1 echo "公网元数据端口(8442)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-sh-finance.aliyuncs.com 8443 >/dev/null 2>&1 echo "公网统计数据端口(8443)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-sh-finance.aliyuncs.com 8883 >/dev/null 2>&1 echo "公网明细数据端口(8883)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-sh-finance.aliyuncs.com 8848 >/dev/null 2>&1 echo "公网微服务数据端口(8848)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-sh-finance.aliyuncs.com 9092 >/dev/null 2>&1 echo "公网应用诊断数据端口(9092)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-sh-finance.aliyuncs.com 9093 >/dev/null 2>&1 echo "公网应用安全数据端口(9093)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://acm.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "公网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "公网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi timeout 5 nc -z -v arms-dc-sh-finance-internal.aliyuncs.com 8442 >/dev/null 2>&1 echo "内网元数据端口(8442)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-sh-finance-internal.aliyuncs.com 8443 >/dev/null 2>&1 echo "内网统计数据端口(8443)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-sh-finance-internal.aliyuncs.com 8883 >/dev/null 2>&1 echo "内网明细数据端口(8883)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-sh-finance-internal.aliyuncs.com 8848 >/dev/null 2>&1 echo "内网微服务数据端口(8848)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-sh-finance-internal.aliyuncs.com 9092 >/dev/null 2>&1 echo "内网应用诊断数据端口(9092)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-sh-finance-internal.aliyuncs.com 9093 >/dev/null 2>&1 echo "内网应用安全数据端口(9093)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://addr-cn-shanghai-finance-1-internal.edas.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "内网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "内网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi } function cn_shanghai_2() { timeout 5 nc -z -v arms-dc-sh.aliyuncs.com 8442 >/dev/null 2>&1 echo "公网元数据端口(8442)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-sh.aliyuncs.com 8443 >/dev/null 2>&1 echo "公网统计数据端口(8443)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-sh.aliyuncs.com 8883 >/dev/null 2>&1 echo "公网明细数据端口(8883)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-sh.aliyuncs.com 8848 >/dev/null 2>&1 echo "公网微服务数据端口(8848)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-sh.aliyuncs.com 9092 >/dev/null 2>&1 echo "公网应用诊断数据端口(9092)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-sh.aliyuncs.com 9093 >/dev/null 2>&1 echo "公网应用安全数据端口(9093)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://acm.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "公网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "公网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi timeout 5 nc -z -v arms-dc-sh-internal.aliyuncs.com 8442 >/dev/null 2>&1 echo "内网元数据端口(8442)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-sh-internal.aliyuncs.com 8443 >/dev/null 2>&1 echo "内网统计数据端口(8443)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-sh-internal.aliyuncs.com 8883 >/dev/null 2>&1 echo "内网明细数据端口(8883)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-sh-internal.aliyuncs.com 8848 >/dev/null 2>&1 echo "内网微服务数据端口(8848)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-sh-internal.aliyuncs.com 9092 >/dev/null 2>&1 echo "内网应用诊断数据端口(9092)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-sh-internal.aliyuncs.com 9093 >/dev/null 2>&1 echo "内网应用安全数据端口(9093)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://addr-sh-internal.edas.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "内网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "内网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi } function cn_shenzhen_finance_1_2() { timeout 5 nc -z -v arms-dc-sz-finance.aliyuncs.com 8442 >/dev/null 2>&1 echo "公网元数据端口(8442)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-sz-finance.aliyuncs.com 8443 >/dev/null 2>&1 echo "公网统计数据端口(8443)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-sz-finance.aliyuncs.com 8883 >/dev/null 2>&1 echo "公网明细数据端口(8883)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-sz-finance.aliyuncs.com 8848 >/dev/null 2>&1 echo "公网微服务数据端口(8848)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-sz-finance.aliyuncs.com 9092 >/dev/null 2>&1 echo "公网应用诊断数据端口(9092)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-sz-finance.aliyuncs.com 9093 >/dev/null 2>&1 echo "公网应用安全数据端口(9093)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://acm.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "公网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "公网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi timeout 5 nc -z -v arms-dc-sz-finance-internal.aliyuncs.com 8442 >/dev/null 2>&1 echo "内网元数据端口(8442)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-sz-finance-internal.aliyuncs.com 8443 >/dev/null 2>&1 echo "内网统计数据端口(8443)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-sz-finance-internal.aliyuncs.com 8883 >/dev/null 2>&1 echo "内网明细数据端口(8883)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-sz-finance-internal.aliyuncs.com 8848 >/dev/null 2>&1 echo "内网微服务数据端口(8848)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-sz-finance-internal.aliyuncs.com 9092 >/dev/null 2>&1 echo "内网应用诊断数据端口(9092)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-sz-finance-internal.aliyuncs.com 9093 >/dev/null 2>&1 echo "内网应用安全数据端口(9093)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://addr-sz-internal.jbp.console.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "内网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "内网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi } function cn_shenzhen_2() { timeout 5 nc -z -v arms-dc-sz.aliyuncs.com 8442 >/dev/null 2>&1 echo "公网元数据端口(8442)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-sz.aliyuncs.com 8443 >/dev/null 2>&1 echo "公网统计数据端口(8443)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-sz.aliyuncs.com 8883 >/dev/null 2>&1 echo "公网明细数据端口(8883)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-sz.aliyuncs.com 8848 >/dev/null 2>&1 echo "公网微服务数据端口(8848)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-sz.aliyuncs.com 9092 >/dev/null 2>&1 echo "公网应用诊断数据端口(9092)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-sz.aliyuncs.com 9093 >/dev/null 2>&1 echo "公网应用安全数据端口(9093)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://acm.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "公网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "公网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi timeout 5 nc -z -v arms-dc-sz-internal.aliyuncs.com 8442 >/dev/null 2>&1 echo "内网元数据端口(8442)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-sz-internal.aliyuncs.com 8443 >/dev/null 2>&1 echo "内网统计数据端口(8443)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-sz-internal.aliyuncs.com 8883 >/dev/null 2>&1 echo "内网明细数据端口(8883)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-sz-internal.aliyuncs.com 8848 >/dev/null 2>&1 echo "内网微服务数据端口(8848)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-sz-internal.aliyuncs.com 9092 >/dev/null 2>&1 echo "内网应用诊断数据端口(9092)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-sz-internal.aliyuncs.com 9093 >/dev/null 2>&1 echo "内网应用安全数据端口(9093)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://addr-sz-internal.edas.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "内网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "内网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi } function us_west_1_2() { timeout 5 nc -z -v arms-dc-usw.aliyuncs.com 8442 >/dev/null 2>&1 echo "公网元数据端口(8442)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-usw.aliyuncs.com 8443 >/dev/null 2>&1 echo "公网统计数据端口(8443)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-usw.aliyuncs.com 8883 >/dev/null 2>&1 echo "公网明细数据端口(8883)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-usw.aliyuncs.com 8848 >/dev/null 2>&1 echo "公网微服务数据端口(8848)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-usw.aliyuncs.com 9092 >/dev/null 2>&1 echo "公网应用诊断数据端口(9092)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-usw.aliyuncs.com 9093 >/dev/null 2>&1 echo "公网应用安全数据端口(9093)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://acm.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "公网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "公网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi timeout 5 nc -z -v dc-us-west-1-internal.arms.aliyuncs.com 8442 >/dev/null 2>&1 echo "内网元数据端口(8442)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-us-west-1-internal.arms.aliyuncs.com 8443 >/dev/null 2>&1 echo "内网统计数据端口(8443)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-us-west-1-internal.arms.aliyuncs.com 8883 >/dev/null 2>&1 echo "内网明细数据端口(8883)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-us-west-1-internal.arms.aliyuncs.com 8848 >/dev/null 2>&1 echo "内网微服务数据端口(8848)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-us-west-1-internal.arms.aliyuncs.com 9092 >/dev/null 2>&1 echo "内网应用诊断数据端口(9092)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v dc-us-west-1-internal.arms.aliyuncs.com 9093 >/dev/null 2>&1 echo "内网应用安全数据端口(9093)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://arms-dc-usw.aliyuncs.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "内网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "内网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi } function cn_zhangjiakou_2() { timeout 5 nc -z -v arms-dc-zb.aliyuncs.com 8442 >/dev/null 2>&1 echo "公网元数据端口(8442)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-zb.aliyuncs.com 8443 >/dev/null 2>&1 echo "公网统计数据端口(8443)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-zb.aliyuncs.com 8883 >/dev/null 2>&1 echo "公网明细数据端口(8883)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-zb.aliyuncs.com 8848 >/dev/null 2>&1 echo "公网微服务数据端口(8848)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-zb.aliyuncs.com 9092 >/dev/null 2>&1 echo "公网应用诊断数据端口(9092)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-zb.aliyuncs.com 9093 >/dev/null 2>&1 echo "公网应用安全数据端口(9093)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://acm.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "公网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "公网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi timeout 5 nc -z -v arms-dc-zb-internal.aliyuncs.com 8442 >/dev/null 2>&1 echo "内网元数据端口(8442)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-zb-internal.aliyuncs.com 8443 >/dev/null 2>&1 echo "内网统计数据端口(8443)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-zb-internal.aliyuncs.com 8883 >/dev/null 2>&1 echo "内网明细数据端口(8883)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-zb-internal.aliyuncs.com 8848 >/dev/null 2>&1 echo "内网微服务数据端口(8848)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-zb-internal.aliyuncs.com 9092 >/dev/null 2>&1 echo "内网应用诊断数据端口(9092)连通性检查$(check_nc_value $?)" timeout 5 nc -z -v arms-dc-zb-internal.aliyuncs.com 9093 >/dev/null 2>&1 echo "内网应用安全数据端口(9093)连通性检查$(check_nc_value $?)" nacos_brokers=$(curl -s -f http://addr-cn-zhangjiakou-internal.edas.aliyun.com:8080/diamond-server/diamond -m 5 || echo "") if [ -z "$nacos_brokers" ]; then echo "内网ACM端口(8080)检查失败" else first_broker=$(echo "$nacos_brokers" | head -n 1) echo "内网ACM端口(8080)检查$(check_http_value $(curl -o /dev/null -s -w "%{http_code}" "http://${first_broker}:8080/diamond-server/config.co?dataId=com.ali.art.logicregion.flow.control.icbu&group=art-control-service" -m 5))" fi } echo "ARMS网络连通性检查开始!" # 检查前置条件curl if command -v curl > /dev/null; then echo "curl is installed." else echo "curl is not installed, please install curl https://curl.se/" exit 1 fi if command -v nc > /dev/null; then echo "nc is installed." else echo "nc is not installed, please install nc tool https://netcat.sourceforge.net/" exit 1 fi # 判断是否是3.x探针,默认是 is_ver_3=true # pilot版本小于3.1.0 if [ -f "/home/admin/.opt/ArmsAgent/version" ]; then version=$(cat /home/admin/.opt/ArmsAgent/version) echo "Agent version is ${version}" if [ "$version" \> "3.0.0" ]; then is_ver_3=true else is_ver_3=false fi fi # pilot版本大于3.1.0 if [ -f "/home/admin/.opt/AliyunJavaAgent/version" ]; then version=$(cat /home/admin/.opt/AliyunJavaAgent/version) echo "Agent version is ${version}" if [ "$version" \> "3.0.0" ]; then is_ver_3=true else is_ver_3=false fi fi region=$(echo $1 | tr '-' '_') func_name="cn_hangzhou" if [[ -n "$region" ]]; then func_name=$region else TOKEN=`curl -s -X PUT "http://100.100.100.200/latest/api/token" -H "X-aliyun-ecs-metadata-token-ttl-seconds:300"` func_name=`curl -s -H "X-aliyun-ecs-metadata-token: $TOKEN" http://100.100.100.200/latest/meta-data/region-id)` func_name=$(echo $func_name | tr '-' '_') fi if [[ $is_ver_3 = "true" ]]; then func_name="${func_name}_3" else func_name="${func_name}_2" fi $func_name
执行以下命令运行脚本。
其中
${region_id}
是您使用的ARMS服务所在地域ID,例如cn-hangzhou,您可以在开服地域中获取。如果您不指定region_id
参数,脚本将自动计算出容器或ECS机器所在VPC的Region ID。./check_network.sh ${region_id}
运行效果
脚本会打印出应用与ARMS服务端各功能端口之间的网络连通性:
3.x及以上版本探针
2.x版本探针
相关文档
更多网络相关的问题,请参见网络相关。