https://github.com/speedphp/smtp-alert
For metabase, send the alert from SMPT, to Weixin.
https://github.com/speedphp/smtp-alert
Last synced: 26 days ago
JSON representation
For metabase, send the alert from SMPT, to Weixin.
- Host: GitHub
- URL: https://github.com/speedphp/smtp-alert
- Owner: speedphp
- Created: 2022-07-14T07:12:03.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-07-14T07:15:16.000Z (almost 4 years ago)
- Last Synced: 2025-03-20T05:28:35.689Z (about 1 year ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## 模拟SMTP服务
通过模拟SMTP服务,来获取metabase发送告警邮件内容的标题和URL。
然后再发送到企业微信的告警渠道。
这是由于metabase只有邮件告警的原因。
完成可通过pm2执行
完成发送企业微信功能
### 环境
Node v14
### 安装
> npm i
### 执行
> pm2 start
### 清单
1. 安装nodejs,14 LTS 版本
2. 建个目录
3. 把文件解压到目录里面
4. 在目录里面运行npm i
5. 执行 npm i -g pm2
6. 启动 pm2 start