Commit Graph

123 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
f593015598 feat: 一键部署脚本 2025-05-06 21:09:42 +08:00
Akizon77
180586d8aa fix: #3 修改CPU名称识别的逻辑 2025-05-06 21:08:38 +08:00
Akizon77
2cc6534177 fix: 基本信息添加一些不太会经常变动的数据 2025-05-03 21:27:04 +08:00
Akizon77
ca86b698ab Merge branch 'main' of https://github.com/komari-monitor/komari-agent 2025-05-03 21:22:09 +08:00
Akizon77
6334b3dd06 fix: 当前版本注入 2025-05-03 21:21:36 +08:00
Akizon
8a1041fda3 Update release.yml 2025-05-03 21:20:01 +08:00
Akizon77
ab9c81cb14 Merge branch 'main' of https://github.com/komari-monitor/komari-agent 2025-05-03 21:13:43 +08:00
Akizon77
aa7c52ffa4 fix: 更新版本获取逻辑,支持从环境变量读取版本号 2025-05-03 21:13:40 +08:00
Akizon
032f3cb591 Add files via upload 2025-04-29 21:48:09 +08:00
Akizon77
d4b66e86f9 feat: 自动更新 2025-04-29 21:26:50 +08:00
Akizon77
5f882d7042 fix: 优化构建二进制文件的命令,减少生成的文件大小 2025-04-29 21:15:54 +08:00
Akizon77
07b2eef610 fix: 修复构建和上传二进制文件的名称 2025-04-29 21:12:11 +08:00
Akizon77
f607957365 fix: text 自动生成二进制 2025-04-29 21:07:58 +08:00
Akizon77
ec5bbcb2f4 fix: text 自动生成二进制 2025-04-29 21:03:04 +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