• 夜轻

    [!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 会以明文传输 |

    主楼
  • qjj223

    ^-^ ^-^ ^-^

    #1
  • 大鲨鱼

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

    #2
  • 大鲨鱼

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

    #3
  • Maose

    探针考虑上架1panel吗?

    #4
  • 大鲨鱼

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

    #5
  • herbal9507

    编排就好了

    #7
  • 夜轻

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

    #8
  • morain-nodeseek

    支持一手

    #6
  • 武则天

    正需要

    #9

发表回复

登录后回复