- 夜轻2026-09-206775
[!danger] 本项目完全由 AI 生成. 使用本项目产生的一切后果由使用者自行承担,项目作者不对任何直接或间接损失负责. AI含量101%
仓库地址: https://github.com/Yeqingky/monitor-agent-win
官方文档: https://monitor-document.pages.dev/
官方Github: https://github.com/monitor-probe/
使用教程
从Github Releases下载编译好的exe文件 以管理员权限运行PowerShell 执行```
.\monitor-agent.exe install --server https://example.com --token <token>``
安装完成后 可删除monitor-agent.exe 会复制一份副本到%ProgramData%\monitor-agent\monitor-agent.exe`其他命令```
.\monitor-agent.exe status
.\monitor-agent.exe start
.\monitor-agent.exe stop
.\monitor-agent.exe uninstall.\monitor-agent.exe install --service-name monitor-agent-1 --server https://example.com --token <token>
.\monitor-agent.exe status --service-name monitor-agent-1
.\monitor-agent.exe start --service-name monitor-agent-1
.\monitor-agent.exe stop --service-name monitor-agent-1
.\monitor-agent.exe uninstall --service-name monitor-agent-1```service-name设计思路参考Komari Agent 可同时运行多个Agent 只需要添加 --service-name 参数指定服务名 不带此参数默认为monitor-agent
文件/运行目录
%ProgramData%\monitor-agent\配置文件:
默认(monitor-agent):%ProgramData%\monitor-agent\agent.env
其他(service-name):%ProgramData%\monitor-agent<service-name>.env
参数
参数 |
默认 |
说明 |--server|
必填 |
hub 地址, 也可用配置文件或MONITOR_SERVER|--token|
必填 |
节点 token, 也可用配置文件或MONITOR_TOKEN|--service-name|monitor-agent|
Windows Service 名称 |--config|%ProgramData%\monitor-agent\agent.env|
配置文件路径, 默认按服务名区分 |--interval|
1 |
上报间隔, 1-3600 秒 |--nics|
空 |
只统计指定 adapter alias, 逗号分隔 |--insecure|
关闭 |
允许远端使用明文ws://, token 会以明文传输 |主楼 - qjj2232026-09-2012909
^-^ ^-^ ^-^
- 大鲨鱼2026-09-206550
很棒,win 端 agent 就交由你负责了,加油
- 大鲨鱼2026-09-206550
后续 hub 侧如果发生优化变动等,我会和你同步
- Maose2026-09-2013621
- 大鲨鱼2026-09-206550
- herbal95072026-09-2019740
- 夜轻2026-09-206775
- morain-nodeseek2026-09-2052615
支持一手
- 武则天2026-09-2038639
正需要