提交 fe8b83b8 authored 作者: 陈泽健's avatar 陈泽健

调整服务状态监测读取文本文件函数fetch_and_parse_check_txt的重复赋值问题。

上级 cc770a98
...@@ -751,10 +751,11 @@ def fetch_and_parse_check_txt(url, save_path, extract_info): ...@@ -751,10 +751,11 @@ def fetch_and_parse_check_txt(url, save_path, extract_info):
parsed_info = {} parsed_info = {}
for line in content.split('\n'): for line in content.split('\n'):
for info in extract_info: for info in extract_info:
if info in line: if info in line and info not in parsed_info:
service_name = info service_name = info
service_status = line.split(info, 1)[1].strip() service_status = line.split(info, 1)[1].strip()
parsed_info[service_name] = service_status parsed_info[service_name] = service_status
break # 找到后跳出内层循环,继续处理下一行
return parsed_info return parsed_info
......
...@@ -136,3 +136,5 @@ ...@@ -136,3 +136,5 @@
- 处理各模块间的执行流程优化。 - 处理各模块间的执行流程优化。
- 补充会议审批相关功能之间的流程自动化处理,会议审批模块已补充完成。给所有功能模块打上标签,后续通过运行标签的形式调试预定系统整体功能测试流程。 - 补充会议审批相关功能之间的流程自动化处理,会议审批模块已补充完成。给所有功能模块打上标签,后续通过运行标签的形式调试预定系统整体功能测试流程。
- 处理优化展厅巡检相关流程。 - 处理优化展厅巡检相关流程。
28. 2024-12-26
- 调整服务状态监测读取文本文件函数fetch_and_parse_check_txt的重复赋值问题。
\ No newline at end of file
...@@ -26,6 +26,7 @@ class Server_monitoring_0001: ...@@ -26,6 +26,7 @@ class Server_monitoring_0001:
for key, value in info.items(): for key, value in info.items():
STEP(++i, f"服务器{key} 服务状态巡检") STEP(++i, f"服务器{key} 服务状态巡检")
INFO(f"监测到{key} 服务的状态:{value}") INFO(f"监测到{key} 服务的状态:{value}")
CHECK_POINT(f"{key}服务的状态是否正常", value == "服务正常") CHECK_POINT(f"{key} 服务状态是否正常", value == '服务正常')
else: else:
INFO("无法获取或解析文件内容") INFO("无法获取或解析文件内容")
\ No newline at end of file
执行 checkFirewalld:
防火墙状态:未启动
=============================================================================================
执行 checkService:
[m]ysql 服务正常
[r]edis 服务正常
[f]dfs_storaged 服务正常
[f]dfs_tracker 服务正常
[e]mqx 服务正常
ubains-meeting-api-1.0-SNAPSHOT.jar 服务正常
[u]bains-meeting-inner-api-1.0-SNAPSHOT.jar 服务正常
[u]wsgi 服务正常
=============================================================================================
执行 checkDockerPort:
upython :::8000->8000/tcp,
upython :::8002->8002/tcp,
upython :::8081->8081/tcp,
upython :::8443->8443/tcp,
upython :::9009->9009/tcp
uplayer :::18000->8000/tcp,
uplayer :::18002->8002/tcp,
uplayer :::18081->8081/tcp,
uplayer :::18082->8082/tcp
umysql2 :::8306->3306/tcp
ujava2 :::443->443/tcp,
ujava2 :::554->554/tcp,
ujava2 :::1935->1935/tcp,
ujava2 :::2333-2334->2333-2334/tcp,
ujava2 :::8079-8080->8079-8080/tcp,
ujava2 :::8085-8088->8085-8088/tcp,
ujava2 :::8889->8889/tcp,
ujava2 :::8996-8999->8996-8999/tcp,
ujava2 :::10000->10000/tcp,
uredis :::6379->6379/tcp
uemqx :::1883->1883/tcp,
uemqx :::8083-8084->8083-8084/tcp,
uemqx :::8883->8883/tcp,
uemqx :::18083->18083/tcp,
=============================================================================================
执行 serverDataRecorder:
2024-12-20 09:59:03 [INFO] docker服务正常
2024-12-20 09:59:03 [INFO] [m]ysql 服务正常
2024-12-20 09:59:03 [INFO] [r]edis 服务正常
2024-12-20 09:59:03 [INFO] [f]dfs_storaged 服务正常
2024-12-20 09:59:03 [INFO] [f]dfs_tracker 服务正常
2024-12-20 09:59:03 [INFO] [e]pmd 服务正常
2024-12-20 09:59:03 [INFO] [u]wsgi 服务正常
2024-12-20 09:59:03 [INFO] ubains-meeting-api-1.0-SNAPSHOT.jar 服务正常
2024-12-20 09:59:03 [INFO] [u]bains-meeting-inner-api-1.0-SNAPSHOT.jar 服务正常
=============================================================================================
执行 network_check:
Called network_check with parameters: network_check route
网络流量和连接信息 - 2024-12-20 09:59:03
路由配置表信息:
default via 192.168.5.1 dev enp4s1 proto static metric 100
172.17.0.0/16 dev docker0 proto kernel scope link src 172.17.0.1
192.168.5.0/24 dev enp4s1 proto kernel scope link src 192.168.5.218 metric 100
=============================================================================================
执行 network_check:
Called network_check with parameters: network_check interface
网络流量和连接信息 - 2024-12-20 09:59:03
网络接口状态、MAC 和 IPv4 地址:
RTNETLINK answers: No such device
Cannot send link get request: No such device
lo:
状态: UNKNOWN
MAC地址:
IPv4地址: 127.0.0.1/8
RTNETLINK answers: No such device
Cannot send link get request: No such device
enp4s1:
状态: UP
MAC地址:
IPv4地址: 192.168.5.218/24
RTNETLINK answers: No such device
Cannot send link get request: No such device
docker0:
状态: UP
MAC地址:
IPv4地址: 172.17.0.1/16
=============================================================================================
执行 network_check:
Called network_check with parameters: network_check connections
网络流量和连接信息 - 2024-12-20 09:59:03
网络连接和端口统计:
Netid State Local
tcp LISTEN 0.0.0.0:8085
tcp LISTEN 0.0.0.0:8086
tcp LISTEN 0.0.0.0:22
tcp LISTEN 0.0.0.0:8087
tcp LISTEN 0.0.0.0:8088
tcp LISTEN 0.0.0.0:23000
tcp LISTEN 0.0.0.0:8888
tcp LISTEN 0.0.0.0:8889
tcp LISTEN 0.0.0.0:8443
tcp LISTEN 0.0.0.0:443
tcp LISTEN 0.0.0.0:1883
tcp LISTEN 0.0.0.0:2333
tcp LISTEN 0.0.0.0:2334
tcp LISTEN 0.0.0.0:8000
tcp LISTEN 0.0.0.0:18081
tcp LISTEN 0.0.0.0:8002
tcp LISTEN 0.0.0.0:18082
tcp LISTEN 0.0.0.0:18083
tcp LISTEN 0.0.0.0:8996
tcp LISTEN 0.0.0.0:8997
tcp LISTEN 0.0.0.0:8998
tcp LISTEN 0.0.0.0:8999
tcp LISTEN 0.0.0.0:554
tcp LISTEN 0.0.0.0:22122
tcp LISTEN 0.0.0.0:6379
tcp LISTEN 0.0.0.0:1935
tcp LISTEN 0.0.0.0:8079
tcp LISTEN 0.0.0.0:111
tcp LISTEN 0.0.0.0:80
tcp LISTEN 0.0.0.0:8080
tcp LISTEN 0.0.0.0:10000
tcp LISTEN 0.0.0.0:18000
tcp LISTEN 0.0.0.0:8081
tcp LISTEN 0.0.0.0:9009
tcp LISTEN 0.0.0.0:8306
tcp LISTEN 0.0.0.0:18002
tcp LISTEN 0.0.0.0:8083
tcp LISTEN 0.0.0.0:8883
tcp LISTEN 0.0.0.0:8084
tcp LISTEN *:4443
tcp LISTEN *:8866
tcp LISTEN *:9090
tcp LISTEN *:8040
tcp LISTEN *:12371
tcp LISTEN *:11443
=============================================================================================
执行 network_check:
Called network_check with parameters: network_check firewall
网络流量和连接信息 - 2024-12-20 09:59:03
防火墙规则:
Chain INPUT (policy ACCEPT 1878K packets, 952M bytes)
pkts bytes target prot opt in out source destination
Chain FORWARD (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
22M 19G DOCKER-USER all -- * * 0.0.0.0/0 0.0.0.0/0
22M 19G DOCKER-ISOLATION-STAGE-1 all -- * * 0.0.0.0/0 0.0.0.0/0
11M 5221M ACCEPT all -- * docker0 0.0.0.0/0 0.0.0.0/0 ctstate RELATED,ESTABLISHED
137K 7342K DOCKER all -- * docker0 0.0.0.0/0 0.0.0.0/0
11M 14G ACCEPT all -- docker0 !docker0 0.0.0.0/0 0.0.0.0/0
0 0 ACCEPT all -- docker0 docker0 0.0.0.0/0 0.0.0.0/0
Chain OUTPUT (policy ACCEPT 1834K packets, 947M bytes)
pkts bytes target prot opt in out source destination
Chain DOCKER (1 references)
pkts bytes target prot opt in out source destination
85 4420 ACCEPT tcp -- !docker0 docker0 0.0.0.0/0 172.17.0.4 tcp dpt:6379
82 4264 ACCEPT tcp -- !docker0 docker0 0.0.0.0/0 172.17.0.6 tcp dpt:8082
0 0 ACCEPT tcp -- !docker0 docker0 0.0.0.0/0 172.17.0.6 tcp dpt:8081
0 0 ACCEPT tcp -- !docker0 docker0 0.0.0.0/0 172.17.0.6 tcp dpt:8002
0 0 ACCEPT tcp -- !docker0 docker0 0.0.0.0/0 172.17.0.6 tcp dpt:8000
0 0 ACCEPT tcp -- !docker0 docker0 0.0.0.0/0 172.17.0.2 tcp dpt:18083
0 0 ACCEPT tcp -- !docker0 docker0 0.0.0.0/0 172.17.0.2 tcp dpt:8883
0 0 ACCEPT tcp -- !docker0 docker0 0.0.0.0/0 172.17.0.2 tcp dpt:8084
0 0 ACCEPT tcp -- !docker0 docker0 0.0.0.0/0 172.17.0.2 tcp dpt:8083
105 5740 ACCEPT tcp -- !docker0 docker0 0.0.0.0/0 172.17.0.2 tcp dpt:1883
0 0 ACCEPT tcp -- !docker0 docker0 0.0.0.0/0 172.17.0.5 tcp dpt:10000
0 0 ACCEPT tcp -- !docker0 docker0 0.0.0.0/0 172.17.0.5 tcp dpt:8999
0 0 ACCEPT tcp -- !docker0 docker0 0.0.0.0/0 172.17.0.5 tcp dpt:8998
0 0 ACCEPT tcp -- !docker0 docker0 0.0.0.0/0 172.17.0.5 tcp dpt:8997
85 5100 ACCEPT tcp -- !docker0 docker0 0.0.0.0/0 172.17.0.5 tcp dpt:8996
0 0 ACCEPT tcp -- !docker0 docker0 0.0.0.0/0 172.17.0.5 tcp dpt:8889
0 0 ACCEPT tcp -- !docker0 docker0 0.0.0.0/0 172.17.0.5 tcp dpt:8088
0 0 ACCEPT tcp -- !docker0 docker0 0.0.0.0/0 172.17.0.5 tcp dpt:8087
0 0 ACCEPT tcp -- !docker0 docker0 0.0.0.0/0 172.17.0.5 tcp dpt:8086
0 0 ACCEPT tcp -- !docker0 docker0 0.0.0.0/0 172.17.0.5 tcp dpt:8085
7 364 ACCEPT tcp -- !docker0 docker0 0.0.0.0/0 172.17.0.5 tcp dpt:8080
0 0 ACCEPT tcp -- !docker0 docker0 0.0.0.0/0 172.17.0.5 tcp dpt:8079
0 0 ACCEPT tcp -- !docker0 docker0 0.0.0.0/0 172.17.0.5 tcp dpt:2334
0 0 ACCEPT tcp -- !docker0 docker0 0.0.0.0/0 172.17.0.5 tcp dpt:2333
0 0 ACCEPT tcp -- !docker0 docker0 0.0.0.0/0 172.17.0.5 tcp dpt:1935
0 0 ACCEPT tcp -- !docker0 docker0 0.0.0.0/0 172.17.0.5 tcp dpt:554
584 37534 ACCEPT tcp -- !docker0 docker0 0.0.0.0/0 172.17.0.5 tcp dpt:443
0 0 ACCEPT tcp -- !docker0 docker0 0.0.0.0/0 172.17.0.7 tcp dpt:9009
1593 82836 ACCEPT tcp -- !docker0 docker0 0.0.0.0/0 172.17.0.7 tcp dpt:8443
0 0 ACCEPT tcp -- !docker0 docker0 0.0.0.0/0 172.17.0.7 tcp dpt:8081
0 0 ACCEPT tcp -- !docker0 docker0 0.0.0.0/0 172.17.0.7 tcp dpt:8002
2036 106K ACCEPT tcp -- !docker0 docker0 0.0.0.0/0 172.17.0.7 tcp dpt:8000
0 0 ACCEPT tcp -- !docker0 docker0 0.0.0.0/0 172.17.0.3 tcp dpt:3306
Chain DOCKER-ISOLATION-STAGE-1 (1 references)
pkts bytes target prot opt in out source destination
11M 14G DOCKER-ISOLATION-STAGE-2 all -- docker0 !docker0 0.0.0.0/0 0.0.0.0/0
22M 19G RETURN all -- * * 0.0.0.0/0 0.0.0.0/0
Chain DOCKER-ISOLATION-STAGE-2 (1 references)
pkts bytes target prot opt in out source destination
0 0 DROP all -- * docker0 0.0.0.0/0 0.0.0.0/0
11M 14G RETURN all -- * * 0.0.0.0/0 0.0.0.0/0
Chain DOCKER-USER (1 references)
pkts bytes target prot opt in out source destination
22M 19G RETURN all -- * * 0.0.0.0/0 0.0.0.0/0
=============================================================================================
执行 network_check:
Called network_check with parameters: network_check docker
网络流量和连接信息 - 2024-12-20 09:59:03
docker网络规则与MAC地址:
[
{
"Name": "bridge",
"Id": "8a099c24b4ce2392ffc682dd9ac9335abb6b70662798a35743fbcc3fb7d79982",
"Created": "2024-11-04T18:00:09.914749565+08:00",
"Scope": "local",
"Driver": "bridge",
"EnableIPv6": false,
"IPAM": {
"Driver": "default",
"Options": null,
"Config": [
{
"Subnet": "172.17.0.0/16",
"Gateway": "172.17.0.1"
}
]
},
"Internal": false,
"Attachable": false,
"Ingress": false,
"ConfigFrom": {
"Network": ""
},
"ConfigOnly": false,
"Containers": {
"0349f1053421e48b415b0f4a6758df194a47616a309481fdfdae664c5e7bf1f3": {
"Name": "upython",
"EndpointID": "ea30a5f6b1bf305a3c10ac3a3d6c44503bb5c840c3aa1dbf49f30dc438125847",
"MacAddress": "02:42:ac:11:00:06",
"IPv4Address": "172.17.0.7/16",
"IPv6Address": ""
},
"23fbc1ed599f77c7562756d38d4e655d31a96a9a47978888629c50e556cc60ee": {
"Name": "umysql2",
"EndpointID": "4bb52b2d978dc90c57e0b5a89c623f6df8e4e844ac4bea45d385a9005386e72f",
"MacAddress": "02:42:ac:11:00:05",
"IPv4Address": "172.17.0.3/16",
"IPv6Address": ""
},
"8f87e78e4e9b419744799f32be396ebd55d0da21a7845d6854f3152cdd7e70da": {
"Name": "uemqx",
"EndpointID": "41cd86845237b7c2117b19b3cc28c9660fc5be6086e33562b2ce0c3d5de95793",
"MacAddress": "02:42:ac:12:00:06",
"IPv4Address": "172.17.0.2/16",
"IPv6Address": ""
},
"9672005cfb3ceb4b26f8b58c317e2068e4f8b5508d7980873de3e6c1d71eda58": {
"Name": "uplayer",
"EndpointID": "43f4647ffd479f2460af5e63780695d1646e30a4b171aaab4056a29c931345ee",
"MacAddress": "02:42:ac:11:00:06",
"IPv4Address": "172.17.0.6/16",
"IPv6Address": ""
},
"b67149b24bb5d2ad2bc0c74dde784958c98ae1f10b5c3dee4eadd00787951b50": {
"Name": "uredis",
"EndpointID": "c978bb8d32e421565522bd85d16834c774aa49409588cb58df9aaba91d70fd3a",
"MacAddress": "02:42:ac:11:00:04",
"IPv4Address": "172.17.0.4/16",
"IPv6Address": ""
},
"e960786c759c953ab039a7dd72c72e789f7dc479cd42fed0ba9e5b5e1016d0bd": {
"Name": "ujava2",
"EndpointID": "5a4d8667c5fe60eeebe2966731029c0d77e998cceba972c353e38884613dbde5",
"MacAddress": "02:42:ac:11:00:02",
"IPv4Address": "172.17.0.5/16",
"IPv6Address": ""
}
},
"Options": {
"com.docker.network.bridge.default_bridge": "true",
"com.docker.network.bridge.enable_icc": "true",
"com.docker.network.bridge.enable_ip_masquerade": "true",
"com.docker.network.bridge.host_binding_ipv4": "0.0.0.0",
"com.docker.network.bridge.name": "docker0",
"com.docker.network.driver.mtu": "1500"
},
"Labels": {}
}
]
=============================================================================================
执行 analyzePosition:
服务器状态分析 - getMysqlStatus
参数2: Ubains@123
Error response from daemon: Container 09e2052db0540c47415193204c94fa2c71c0676375476b349de862936bbe1901 is not running
执行SQL语句时发生错误:
创建表失败
Error response from daemon: Container 09e2052db0540c47415193204c94fa2c71c0676375476b349de862936bbe1901 is not running
执行SQL语句时发生错误:
插入记录失败
Error response from daemon: Container 09e2052db0540c47415193204c94fa2c71c0676375476b349de862936bbe1901 is not running
执行SQL语句时发生错误:
查询记录失败
Error response from daemon: Container 09e2052db0540c47415193204c94fa2c71c0676375476b349de862936bbe1901 is not running
执行SQL语句时发生错误:
更新记录失败
Error response from daemon: Container 09e2052db0540c47415193204c94fa2c71c0676375476b349de862936bbe1901 is not running
执行SQL语句时发生错误:
删除记录失败
=============================================================================================
执行 analyzePosition:
服务器状态分析 - getRedisStatus
参数2: Ubains@123
Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe.
response 为: PONG
Redis 服务器连接成功
Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe.
set_response 为: OK
Redis 服务器设置成功
Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe.
get_response 为: test_value
Redis 服务器获取成功
Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe.
del_response 为: 1
Redis 服务器删除成功
=============================================================================================
执行 analyzePosition:
服务器状态分析 - getFastdfsStatus
参数2: analyzePosition getFastdfsStatus
fastdfs文件上传成功
=============================================================================================
执行 analyzePosition:
服务器状态分析 - getNginxStatus
参数2: analyzePosition getNginxStatus
Nginx配置文件正确
HTTP 响应代码: 200
HTTP请求正常
=============================================================================================
执行 checkFirewalld:
防火墙状态:未启动
=============================================================================================
执行 checkService:
[m]ysql 服务正常
[r]edis 服务正常
[f]dfs_storaged 服务正常
[f]dfs_tracker 服务正常
[e]mqx 服务正常
ubains-meeting-api-1.0-SNAPSHOT.jar 服务正常
[u]bains-meeting-inner-api-1.0-SNAPSHOT.jar 服务正常
[u]wsgi 服务正常
=============================================================================================
执行 checkDockerPort:
upython :::8000->8000/tcp,
upython :::8002->8002/tcp,
upython :::8081->8081/tcp,
upython :::8443->8443/tcp,
upython :::9009->9009/tcp
uplayer :::18000->8000/tcp,
uplayer :::18002->8002/tcp,
uplayer :::18081->8081/tcp,
uplayer :::18082->8082/tcp
umysql2 :::8306->3306/tcp
ujava2 :::443->443/tcp,
ujava2 :::554->554/tcp,
ujava2 :::1935->1935/tcp,
ujava2 :::2333-2334->2333-2334/tcp,
ujava2 :::8079-8080->8079-8080/tcp,
ujava2 :::8085-8088->8085-8088/tcp,
ujava2 :::8889->8889/tcp,
ujava2 :::8996-8999->8996-8999/tcp,
ujava2 :::10000->10000/tcp,
uredis :::6379->6379/tcp
uemqx :::1883->1883/tcp,
uemqx :::8083-8084->8083-8084/tcp,
uemqx :::8883->8883/tcp,
uemqx :::18083->18083/tcp,
=============================================================================================
执行 serverDataRecorder:
2024-12-20 09:59:03 [INFO] docker服务正常
2024-12-20 09:59:03 [INFO] [m]ysql 服务正常
2024-12-20 09:59:03 [INFO] [r]edis 服务正常
2024-12-20 09:59:03 [INFO] [f]dfs_storaged 服务正常
2024-12-20 09:59:03 [INFO] [f]dfs_tracker 服务正常
2024-12-20 09:59:03 [INFO] [e]pmd 服务正常
2024-12-20 09:59:03 [INFO] [u]wsgi 服务正常
2024-12-20 09:59:03 [INFO] ubains-meeting-api-1.0-SNAPSHOT.jar 服务正常
2024-12-20 09:59:03 [INFO] [u]bains-meeting-inner-api-1.0-SNAPSHOT.jar 服务正常
=============================================================================================
执行 network_check:
Called network_check with parameters: network_check route
网络流量和连接信息 - 2024-12-20 09:59:03
路由配置表信息:
default via 192.168.5.1 dev enp4s1 proto static metric 100
172.17.0.0/16 dev docker0 proto kernel scope link src 172.17.0.1
192.168.5.0/24 dev enp4s1 proto kernel scope link src 192.168.5.218 metric 100
=============================================================================================
执行 network_check:
Called network_check with parameters: network_check interface
网络流量和连接信息 - 2024-12-20 09:59:03
网络接口状态、MAC 和 IPv4 地址:
RTNETLINK answers: No such device
Cannot send link get request: No such device
lo:
状态: UNKNOWN
MAC地址:
IPv4地址: 127.0.0.1/8
RTNETLINK answers: No such device
Cannot send link get request: No such device
enp4s1:
状态: UP
MAC地址:
IPv4地址: 192.168.5.218/24
RTNETLINK answers: No such device
Cannot send link get request: No such device
docker0:
状态: UP
MAC地址:
IPv4地址: 172.17.0.1/16
=============================================================================================
执行 network_check:
Called network_check with parameters: network_check connections
网络流量和连接信息 - 2024-12-20 09:59:03
网络连接和端口统计:
Netid State Local
tcp LISTEN 0.0.0.0:8085
tcp LISTEN 0.0.0.0:8086
tcp LISTEN 0.0.0.0:22
tcp LISTEN 0.0.0.0:8087
tcp LISTEN 0.0.0.0:8088
tcp LISTEN 0.0.0.0:23000
tcp LISTEN 0.0.0.0:8888
tcp LISTEN 0.0.0.0:8889
tcp LISTEN 0.0.0.0:8443
tcp LISTEN 0.0.0.0:443
tcp LISTEN 0.0.0.0:1883
tcp LISTEN 0.0.0.0:2333
tcp LISTEN 0.0.0.0:2334
tcp LISTEN 0.0.0.0:8000
tcp LISTEN 0.0.0.0:18081
tcp LISTEN 0.0.0.0:8002
tcp LISTEN 0.0.0.0:18082
tcp LISTEN 0.0.0.0:18083
tcp LISTEN 0.0.0.0:8996
tcp LISTEN 0.0.0.0:8997
tcp LISTEN 0.0.0.0:8998
tcp LISTEN 0.0.0.0:8999
tcp LISTEN 0.0.0.0:554
tcp LISTEN 0.0.0.0:22122
tcp LISTEN 0.0.0.0:6379
tcp LISTEN 0.0.0.0:1935
tcp LISTEN 0.0.0.0:8079
tcp LISTEN 0.0.0.0:111
tcp LISTEN 0.0.0.0:80
tcp LISTEN 0.0.0.0:8080
tcp LISTEN 0.0.0.0:10000
tcp LISTEN 0.0.0.0:18000
tcp LISTEN 0.0.0.0:8081
tcp LISTEN 0.0.0.0:9009
tcp LISTEN 0.0.0.0:8306
tcp LISTEN 0.0.0.0:18002
tcp LISTEN 0.0.0.0:8083
tcp LISTEN 0.0.0.0:8883
tcp LISTEN 0.0.0.0:8084
tcp LISTEN *:4443
tcp LISTEN *:8866
tcp LISTEN *:9090
tcp LISTEN *:8040
tcp LISTEN *:12371
tcp LISTEN *:11443
=============================================================================================
执行 network_check:
Called network_check with parameters: network_check firewall
网络流量和连接信息 - 2024-12-20 09:59:03
防火墙规则:
Chain INPUT (policy ACCEPT 1878K packets, 952M bytes)
pkts bytes target prot opt in out source destination
Chain FORWARD (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
22M 19G DOCKER-USER all -- * * 0.0.0.0/0 0.0.0.0/0
22M 19G DOCKER-ISOLATION-STAGE-1 all -- * * 0.0.0.0/0 0.0.0.0/0
11M 5221M ACCEPT all -- * docker0 0.0.0.0/0 0.0.0.0/0 ctstate RELATED,ESTABLISHED
137K 7342K DOCKER all -- * docker0 0.0.0.0/0 0.0.0.0/0
11M 14G ACCEPT all -- docker0 !docker0 0.0.0.0/0 0.0.0.0/0
0 0 ACCEPT all -- docker0 docker0 0.0.0.0/0 0.0.0.0/0
Chain OUTPUT (policy ACCEPT 1834K packets, 947M bytes)
pkts bytes target prot opt in out source destination
Chain DOCKER (1 references)
pkts bytes target prot opt in out source destination
85 4420 ACCEPT tcp -- !docker0 docker0 0.0.0.0/0 172.17.0.4 tcp dpt:6379
82 4264 ACCEPT tcp -- !docker0 docker0 0.0.0.0/0 172.17.0.6 tcp dpt:8082
0 0 ACCEPT tcp -- !docker0 docker0 0.0.0.0/0 172.17.0.6 tcp dpt:8081
0 0 ACCEPT tcp -- !docker0 docker0 0.0.0.0/0 172.17.0.6 tcp dpt:8002
0 0 ACCEPT tcp -- !docker0 docker0 0.0.0.0/0 172.17.0.6 tcp dpt:8000
0 0 ACCEPT tcp -- !docker0 docker0 0.0.0.0/0 172.17.0.2 tcp dpt:18083
0 0 ACCEPT tcp -- !docker0 docker0 0.0.0.0/0 172.17.0.2 tcp dpt:8883
0 0 ACCEPT tcp -- !docker0 docker0 0.0.0.0/0 172.17.0.2 tcp dpt:8084
0 0 ACCEPT tcp -- !docker0 docker0 0.0.0.0/0 172.17.0.2 tcp dpt:8083
105 5740 ACCEPT tcp -- !docker0 docker0 0.0.0.0/0 172.17.0.2 tcp dpt:1883
0 0 ACCEPT tcp -- !docker0 docker0 0.0.0.0/0 172.17.0.5 tcp dpt:10000
0 0 ACCEPT tcp -- !docker0 docker0 0.0.0.0/0 172.17.0.5 tcp dpt:8999
0 0 ACCEPT tcp -- !docker0 docker0 0.0.0.0/0 172.17.0.5 tcp dpt:8998
0 0 ACCEPT tcp -- !docker0 docker0 0.0.0.0/0 172.17.0.5 tcp dpt:8997
85 5100 ACCEPT tcp -- !docker0 docker0 0.0.0.0/0 172.17.0.5 tcp dpt:8996
0 0 ACCEPT tcp -- !docker0 docker0 0.0.0.0/0 172.17.0.5 tcp dpt:8889
0 0 ACCEPT tcp -- !docker0 docker0 0.0.0.0/0 172.17.0.5 tcp dpt:8088
0 0 ACCEPT tcp -- !docker0 docker0 0.0.0.0/0 172.17.0.5 tcp dpt:8087
0 0 ACCEPT tcp -- !docker0 docker0 0.0.0.0/0 172.17.0.5 tcp dpt:8086
0 0 ACCEPT tcp -- !docker0 docker0 0.0.0.0/0 172.17.0.5 tcp dpt:8085
7 364 ACCEPT tcp -- !docker0 docker0 0.0.0.0/0 172.17.0.5 tcp dpt:8080
0 0 ACCEPT tcp -- !docker0 docker0 0.0.0.0/0 172.17.0.5 tcp dpt:8079
0 0 ACCEPT tcp -- !docker0 docker0 0.0.0.0/0 172.17.0.5 tcp dpt:2334
0 0 ACCEPT tcp -- !docker0 docker0 0.0.0.0/0 172.17.0.5 tcp dpt:2333
0 0 ACCEPT tcp -- !docker0 docker0 0.0.0.0/0 172.17.0.5 tcp dpt:1935
0 0 ACCEPT tcp -- !docker0 docker0 0.0.0.0/0 172.17.0.5 tcp dpt:554
584 37534 ACCEPT tcp -- !docker0 docker0 0.0.0.0/0 172.17.0.5 tcp dpt:443
0 0 ACCEPT tcp -- !docker0 docker0 0.0.0.0/0 172.17.0.7 tcp dpt:9009
1593 82836 ACCEPT tcp -- !docker0 docker0 0.0.0.0/0 172.17.0.7 tcp dpt:8443
0 0 ACCEPT tcp -- !docker0 docker0 0.0.0.0/0 172.17.0.7 tcp dpt:8081
0 0 ACCEPT tcp -- !docker0 docker0 0.0.0.0/0 172.17.0.7 tcp dpt:8002
2036 106K ACCEPT tcp -- !docker0 docker0 0.0.0.0/0 172.17.0.7 tcp dpt:8000
0 0 ACCEPT tcp -- !docker0 docker0 0.0.0.0/0 172.17.0.3 tcp dpt:3306
Chain DOCKER-ISOLATION-STAGE-1 (1 references)
pkts bytes target prot opt in out source destination
11M 14G DOCKER-ISOLATION-STAGE-2 all -- docker0 !docker0 0.0.0.0/0 0.0.0.0/0
22M 19G RETURN all -- * * 0.0.0.0/0 0.0.0.0/0
Chain DOCKER-ISOLATION-STAGE-2 (1 references)
pkts bytes target prot opt in out source destination
0 0 DROP all -- * docker0 0.0.0.0/0 0.0.0.0/0
11M 14G RETURN all -- * * 0.0.0.0/0 0.0.0.0/0
Chain DOCKER-USER (1 references)
pkts bytes target prot opt in out source destination
22M 19G RETURN all -- * * 0.0.0.0/0 0.0.0.0/0
=============================================================================================
执行 network_check:
Called network_check with parameters: network_check docker
网络流量和连接信息 - 2024-12-20 09:59:03
docker网络规则与MAC地址:
[
{
"Name": "bridge",
"Id": "8a099c24b4ce2392ffc682dd9ac9335abb6b70662798a35743fbcc3fb7d79982",
"Created": "2024-11-04T18:00:09.914749565+08:00",
"Scope": "local",
"Driver": "bridge",
"EnableIPv6": false,
"IPAM": {
"Driver": "default",
"Options": null,
"Config": [
{
"Subnet": "172.17.0.0/16",
"Gateway": "172.17.0.1"
}
]
},
"Internal": false,
"Attachable": false,
"Ingress": false,
"ConfigFrom": {
"Network": ""
},
"ConfigOnly": false,
"Containers": {
"0349f1053421e48b415b0f4a6758df194a47616a309481fdfdae664c5e7bf1f3": {
"Name": "upython",
"EndpointID": "ea30a5f6b1bf305a3c10ac3a3d6c44503bb5c840c3aa1dbf49f30dc438125847",
"MacAddress": "02:42:ac:11:00:06",
"IPv4Address": "172.17.0.7/16",
"IPv6Address": ""
},
"23fbc1ed599f77c7562756d38d4e655d31a96a9a47978888629c50e556cc60ee": {
"Name": "umysql2",
"EndpointID": "4bb52b2d978dc90c57e0b5a89c623f6df8e4e844ac4bea45d385a9005386e72f",
"MacAddress": "02:42:ac:11:00:05",
"IPv4Address": "172.17.0.3/16",
"IPv6Address": ""
},
"8f87e78e4e9b419744799f32be396ebd55d0da21a7845d6854f3152cdd7e70da": {
"Name": "uemqx",
"EndpointID": "41cd86845237b7c2117b19b3cc28c9660fc5be6086e33562b2ce0c3d5de95793",
"MacAddress": "02:42:ac:12:00:06",
"IPv4Address": "172.17.0.2/16",
"IPv6Address": ""
},
"9672005cfb3ceb4b26f8b58c317e2068e4f8b5508d7980873de3e6c1d71eda58": {
"Name": "uplayer",
"EndpointID": "43f4647ffd479f2460af5e63780695d1646e30a4b171aaab4056a29c931345ee",
"MacAddress": "02:42:ac:11:00:06",
"IPv4Address": "172.17.0.6/16",
"IPv6Address": ""
},
"b67149b24bb5d2ad2bc0c74dde784958c98ae1f10b5c3dee4eadd00787951b50": {
"Name": "uredis",
"EndpointID": "c978bb8d32e421565522bd85d16834c774aa49409588cb58df9aaba91d70fd3a",
"MacAddress": "02:42:ac:11:00:04",
"IPv4Address": "172.17.0.4/16",
"IPv6Address": ""
},
"e960786c759c953ab039a7dd72c72e789f7dc479cd42fed0ba9e5b5e1016d0bd": {
"Name": "ujava2",
"EndpointID": "5a4d8667c5fe60eeebe2966731029c0d77e998cceba972c353e38884613dbde5",
"MacAddress": "02:42:ac:11:00:02",
"IPv4Address": "172.17.0.5/16",
"IPv6Address": ""
}
},
"Options": {
"com.docker.network.bridge.default_bridge": "true",
"com.docker.network.bridge.enable_icc": "true",
"com.docker.network.bridge.enable_ip_masquerade": "true",
"com.docker.network.bridge.host_binding_ipv4": "0.0.0.0",
"com.docker.network.bridge.name": "docker0",
"com.docker.network.driver.mtu": "1500"
},
"Labels": {}
}
]
=============================================================================================
执行 analyzePosition:
服务器状态分析 - getMysqlStatus
参数2: Ubains@123
Error response from daemon: Container 09e2052db0540c47415193204c94fa2c71c0676375476b349de862936bbe1901 is not running
执行SQL语句时发生错误:
创建表失败
Error response from daemon: Container 09e2052db0540c47415193204c94fa2c71c0676375476b349de862936bbe1901 is not running
执行SQL语句时发生错误:
插入记录失败
Error response from daemon: Container 09e2052db0540c47415193204c94fa2c71c0676375476b349de862936bbe1901 is not running
执行SQL语句时发生错误:
查询记录失败
Error response from daemon: Container 09e2052db0540c47415193204c94fa2c71c0676375476b349de862936bbe1901 is not running
执行SQL语句时发生错误:
更新记录失败
Error response from daemon: Container 09e2052db0540c47415193204c94fa2c71c0676375476b349de862936bbe1901 is not running
执行SQL语句时发生错误:
删除记录失败
=============================================================================================
执行 analyzePosition:
服务器状态分析 - getRedisStatus
参数2: Ubains@123
Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe.
response 为: PONG
Redis 服务器连接成功
Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe.
set_response 为: OK
Redis 服务器设置成功
Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe.
get_response 为: test_value
Redis 服务器获取成功
Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe.
del_response 为: 1
Redis 服务器删除成功
=============================================================================================
执行 analyzePosition:
服务器状态分析 - getFastdfsStatus
参数2: analyzePosition getFastdfsStatus
fastdfs文件上传成功
=============================================================================================
执行 analyzePosition:
服务器状态分析 - getNginxStatus
参数2: analyzePosition getNginxStatus
Nginx配置文件正确
HTTP 响应代码: 200
HTTP请求正常
=============================================================================================
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论