Commit Graph

13 Commits

Author SHA1 Message Date
Akizon77
e34367de69 Refactor monitoring package: remove platform-specific files and consolidate OS detection and process counting logic
- Deleted os_windows.go and process_windows.go, replacing them with platform-agnostic implementations in unit directory.
- Removed Linux-specific process counting logic from process_linux.go and integrated it into unit.
- Consolidated uptime and OS name retrieval into unit files for better organization.
- Updated update mechanism to use global variables for current version and repository.
- Introduced command-line flags for configuration, including disabling auto-update and web SSH.
- Implemented WebSocket connection handling and terminal interaction for both Unix and Windows systems.
- Added basic info upload functionality to server package, enhancing monitoring capabilities.
2025-05-16 19:56:22 +08:00
Akizon77
b156e93409 fix: 笔误,写错了 2025-05-06 21:32:06 +08:00
Akizon77
0ec0eda400 fix: 更新失败后不在终止程序 2025-05-06 21:30:50 +08:00
Akizon77
a4b2c8e204 fix: 自动更新后不会自动重新启动 2025-05-06 21:25:42 +08:00
Akizon77
fe0098bf49 feat: #4 在上报的字段里添加当前agent版本 2025-05-06 21:12:34 +08:00
Akizon77
2cc6534177 fix: 基本信息添加一些不太会经常变动的数据 2025-05-03 21:27:04 +08:00
Akizon77
6334b3dd06 fix: 当前版本注入 2025-05-03 21:21:36 +08:00
Akizon77
aa7c52ffa4 fix: 更新版本获取逻辑,支持从环境变量读取版本号 2025-05-03 21:13:40 +08:00
Akizon77
d4b66e86f9 feat: 自动更新 2025-04-29 21:26:50 +08:00
Akizon77
79d1760163 feat: 自动发布realease 2025-04-29 20:57:23 +08:00
Akizon77
f21001c71e fix: ws api endpoint 2025-04-16 14:34:06 +08:00
Akizon77
f785c0044c feat(monitoring): 增加网络总量和进程计数监控
- 在 net.go 中添加总量统计功能,记录上次采样值
- 在 main.go 中添加进程计数监控
- 修改 remote.go 中的 JSON 字段名称
- 优化 report 函数,增加网络总量和进程计数数据
2025-04-12 22:50:56 +08:00
Akizon77
c2a9148d4c init 2025-04-11 17:26:34 +08:00