新增群晖Agent安装社区文章,优化通知文档格式

This commit is contained in:
Kris 2023-03-09 01:46:24 +01:00
parent c7e8ab9e04
commit f91148eedf
No known key found for this signature in database
GPG Key ID: 36AFAA97D2910652
4 changed files with 28 additions and 31 deletions

View File

@ -130,13 +130,17 @@ EOF
``` ```
### Installing Agent on Windows ### Installing Agent on Windows
- Please refer to the community article:
[哪吒探针 - Windows 客户端安装](https://nyko.me/2020/12/13/nezha-windows-client.html)(Chinese) - Please refer to the community article:
[哪吒探针 - Windows 客户端安装](https://nyko.me/2020/12/13/nezha-windows-client.html) (Chinese)
<br/> <br/>
### Installing Agent on Synology DSM ### Installing Agent on Synology DSM
- Please refer to the community article:
[哪吒探针——群晖客户端(被控端)安装教程](https://wl.gta5pdx.cn/archives/546/)(Chinese) - Please refer to the community article:
[群晖 DSM 7.x 安装 哪吒监控 Agent](https://blog.mitsea.com/3929551d08bd4bb0a8baa453e2d92b0c/) (Chinese)
[哪吒探针——群晖客户端(被控端)安装教程](https://wl.gta5pdx.cn/archives/546/) (Chinese)
- Using Systemd *Only available on DSM7*: - Using Systemd *Only available on DSM7*:
```sh ```sh
@ -175,10 +179,6 @@ EOF
``` ```
DO IT WHEN YOU HAVE MODIFIED THE ENVS‼ DO IT WHEN YOU HAVE MODIFIED THE ENVS‼
DO IT WHEN YOU HAVE MODIFIED THE ENVS‼
DO IT WHEN YOU HAVE MODIFIED THE ENVS‼
Using `root` to execute command above, that's all. Using `root` to execute command above, that's all.
<br/> <br/>

View File

@ -33,7 +33,7 @@ Refer to the example below, it is very flexible.
- Body: null - Body: null
- Notes for this methodThe XXXXXX in botXXXXXX is the token provided when you follow the official @Botfather in Telegram and enter /newbot to create a new bot. (In the line after _Use this token to access the HTTP API_). The 'bot' are essential. After creating a bot, you need to talk to the BOT in Telegram (send a random message) before you can send a message by using API. YYYYYY is Telegram user's ID, you can get it by talking to the bot @userinfobot. - Notes for this methodThe XXXXXX in botXXXXXX is the token provided when you follow the official @Botfather in Telegram and enter /newbot to create a new bot. (In the line after _Use this token to access the HTTP API_). The 'bot' are essential. After creating a bot, you need to talk to the BOT in Telegram (send a random message) before you can send a message by using API. YYYYYY is Telegram user's ID, you can get it by talking to the bot @userinfobot.
- **Email notification example - Outlook, contributed by [@Cantoblanco](https://github.com/cantoblanco)** - **Email notification example - Outlook**
- Name: MS Mail Notification - Name: MS Mail Notification
- URLhttps://graph.microsoft.com/v1.0/me/microsoft.graph.sendMail - URLhttps://graph.microsoft.com/v1.0/me/microsoft.graph.sendMail
- Request method: POST - Request method: POST
@ -41,26 +41,26 @@ Refer to the example below, it is very flexible.
- Header: `{"Content-type":"application/json", - Header: `{"Content-type":"application/json",
"Authorization":"Bearer {Token}"}` "Authorization":"Bearer {Token}"}`
- Body: - Body:
``` ```json
{ {
"message": { "message": {
"subject": "Server Status Notification", "subject": "Server Status Notification",
"body": { "body": {
"contentType": "Text", "contentType": "Text",
"content": "#NEZHA#" "content": "#NEZHA#"
}, },
"toRecipients": [ "toRecipients": [
{ {
"emailAddress": { "emailAddress": {
"address": "ADDRESS FOR RECEVING EMAILS" "address": "ADDRESS FOR RECEVING EMAILS"
} }
} }
] ]
} }
} }
``` ```
- Notes for this method: This method requires calling Microsoft Graph V1.0, you need to go to Microsoft Graph and create your own application, give `Mail.Send` permission and get the Token, or you can go [Microsoft Graph Explorer](https://developer.microsoft.com/en-us/graph/graph-explorer) directly to give permission and get the Token, just replace the Token in the Header with the actual Token. Notes for this method: This method requires calling Microsoft Graph V1.0, you need to go to Microsoft Graph and create your own application, give `Mail.Send` permission and get the Token, or you can go [Microsoft Graph Explorer](https://developer.microsoft.com/en-us/graph/graph-explorer) directly to give permission and get the Token, just replace the Token in the Header with the actual Token.
- **Wechat Work Group bot Example, contributed by [@ChowRex](https://github.com/ChowRex)** - **Wechat Work Group bot Example, contributed by [@ChowRex](https://github.com/ChowRex)**

View File

@ -144,9 +144,10 @@ EOF
### 在 群晖DSM 中安装 Agent ### 在 群晖DSM 中安装 Agent
- 请参考社区文章: - 请参考社区文章:
[群晖 DSM 7.x 安装 哪吒监控 Agent](https://blog.mitsea.com/3929551d08bd4bb0a8baa453e2d92b0c/)
[哪吒探针——群晖客户端(被控端)安装教程](https://wl.gta5pdx.cn/archives/546/) [哪吒探针——群晖客户端(被控端)安装教程](https://wl.gta5pdx.cn/archives/546/)
- Systemd实现 *仅适用于DSM7*: - Systemd 实现 *仅适用于 DSM7*:
```sh ```sh
# 客户端路径 # 客户端路径
EXEC="/PATH/TO/nezha-agent" EXEC="/PATH/TO/nezha-agent"
@ -187,11 +188,7 @@ EOF
``` ```
‼️修改对应信息后‼️ ‼️修改对应信息后‼️
‼️修改对应信息后‼️ 使用 `root` 账号执行上述命令即可安装完成
‼️修改对应信息后‼️
使用`root`账号执行上述命令即可安装完成
<br/> <br/>

View File

@ -58,7 +58,7 @@ URL 里面也可放置占位符,请求时会进行简单的字符串替换。
- Header: 留空 - Header: 留空
- Body: 留空 - Body: 留空
- URL 参数获取说明:此方式需提前在 [SendCloud](https://www.sendcloud.net/) 注册账号,创建发件邮箱,然后在[这里](https://www.sendcloud.net/sendSetting/apiuser)获取 APIUSER 和 APIKEY替换 URL 中的 <替换APIUSER><替换APIKEY> 为自己的 APIUSER 和 APIKEY替换 URL 中的 <自定义发件邮箱><自定义收件邮箱> 为自己的发件邮箱和收件邮箱。 URL 参数获取说明:此方式需提前在 [SendCloud](https://www.sendcloud.net/) 注册账号,创建发件邮箱,然后在[这里](https://www.sendcloud.net/sendSetting/apiuser)获取 APIUSER 和 APIKEY替换 URL 中的 <替换APIUSER><替换APIKEY> 为自己的 APIUSER 和 APIKEY替换 URL 中的 <自定义发件邮箱><自定义收件邮箱> 为自己的发件邮箱和收件邮箱。
- **企业微信 群机器人 示例 贡献者:[@ChowRex](https://github.com/ChowRex)** - **企业微信 群机器人 示例 贡献者:[@ChowRex](https://github.com/ChowRex)**