极简探针(monitor) 第三方Windows Agent

夜轻 2026-09-20 15:26 1

[!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 会以明文传输
最新回复 (9)
  • qjj223 09-20 15:42
    1

    ^-^ ^-^ ^-^

  • 大鲨鱼 09-20 15:42
    2

    很棒,win 端 agent 就交由你负责了,加油

  • 大鲨鱼 09-20 15:47
    3

    后续 hub 侧如果发生优化变动等,我会和你同步

  • Maose 09-20 16:02
    4

    @大鲨鱼 #3

    探针考虑上架1panel吗?

  • 大鲨鱼 09-20 16:15
    5

    @Maose #4


    目前只想老老实实做好,没其他想法

  • morain 09-20 16:29
    6

    支持一手

  • herbal9507 09-20 18:47
    7

    @Maose #4 编排就好了

  • 夜轻 楼主 09-20 18:53
    8

    @Maose #4 除非1Panel主动收录 自己提交pr的话 需要项目star有10k ^-^

  • 武则天 09-20 19:22
    9

    正需要

* 帖子来源NodeSeek
返回