# lightmonitor **Repository Path**: chenxuan520/lightmonitor ## Basic Information - **Project Name**: lightmonitor - **Description**: 通知工具,支持飞书微信 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-04-20 - **Last Updated**: 2025-05-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # lightmonitor ## Author - **chenxuan** ## 功能 - 一个轻量化的监控工具 - 一个负责实时通知的中台服务 - 通过配置文件进行设置监控 - 支持通过微信和邮箱,飞书发送告警信息 ## 安装 1. `git clone https://github.com/chenxuan520/lightmonitor` 2. `make`(确保安装例如go环境和make工具) 3. 编辑`./config/config.json` 文件,具体规则参考下文 4. `./lightmonitor`(默认配置是 ./config/config.json),此时在`http://127.0.0.1:5200` 默认进入管理界面(端口根据配置) ## 配置文件说明 ```json { "server": { "port": 5200, // 绑定的端口号 "password": "example" // 密码,为空就是没有 }, "monitors": [ { "url": "https://example.com",// 需要检测的链接 "method": "GET",// 访问的方法 "interval_seconds": 10,// 检测的时间间隔 "max_offline_minutes": 1,// 最长离线时间 "remarks": "",// 备注 "notifications": ["wechat","email"]// 通知方式 } ], "notify_way": { "notify_interval_minutes": 60,// 通知检查的间隔 "email": { "domain": "smtp.example.com",// 下面配置参考邮箱提供商 "password": "example", "send_email": "example@example.com", "recv_email": "example@example.com" }, "wechat": {// 从 server酱 获取(一个负责接入微信推送的机构,直接搜索即可) "send_key": "example" }, "feishu": {// 飞书bot推送,参考 https://open.feishu.cn/document/client-docs/bot-v3/bot-overview "web_hook": "example" } } ``` ## TODO - [ ] 优化多个通知为一个