Files
AgentScript/需向量化数据/监控节点时间停滞不更新 标准化排查修复手册.md
T
HenryandClaude Code 26e13ff032 feat: Agent 工作区初始提交(源码+文档+Skills)
包含 CodeAgent 前后端源码、SKILLS、MCP、demo 代码与工作区文档。
排除依赖缓存、运行数据、备份与二进制附件,规则见 .gitignore。

Co-Authored-By: Claude Code <[email protected]>
2026-11-13 13:48:41 +08:00

72 lines
1.9 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 监控节点时间停滞不更新 标准化排查修复手册
## 一、故障现象
服务器业务容器 / 程序运行正常,**监控页面节点最后更新时间长期停滞**(如卡在 2025-11-25),无最新指标上报。
## 二、核心根因
监控 Agent 配置统一使用域名 `je-monitor:18888` 上报;
服务器重启后**本地 Hosts 域名映射丢失**,无法解析 `je-monitor`,Agent 连接监控服务失败,停止数据上报。
## 三、通用前置校验(快速确认问题)
1. Linux 测试解析
```
ping je-monitor -c 2
```
1. Windows 测试解析(管理员 CMD)
```
ping je-monitor
```
- 解析失败 / 超时 → 命中本故障,执行下方修复步骤
- 能解析为 `10.49.211.51` → 非本问题,排查网络、Agent 配置、Token
------
## 四、Linux 服务器 固定修复步骤(直接复制执行)
```
# 1. 写入域名本地映射(永久生效)
echo "10.49.211.51 je-monitor" >> /etc/hosts
# 2. 重启监控Agent服务,重连监控平台
systemctl restart je-monitor-agent
```
------
## 五、Windows 服务器 固定修复步骤
> 操作前提:**以管理员身份 打开 CMD / PowerShell**
```
:: 1. 写入系统hosts域名映射
echo 10.49.211.51 je-monitor >> C:\Windows\System32\drivers\etc\hosts
:: 2. 刷新本地DNS缓存
ipconfig /flushdns
:: 3. 重启JE监控Agent服务
net stop "JE Monitor Agent" && net start "JE Monitor Agent"
```
------
## 六、修复完成验证
1. 再次执行 `ping je-monitor`,解析地址为 `10.49.211.51`
2. 等待 1~3 分钟,监控页面该节点**最后更新时间自动刷新为当前时间**
3. 指标、心跳数据正常上报,故障修复
------
## 七、预防说明
1. 本次写入 Hosts 为**永久生效**,服务器重启不会丢失;
2. 后续新增 IoT 服务器、重装系统、重置网络后,直接套用以上对应系统命令即可快速排障。