From 050d7c0355ff5f4f316d3b266defed2b0a2e0a49 Mon Sep 17 00:00:00 2001 From: Erope Date: Sat, 21 May 2022 08:01:33 +0000 Subject: [PATCH] deploy: 6670381c47bf05a002a3d9f3c13b9e55c5ebe44c --- assets/guide_dashboardq.md.13446037.js | 7 +++++++ ...553d.lean.js => guide_dashboardq.md.13446037.lean.js} | 2 +- assets/guide_dashboardq.md.84fd553d.js | 4 ---- developer/index.html | 2 +- developer/l10n.html | 2 +- developer/theme.html | 2 +- en_US/developer/index.html | 2 +- en_US/developer/l10n.html | 2 +- en_US/developer/theme.html | 2 +- en_US/guide/agent.html | 2 +- en_US/guide/agentq.html | 2 +- en_US/guide/api.html | 2 +- en_US/guide/dashboard.html | 2 +- en_US/guide/dashboardq.html | 2 +- en_US/guide/loginq.html | 2 +- en_US/guide/notifications.html | 2 +- en_US/guide/q2.html | 2 +- en_US/guide/q3.html | 2 +- en_US/guide/q4.html | 2 +- en_US/guide/q5.html | 2 +- en_US/guide/servers.html | 2 +- en_US/guide/services.html | 2 +- en_US/guide/settings.html | 2 +- en_US/guide/tasks.html | 2 +- en_US/index.html | 2 +- guide/agent.html | 2 +- guide/agentq.html | 2 +- guide/api.html | 2 +- guide/dashboard.html | 2 +- guide/dashboardq.html | 9 ++++++--- guide/loginq.html | 2 +- guide/notifications.html | 2 +- guide/q1.html | 2 +- guide/q2.html | 2 +- guide/q3.html | 2 +- guide/q4.html | 2 +- guide/q5.html | 2 +- guide/servers.html | 2 +- guide/services.html | 2 +- guide/settings.html | 2 +- guide/tasks.html | 2 +- hashmap.json | 2 +- index.html | 2 +- 43 files changed, 53 insertions(+), 47 deletions(-) create mode 100644 assets/guide_dashboardq.md.13446037.js rename assets/{guide_dashboardq.md.84fd553d.lean.js => guide_dashboardq.md.13446037.lean.js} (55%) delete mode 100644 assets/guide_dashboardq.md.84fd553d.js diff --git a/assets/guide_dashboardq.md.13446037.js b/assets/guide_dashboardq.md.13446037.js new file mode 100644 index 00000000..f84e8f14 --- /dev/null +++ b/assets/guide_dashboardq.md.13446037.js @@ -0,0 +1,7 @@ +import{_ as a,c as e,o as t,d as s}from"./app.2c402e15.js";const g='{"title":"Dashboard\u76F8\u5173","description":"","frontmatter":{},"headers":[{"level":3,"title":"\u5B9E\u65F6\u901A\u9053\u65AD\u5F00/\u5728\u7EBF\u7EC8\u7AEF\u8FDE\u63A5\u5931\u8D25","slug":"\u5B9E\u65F6\u901A\u9053\u65AD\u5F00-\u5728\u7EBF\u7EC8\u7AEF\u8FDE\u63A5\u5931\u8D25"},{"level":3,"title":"\u540E\u53F0\u663E\u793A\u7684IP\u548CAgent\u5B9E\u9645IP\u4E0D\u4E00\u81F4\uFF1F","slug":"\u540E\u53F0\u663E\u793A\u7684ip\u548Cagent\u5B9E\u9645ip\u4E0D\u4E00\u81F4\uFF1F"},{"level":3,"title":"\u67E5\u770B\u5BC6\u7801\u5FD8\u8BB0\\\\\u5220\u9664\u67E5\u770B\u5BC6\u7801","slug":"\u67E5\u770B\u5BC6\u7801\u5FD8\u8BB0-\u5220\u9664\u67E5\u770B\u5BC6\u7801"},{"level":3,"title":"\u9762\u677F\u5B89\u88C5\u5931\u8D25: iptables ......","slug":"\u9762\u677F\u5B89\u88C5\u5931\u8D25-iptables"}],"relativePath":"guide/dashboardq.md"}',n={},r=s(`

Dashboard\u76F8\u5173

\u5B9E\u65F6\u901A\u9053\u65AD\u5F00/\u5728\u7EBF\u7EC8\u7AEF\u8FDE\u63A5\u5931\u8D25

\u8BF7\u67E5\u770B\u5E38\u89C1\u95EE\u9898-\u5B9E\u65F6\u901A\u9053\u65AD\u5F00/\u5728\u7EBF\u7EC8\u7AEF\u8FDE\u63A5\u5931\u8D25
\u5728\u6B64\u4E0D\u518D\u8D58\u8FF0\u3002

\u540E\u53F0\u663E\u793A\u7684IP\u548CAgent\u5B9E\u9645IP\u4E0D\u4E00\u81F4\uFF1F

\u9996\u5148\u89E3\u91CA\u540E\u53F0\u663E\u793A\u7684IP\u662F\u600E\u4E48\u6765\u7684\uFF0CAgent\u4F1A\u6BCF\u9694\u4E00\u6BB5\u65F6\u95F4\u8BF7\u6C42\u4E00\u904DIP-API\uFF0C\u83B7\u53D6\u5230IP\u4FE1\u606F\u540E\u8FDB\u884C\u4E0A\u62A5\uFF0C\u76EE\u524D\u4F7F\u7528\u7684IP-API\u53EF\u5728\u6B64\u67E5\u770Bmyip.go\u3002
\u5982\u60A8\u8BA4\u4E3A\u540E\u53F0\u663E\u793A\u7684IP\u548C\u670D\u52A1\u5546\u63D0\u4F9B\u7ED9\u60A8\u7684IP\u4E0D\u4E00\u81F4\uFF0C\u6700\u5927\u7684\u53EF\u80FD\u662F\u670D\u52A1\u5546\u7ED9\u60A8\u7684\u662F\u5165\u53E3\uFF0C\u4F46Agent\u6D4B\u8BD5\u7684\u662F\u60A8\u7684\u51FA\u53E3\u3002\u8FD9\u4E2A\u95EE\u9898\u4E5F\u53EF\u80FD\u4F1A\u51FA\u73B0\u5728\u591A\u7EBF\u4E3B\u673A\u4E2D\u3002
\u4E3E\u4E2A\u7B80\u5355\u4E5F\u5341\u5206\u5E38\u89C1\u7684\u4F8B\u5B50\uFF0C\u670D\u52A1\u5546\u7ED9\u60A8\u63D0\u4F9B\u7684\u662F\u4E00\u53F0\u9AD8\u9632\u4E3B\u673A\uFF0C\u4E3A\u4E86\u540C\u65F6\u6EE1\u8DB3\u9AD8\u9632\u548C\u4F4E\u7F51\u7EDC\u4E2D\u65AD\u7387\u7684\u76EE\u6807\uFF0C\u63D0\u4F9B\u7ED9\u60A8\u7684IP\u53EF\u80FD\u662F\u7ECF\u8FC7\u6620\u5C04\u540E\u7684\u9AD8\u9632IP\u800C\u5E76\u975E\u60A8\u4E3B\u673A\u7684\u771F\u5B9E\u51FA\u53E3IP\u3002
\u60A8\u4E5F\u53EF\u4EE5\u4F7F\u7528\u4EE5\u4E0B\u547D\u4EE4\u5728Agent\u90E8\u7F72\u4E3B\u673A\u4E2D\u8FDB\u884C\u6D4B\u8BD5\u3002

curl api.myip.la
+curl ip.sb
+curl ip-api.com
+

\u67E5\u770B\u5BC6\u7801\u5FD8\u8BB0\\\u5220\u9664\u67E5\u770B\u5BC6\u7801

\u8BF7\u67E5\u770B\u6216\u7F16\u8F91/opt/nezha/dashboard/data/config.yaml\u6587\u4EF6\u3002
\u5BC6\u7801\u4F4D\u4E8Esite-viewpassword\u3002

\u9762\u677F\u5B89\u88C5\u5931\u8D25: iptables ......

\u9996\u5148\u5C1D\u8BD5\u91CD\u542Fdocker\u518D\u64CD\u4F5C

systemctl status docker
+systemctl restart docker
+systemctl status docker
+

\u91CD\u542F\u540E\u5C1D\u8BD5\u91CD\u65B0\u5B89\u88C5\u9762\u677F\u3002
\u82E5\u4F9D\u7136\u51FA\u73B0iptables...\u7B49\u9519\u8BEF\uFF0C\u5219\u8003\u8651\u662F\u5426\u76F4\u63A5\u5173\u95EDiptables\u751A\u81F3\u79FB\u9664iptables\u3002
\u8FD9\u4E2A\u95EE\u9898\u4E5F\u53EF\u80FD\u7531\u5185\u6838\u5F15\u8D77\uFF0C\u4E5F\u53EF\u4EE5\u5C1D\u8BD5\u66F4\u6362\u5B98\u65B9\u5185\u6838\u3002

`,12),i=[r];function o(d,l,c,p,h,b){return t(),e("div",null,i)}var _=a(n,[["render",o]]);export{g as __pageData,_ as default}; diff --git a/assets/guide_dashboardq.md.84fd553d.lean.js b/assets/guide_dashboardq.md.13446037.lean.js similarity index 55% rename from assets/guide_dashboardq.md.84fd553d.lean.js rename to assets/guide_dashboardq.md.13446037.lean.js index 7d066db1..7ef07561 100644 --- a/assets/guide_dashboardq.md.84fd553d.lean.js +++ b/assets/guide_dashboardq.md.13446037.lean.js @@ -1 +1 @@ -import{_ as a,c as e,o as t,d as r}from"./app.2c402e15.js";const b='{"title":"Dashboard\u76F8\u5173","description":"","frontmatter":{},"headers":[{"level":3,"title":"\u5B9E\u65F6\u901A\u9053\u65AD\u5F00/\u5728\u7EBF\u7EC8\u7AEF\u8FDE\u63A5\u5931\u8D25","slug":"\u5B9E\u65F6\u901A\u9053\u65AD\u5F00-\u5728\u7EBF\u7EC8\u7AEF\u8FDE\u63A5\u5931\u8D25"},{"level":3,"title":"\u540E\u53F0\u663E\u793A\u7684IP\u548CAgent\u5B9E\u9645IP\u4E0D\u4E00\u81F4\uFF1F","slug":"\u540E\u53F0\u663E\u793A\u7684ip\u548Cagent\u5B9E\u9645ip\u4E0D\u4E00\u81F4\uFF1F"},{"level":3,"title":"\u67E5\u770B\u5BC6\u7801\u5FD8\u8BB0\\\\\u5220\u9664\u67E5\u770B\u5BC6\u7801","slug":"\u67E5\u770B\u5BC6\u7801\u5FD8\u8BB0-\u5220\u9664\u67E5\u770B\u5BC6\u7801"}],"relativePath":"guide/dashboardq.md"}',n={},s=r("",8),o=[s];function i(d,c,h,p,l,_){return t(),e("div",null,o)}var u=a(n,[["render",i]]);export{b as __pageData,u as default}; +import{_ as a,c as e,o as t,d as s}from"./app.2c402e15.js";const g='{"title":"Dashboard\u76F8\u5173","description":"","frontmatter":{},"headers":[{"level":3,"title":"\u5B9E\u65F6\u901A\u9053\u65AD\u5F00/\u5728\u7EBF\u7EC8\u7AEF\u8FDE\u63A5\u5931\u8D25","slug":"\u5B9E\u65F6\u901A\u9053\u65AD\u5F00-\u5728\u7EBF\u7EC8\u7AEF\u8FDE\u63A5\u5931\u8D25"},{"level":3,"title":"\u540E\u53F0\u663E\u793A\u7684IP\u548CAgent\u5B9E\u9645IP\u4E0D\u4E00\u81F4\uFF1F","slug":"\u540E\u53F0\u663E\u793A\u7684ip\u548Cagent\u5B9E\u9645ip\u4E0D\u4E00\u81F4\uFF1F"},{"level":3,"title":"\u67E5\u770B\u5BC6\u7801\u5FD8\u8BB0\\\\\u5220\u9664\u67E5\u770B\u5BC6\u7801","slug":"\u67E5\u770B\u5BC6\u7801\u5FD8\u8BB0-\u5220\u9664\u67E5\u770B\u5BC6\u7801"},{"level":3,"title":"\u9762\u677F\u5B89\u88C5\u5931\u8D25: iptables ......","slug":"\u9762\u677F\u5B89\u88C5\u5931\u8D25-iptables"}],"relativePath":"guide/dashboardq.md"}',n={},r=s("",12),i=[r];function o(d,l,c,p,h,b){return t(),e("div",null,i)}var _=a(n,[["render",o]]);export{g as __pageData,_ as default}; diff --git a/assets/guide_dashboardq.md.84fd553d.js b/assets/guide_dashboardq.md.84fd553d.js deleted file mode 100644 index d841dd13..00000000 --- a/assets/guide_dashboardq.md.84fd553d.js +++ /dev/null @@ -1,4 +0,0 @@ -import{_ as a,c as e,o as t,d as r}from"./app.2c402e15.js";const b='{"title":"Dashboard\u76F8\u5173","description":"","frontmatter":{},"headers":[{"level":3,"title":"\u5B9E\u65F6\u901A\u9053\u65AD\u5F00/\u5728\u7EBF\u7EC8\u7AEF\u8FDE\u63A5\u5931\u8D25","slug":"\u5B9E\u65F6\u901A\u9053\u65AD\u5F00-\u5728\u7EBF\u7EC8\u7AEF\u8FDE\u63A5\u5931\u8D25"},{"level":3,"title":"\u540E\u53F0\u663E\u793A\u7684IP\u548CAgent\u5B9E\u9645IP\u4E0D\u4E00\u81F4\uFF1F","slug":"\u540E\u53F0\u663E\u793A\u7684ip\u548Cagent\u5B9E\u9645ip\u4E0D\u4E00\u81F4\uFF1F"},{"level":3,"title":"\u67E5\u770B\u5BC6\u7801\u5FD8\u8BB0\\\\\u5220\u9664\u67E5\u770B\u5BC6\u7801","slug":"\u67E5\u770B\u5BC6\u7801\u5FD8\u8BB0-\u5220\u9664\u67E5\u770B\u5BC6\u7801"}],"relativePath":"guide/dashboardq.md"}',n={},s=r(`

Dashboard\u76F8\u5173

\u5B9E\u65F6\u901A\u9053\u65AD\u5F00/\u5728\u7EBF\u7EC8\u7AEF\u8FDE\u63A5\u5931\u8D25

\u8BF7\u67E5\u770B\u5E38\u89C1\u95EE\u9898-\u5B9E\u65F6\u901A\u9053\u65AD\u5F00/\u5728\u7EBF\u7EC8\u7AEF\u8FDE\u63A5\u5931\u8D25
\u5728\u6B64\u4E0D\u518D\u8D58\u8FF0\u3002

\u540E\u53F0\u663E\u793A\u7684IP\u548CAgent\u5B9E\u9645IP\u4E0D\u4E00\u81F4\uFF1F

\u9996\u5148\u89E3\u91CA\u540E\u53F0\u663E\u793A\u7684IP\u662F\u600E\u4E48\u6765\u7684\uFF0CAgent\u4F1A\u6BCF\u9694\u4E00\u6BB5\u65F6\u95F4\u8BF7\u6C42\u4E00\u904DIP-API\uFF0C\u83B7\u53D6\u5230IP\u4FE1\u606F\u540E\u8FDB\u884C\u4E0A\u62A5\uFF0C\u76EE\u524D\u4F7F\u7528\u7684IP-API\u53EF\u5728\u6B64\u67E5\u770Bmyip.go\u3002
\u5982\u60A8\u8BA4\u4E3A\u540E\u53F0\u663E\u793A\u7684IP\u548C\u670D\u52A1\u5546\u63D0\u4F9B\u7ED9\u60A8\u7684IP\u4E0D\u4E00\u81F4\uFF0C\u6700\u5927\u7684\u53EF\u80FD\u662F\u670D\u52A1\u5546\u7ED9\u60A8\u7684\u662F\u5165\u53E3\uFF0C\u4F46Agent\u6D4B\u8BD5\u7684\u662F\u60A8\u7684\u51FA\u53E3\u3002\u8FD9\u4E2A\u95EE\u9898\u4E5F\u53EF\u80FD\u4F1A\u51FA\u73B0\u5728\u591A\u7EBF\u4E3B\u673A\u4E2D\u3002
\u4E3E\u4E2A\u7B80\u5355\u4E5F\u5341\u5206\u5E38\u89C1\u7684\u4F8B\u5B50\uFF0C\u670D\u52A1\u5546\u7ED9\u60A8\u63D0\u4F9B\u7684\u662F\u4E00\u53F0\u9AD8\u9632\u4E3B\u673A\uFF0C\u4E3A\u4E86\u540C\u65F6\u6EE1\u8DB3\u9AD8\u9632\u548C\u4F4E\u7F51\u7EDC\u4E2D\u65AD\u7387\u7684\u76EE\u6807\uFF0C\u63D0\u4F9B\u7ED9\u60A8\u7684IP\u53EF\u80FD\u662F\u7ECF\u8FC7\u6620\u5C04\u540E\u7684\u9AD8\u9632IP\u800C\u5E76\u975E\u60A8\u4E3B\u673A\u7684\u771F\u5B9E\u51FA\u53E3IP\u3002
\u60A8\u4E5F\u53EF\u4EE5\u4F7F\u7528\u4EE5\u4E0B\u547D\u4EE4\u5728Agent\u90E8\u7F72\u4E3B\u673A\u4E2D\u8FDB\u884C\u6D4B\u8BD5\u3002

curl api.myip.la
-curl ip.sb
-curl ip-api.com
-

\u67E5\u770B\u5BC6\u7801\u5FD8\u8BB0\\\u5220\u9664\u67E5\u770B\u5BC6\u7801

\u8BF7\u67E5\u770B\u6216\u7F16\u8F91/opt/nezha/dashboard/data/config.yaml\u6587\u4EF6\u3002
\u5BC6\u7801\u4F4D\u4E8Esite-viewpassword\u3002

`,8),o=[s];function i(d,c,h,p,l,_){return t(),e("div",null,o)}var u=a(n,[["render",i]]);export{b as __pageData,u as default}; diff --git a/developer/index.html b/developer/index.html index e15766c6..e00b2df7 100644 --- a/developer/index.html +++ b/developer/index.html @@ -14,7 +14,7 @@

开发手册

欢迎使用哪吒监控开发手册,我们欢迎你提出高质量的Pull Request,帮助哪吒监控变得更好!

Copyright © 2022-present Nezhahq

- + diff --git a/developer/l10n.html b/developer/l10n.html index fe7e3c46..c9447e40 100644 --- a/developer/l10n.html +++ b/developer/l10n.html @@ -14,7 +14,7 @@

哪吒监控的Dashboard已经添加本地化,支持多个语言,你可以在开发新功能时遵循以下步骤来支持本地化

WARNING

哪吒监控使用 Crowdin 平台翻译文本,请不要直接修改除 zh-CN.toml 以外的toml文件

介绍

  1. 你可以直接使用 /resource/l10n/zh-CN.toml 中的配置来替换新功能中的文本
  2. 如果新功能中有新的文本,请将新文本拉取到 zh-CN.toml
  3. 在Pull Request被合并后,你可以前往 Crowdin 平台贡献新文本的翻译
- + diff --git a/developer/theme.html b/developer/theme.html index 87adfd90..327c140a 100644 --- a/developer/theme.html +++ b/developer/theme.html @@ -14,7 +14,7 @@

哪吒主题开发环境

哪吒面板提供了主题开发环境,你可以使用它来创建新的哪吒监控主题

WARNING

请注意: 此开发环境仅支持 dashboard v0.13.16 及更新版本。

使用说明

  1. 克隆此仓库到本地
  2. 修改 data/config.yaml 中的 Oauth2 配置(回调连接可以填 http://localhost
  3. 运行 docker-compose up
  4. 开始开发
  5. 主题制作完成之后可以将 theme-custom 放置到服务器上的 /opt/nezha/dashboard/theme-custom 位置

FAQ

  • 如果不能使用 80 端口,在 docker-compose.yaml 中修改配置。
- + diff --git a/en_US/developer/index.html b/en_US/developer/index.html index 864d8e09..9d5ae1db 100644 --- a/en_US/developer/index.html +++ b/en_US/developer/index.html @@ -14,7 +14,7 @@

Development Manual

Welcome to the Nezha Monitoring Development Manual.

Copyright © 2022-present Nezhahq

- + diff --git a/en_US/developer/l10n.html b/en_US/developer/l10n.html index 07d23ebe..ac53f7f5 100644 --- a/en_US/developer/l10n.html +++ b/en_US/developer/l10n.html @@ -14,7 +14,7 @@

Nezha Monitoring's Dashboard has added localization to support multiple languages, and you can follow these steps to support localization when developing new features

WARNING

Nezha uses the Crowdin platform to translate text, please do not directly modify the toml files other than zh-CN.toml.

Introduction

  1. You can replace the text in the new feature directly using the configuration in /resource/l10n/zh-CN.toml
  2. If there is new text in the new feature, pull the new text into zh-CN.toml

TIP

If you don't understand Chinese at all, you can translate the text using Google or DeepL Translate, and specify in the Pull Request, we will revise the Chinese translation after you add the English translation

  1. After the Pull Request has been merged, you can go to Crowdin Platform to contribute translations of the new text
- + diff --git a/en_US/developer/theme.html b/en_US/developer/theme.html index d94a910a..7b200a73 100644 --- a/en_US/developer/theme.html +++ b/en_US/developer/theme.html @@ -14,7 +14,7 @@

Nezha Theme Development Environment

Nezha Monitoring provides a theme development environment that you can use to create new Nezha Monitoring themes

WARNING

Please note: This development environment only supports dashboard v0.13.16 and newer versions.

How to use

  1. Clone this repository to local
  2. Modify the Oauth2 configuration in data/config.yaml(The callback connection can be filled with http://localhost
  3. Run docker-compose up
  4. Start development
  5. Once the theme has been created, you can place theme-custom in /opt/nezha/dashboard/theme-custom on the server

FAQ

  • If you can't use port 80, change the configuration in docker-compose.yaml.
- + diff --git a/en_US/guide/agent.html b/en_US/guide/agent.html index 9a49bf66..e7b7b8b4 100644 --- a/en_US/guide/agent.html +++ b/en_US/guide/agent.html @@ -36,7 +36,7 @@ start }

Customize Agent

Customize the NIC and hard drive partitions to be monitored

Other Flags

Run ./nezha-agent --help to view supported flags,if you are already using the one-click script, you can edit /etc/systemd/system/nezha-agent.service,at the end of this line ExecStart= add:

- + diff --git a/en_US/guide/agentq.html b/en_US/guide/agentq.html index 3e223186..c28a3aaa 100644 --- a/en_US/guide/agentq.html +++ b/en_US/guide/agentq.html @@ -14,7 +14,7 @@
- + diff --git a/en_US/guide/api.html b/en_US/guide/api.html index 72767ce8..2c3fcb5f 100644 --- a/en_US/guide/api.html +++ b/en_US/guide/api.html @@ -126,7 +126,7 @@ Authorization: Token ] } - + diff --git a/en_US/guide/dashboard.html b/en_US/guide/dashboard.html index cf43749b..5b1fdc0e 100644 --- a/en_US/guide/dashboard.html +++ b/en_US/guide/dashboard.html @@ -36,7 +36,7 @@ proxy /terminal/* http://ip:8008 { websocket }

Configuring SSL in the aaPanel

First, temporarily disable the reverse proxy
As with other websites, you can choose to automatically apply for a Let´s Encrypt certificate or manually configure an existing certificate by going to "SSL" in the site settings
After you finish setting up SSL, you need to go back to https://github.com/settings/developers and edit the authentication application you created before, change all the domain names in the "Homepage URL" and "Authorization callback URL" you filled in before from http to https, such as: "https://cdn.example.com" and "https://cdn.example.com/oauth2/callback", If you don't change these links, you may not be able to log into the admin panel

- + diff --git a/en_US/guide/dashboardq.html b/en_US/guide/dashboardq.html index 254e2c26..6f4f9e8f 100644 --- a/en_US/guide/dashboardq.html +++ b/en_US/guide/dashboardq.html @@ -14,7 +14,7 @@
- + diff --git a/en_US/guide/loginq.html b/en_US/guide/loginq.html index 06b3c4ae..e7830df2 100644 --- a/en_US/guide/loginq.html +++ b/en_US/guide/loginq.html @@ -14,7 +14,7 @@
- + diff --git a/en_US/guide/notifications.html b/en_US/guide/notifications.html index 195ad2cc..c7c66b55 100644 --- a/en_US/guide/notifications.html +++ b/en_US/guide/notifications.html @@ -14,7 +14,7 @@

Nezha Monitoring supports monitoring of server load, CPU, memory, hard disk, bandwidth, data transfer, monthly data transfer, number of processes, number of connections, and sends alarm notifications when one of these items reaches a user-set limit.


Flexible notification methods

#NEZHA# is the panel message placeholder, the panel will automatically replace the placeholder with the actual message when it triggers the notification

The content of Body is in JSON format:When the request type is FORM,the value is in the form of key:valuevalue can contain placeholders that will be automatically replaced when notified. When the request type is JSON It will only do string substitution and submit to the URL directly.

Placeholders can also be placed inside the URL, and it will perform a simple string substitution when requested.

Refer to the example below, it is very flexible.

  • Telegram Example, contributed by @haitau

    • Name:Telegram Robot message notification
    • URL:https://api.telegram.org/botXXXXXX/sendMessage?chat_id=YYYYYY&text=#NEZHA#
    • Request method: GET
    • Request type: default
    • Body: null
    • URL Parameter acquisition instructions:The 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.


Description of notification rules

Basic Rules

  • Type: one or more types can be selected, such as in a rule to select more than one type, you need to meet all the selected types at the same time to trigger the notification (see the example later)
    • cpumemoryswapdisk
    • net_in_speed Inbound speed, net_out_speed Outbound speed, net_all_speed Inbound + Outbound speed, transfer_in Inbound Transfer, transfer_out Outbound Transfer, transfer_all Total Transfer
    • offline Offline monitoring
    • load1load5load15 Load
    • process_count Number of processes Currently, counting the number of processes takes up too many resources and is not supported at the moment
    • tcp_conn_countudp_conn_count Number of connections
  • duration:Lasting for a few seconds, the notification will only be triggered when the sampling record reaches 30% or more within a few seconds
  • min/max
    • Transfer, network speed, and other values of the same type. Unit is byte (1KB=1024B,1MB = 1024*1024B)
    • Memory, hard disk, CPU. units are usage percentages
    • No setup required for offline monitoring
  • cover [{"type":"offline","duration":10, "cover":0, "ignore":{"5": true}}]
    • 0 Cover all, use ignore to ignore specific servers
    • 1 Ignore all, use ignore to monitoring specific servers
      For example: [{"type":"offline","duration":10, "cover":0, "ignore":{"5": true}}]
  • ignore: Select to ignore specific servers, use with cover with server id and boolean, e.g.: {"1": true, "2":false}

Complete examples:

TIP

Add an offline notification

  • Name: Offline notification
  • Rules: [{"Type":"offline","Duration":10}]
  • Enable: √

TIP

Add an notification when the CPU exceeds 50% for 10s but the memory usage is below 20% for 20s

  • Name CPU and RAM
  • Rules: [{"Type":"cpu","Min":0,"Max":50,"Duration":10},{"Type":"memory","Min":20,"Max":0,"Duration":20}]
  • Enable: √

Special: Any-cycle transfer notification

Can be used as monthly transfer notificatin

  • type

    • transfer_in_cycle Inbound transfer during the cycle
    • transfer_out_cycle Outbound transfer during the cycle
    • transfer_all_cycle The sum of inbound and outbound transfer during the cycle
  • cycle_start Start date of the statistical cycle (can be the start date of your server's billing cycle), the time format is RFC3339, for example, the format in Beijing time zone is 2022-01-11T08:00:00.00+08:00

  • cycle_interval Interval time cycle (For example, if the cycle is in days and the value is 7, it means that the statistics are counted every 7 days)

  • cycle_unit Statistics cycle unit, default hour, optional (hour, day, week, month, year)

  • min/max, cover, ignore Please refer to the basic rules to configure

Example: The server with ID 3 (defined in the ignore) is counted on the 15th of each month, and a notification is triggered when the monthly outbound traffic reaches 1TB during the cycle. [{"type":"transfer_out_cycle","max":1000000000000,"cycle_start":"2022-01-11T08:00:00.00+08:00","cycle_interval":1,"cycle_unit":"month","cover":1,"ignore":{"3":true}}]

- + diff --git a/en_US/guide/q2.html b/en_US/guide/q2.html index eeb0c6e1..0b902271 100644 --- a/en_US/guide/q2.html +++ b/en_US/guide/q2.html @@ -14,7 +14,7 @@

Let the Agent start/on-line, and the self-test process of the problem

  1. Run //opt/nezha/agent/nezha-agent -s IP/Domin(Panel IP or Domain not connected to CDN):port(Panel RPC port) -p secret(Agent Secret) -d Check the logs to see if the timeout is due to a DNS problem or poor network
  2. nc -v domain/IP port(Panel RPC port) or telnet domain/IP port(Panel RPC port) to check if it' s a network problem, check the inbound and outbound firewall between the local machine and the panel server, if you can' t determine the problem you can check it with the port checking tool provided by https://port.ping.pe/
  3. If the above steps work and the Agent is online, please try to turn off SELinux on the panel server. How to close SELinux?
- + diff --git a/en_US/guide/q3.html b/en_US/guide/q3.html index 25045474..b4853a60 100644 --- a/en_US/guide/q3.html +++ b/en_US/guide/q3.html @@ -38,7 +38,7 @@ } }

Dashboard Configuration

Agent Configuration

Enable Cloudflare CDN (optional)

According to Cloudflare gRPC requirements: gRPC services must listen on port 443 and must support TLS and HTTP/2. So if you need to enable CDN, you must use port 443 when configuring Nginx or Caddy reverse proxy gRPC and configure the certificate (Caddy will automatically apply and configure the certificate).

- + diff --git a/en_US/guide/q4.html b/en_US/guide/q4.html index 766cd00a..825f4d6c 100644 --- a/en_US/guide/q4.html +++ b/en_US/guide/q4.html @@ -14,7 +14,7 @@

Real-time channel disconnection/online terminal connection failure

  • If you are using a CDN, please make sure that the CDN provider provides WebSocket service and that WebSocket is enabled
  • Confirm that you are using a reverse proxy requires special configuration of the WebSocket for the /ws and /terminal paths, you can click here to see the reverse proxy configuration
- + diff --git a/en_US/guide/q5.html b/en_US/guide/q5.html index 4a0e2bb3..8f5494d0 100644 --- a/en_US/guide/q5.html +++ b/en_US/guide/q5.html @@ -14,7 +14,7 @@
- + diff --git a/en_US/guide/servers.html b/en_US/guide/servers.html index 22b2bde2..8ca9c411 100644 --- a/en_US/guide/servers.html +++ b/en_US/guide/servers.html @@ -14,7 +14,7 @@

Servers

Introduction

The Servers area is responsible for managing the Agent, the most basic area in Nezha Monitoring, and the basis for other functions.

Add a server

The first step is to add a servers, which can be customized with names, groups, display index and notes.
Servers in the same group will be displayed in groups in supported themes, and notes will only be displayed in the admin panel, no need to worry about leaking information.

Install Agent

Please refer to the previous article: Install Agent
We recommend using one-click installation, that is, after configuring the communication domain name, click the button on the column one-click installation and copy it to the monitored servers for installation.

Forced Updates

The flags related to the update of the Agent are: --disable-auto-update and --disable-force-update. Please refer to Customize Agent
By default, the Agent is updated automatically, but when the user turns off automatic updates, the specified servers can also be selected for forced updates.
This feature does not take effect when -disable-force-update is turned on.

Data List

  • Version number: Record the current version of Agent
  • Secret: Used when configuring the Agent
  • One-Click Installation: A more convenient way to install Agent
  • Manage: WebShell on the left, Edit in the middle, Delete on the right

Webshell

This feature does not take effect when disable-command-execute is turned on.
Both Linux and Windows are available and can be pasted using Ctrl+Shift+V.
For connection failure, please refer to Real-time channel disconnection/online terminal connection failure.
Note that in theWebShell function, the Agent also connects to the Domain names for public access via WebSocket, not via grpc.

- + diff --git a/en_US/guide/services.html b/en_US/guide/services.html index 5dd72692..bbc2a1bb 100644 --- a/en_US/guide/services.html +++ b/en_US/guide/services.html @@ -14,7 +14,7 @@

Service area is a function setting area for setting up Agents to monitor external websites or servers
The monitoring results can be viewed on the "Services" page in the home page

How to use

To add a new monitor, you can go to the "Services" page in the administration panel and click "Add Service Monitor".

To add a service monitor, you need to complete the following settings:

  • Name - Customize a name

  • Type - Select a monitoring type. Nezha currently supports three monitoring types: "HTTP-GET", "ICMP-Ping" and "TCP-Ping".

  • Target - Depending on the type you choose, the target is set in different ways

  • HTTP-GET: Selecting this type, you should enter a URL as the target, the URL should be added with http:// or https:// If your target URL is https://, it will also monitor the SSL certificate of that URL and trigger a notification when the SSL certificate expires or changes.
    For example: https://example.com
  • ICMP-Ping: When selecting this type, you should enter a domain name or IP without a port number
    For example: 1.1.1.1 or example.com
  • TCP-Ping: When selecting this type, you should enter a domain name or IP and include the port number
    For example: 1.1.1.1:80 or example.com:22
  • Interval: Sets the time interval in seconds between each time Agent sends requests to the target

  • Coverage: Select a rule to determine which Agents to use to send requests to the target

  • Specific Servers: Use with coverage to select the Agent to be excluded from the rule

  • Notification Group: Select the notification method you have set up on the "Notification" page. Click here for more information

  • Enable Failure Notification: Select whether to receive target failure notifications as needed, default is inactive

After setting, click "Add" and you are done.
Wait for a moment to go to the "Services" page on the home page to view the monitoring results

Management Monitor

To manage existing service monitoring, you can go to the "Services" page in the administration panel
Select a monitoring configuration and click the icon on the right to edit or delete it

- + diff --git a/en_US/guide/settings.html b/en_US/guide/settings.html index 589ed8e4..1e4300d3 100644 --- a/en_US/guide/settings.html +++ b/en_US/guide/settings.html @@ -57,7 +57,7 @@ avatar.style} </style>

Access Password

If you don't want to show your homepage directly, you can set a access password here
After setting the password, you need to enter the password to access the homepage

CDN Bypassed Domain/IP

This setting is a prerequisite for using the one-click script to install the Agent, see here for details

IP Change Alert

If you want to be notified when a server's ip changes, you can set it up here

Coverage

Select a rule here to determine which servers need to be monitored, and you can choose according to your needs

Specific Servers

In conjunction with the coverage settings, set the exclusions for the selected rule here

Send Notification To Specific Notification Group

Select the notification method, please set the notification method in the "Notifications" page

WARNING

When the settings are completed, the notification takes effect when enabled is activated


WARNING

IP Change Alert does not show ip by default, if you don't want to hide it, you can activate "Do NOT desensitize Server IP In Notification Messages"

- + diff --git a/en_US/guide/tasks.html b/en_US/guide/tasks.html index 0913f368..a8f065a3 100644 --- a/en_US/guide/tasks.html +++ b/en_US/guide/tasks.html @@ -14,7 +14,7 @@

In the task area, you can set up scheduled tasks, periodic tasks, and multi-server batch execution tasks

Nezha monitoring supports pushing commands to the Agent for execution, so this feature is very flexible and can be used to periodically back up the server in conjunction with restic, rclone, or periodically restart a service to reset the network connection.

How to use

Go to the "Tasks" page of the admin panel and click "Add Scheduled Task"
To add a scheduled task you need to make the following settings:

  • Name - Customize a task name

  • Cron Expression - Set schedule time, the Cron Expression is like:: * * * * * * sec min hour day month week, see details in CRON Expression Format
    For example: 0 0 3 * * * is Every day at 3 o'clock

  • Command - Just like writing shell/bat scripts, but line wrap is not recommended, Multiple Commands should be connected with &&/&
    For example, to execute a periodic reboot command, you can type reboot here

  • Coverage and Specific Servers - Similar to the settings on the Services page, select rules to determine which Agents need to execute scheduled tasks

  • Notification Group - Select the notification method you have set up on the "Notification" page. Click here for more information

  • Send Success Notification - When this item is activated, a message notification will be triggered when the task is successfully executed

Manage tasks

To manage existing scheduled tasks, you can go to the "Tasks" page in the administration panel
Select a task configuration and the three icons on the right, which are:

  • Execute Now - When clicked, the scheduled time will be ignored and the task will be executed immediately
  • Edit - Click to modify the task configuration
  • Delete - Delete this scheduled task

FAQ

  1. Command not found
    Command not found may cause by missing PATH environment variable, for Linux Server, you may try adding source ~/.bashrc at beginning of your command or execute by absolute path.
- + diff --git a/en_US/index.html b/en_US/index.html index 9081476c..cf10fd34 100644 --- a/en_US/index.html +++ b/en_US/index.html @@ -14,7 +14,7 @@

Nezha Monitoring

A open source, lightweight server and website monitoring and O&M tool

One-Click Installation

Support use one-click script to install Dashboard and Agent services; Linux, WIndows, MacOS, OpenWRT and other mainstream systems are supported

Monitoring at any time

Support monitoring the system status of multiple servers at the same time, support monitoring the status of web pages, ports, SSL certificates; support notifications in case of failure, out of data and other status. Support multiple notification methods (Telegram, email, WeChat, etc.)

Lightweight O&M tool

Support WebSSH, support cyclic monitoring data, support setting scheduled tasks and running command on multiple servers

Copyright © 2022-present Nezhahq

- + diff --git a/guide/agent.html b/guide/agent.html index 4353192b..2e4d63b8 100644 --- a/guide/agent.html +++ b/guide/agent.html @@ -37,7 +37,7 @@ start }

自定义Agent监控项目

自定义监控的网卡和硬盘分区

其他运行参数

通过执行 ./nezha-agent --help 查看支持的参数,如果你使用了一键脚本安装Agent,可以编辑 /etc/systemd/system/nezha-agent.service,在 ExecStart= 这一行的末尾加上以下参数

FAQ

Agent有Docker版吗?

Agent目前没有推出Docker镜像。
Agent和Dashboard思路相反,Dashboard要尽可能不影响宿主机工作,但Agent则需要插入宿主机中执行监控和其他命令。
将Agent放入容器中确实可以继续执行监控任务,但WebShell等功能无法正常运行,因此不提供Docker镜像。

- + diff --git a/guide/agentq.html b/guide/agentq.html index 372e3c88..29f6e71d 100644 --- a/guide/agentq.html +++ b/guide/agentq.html @@ -14,7 +14,7 @@

Agent相关

后台显示的IP和Agent实际IP不一致?

请查看Dashboard相关-后台显示的IP和Agent实际IP不一致?
在此不再赘述。

一键脚本安装出错

curl: Failed to connect to raw.githubusercontent.com......

多出现在国内主机中,目前一键脚本只从github直接获取安装脚本,您可以多尝试几次,或者手动安装Agent,别忘了使用镜像。

- + diff --git a/guide/api.html b/guide/api.html index 17d4cdb1..8dcc245f 100644 --- a/guide/api.html +++ b/guide/api.html @@ -126,7 +126,7 @@ Authorization: Token ] } - + diff --git a/guide/dashboard.html b/guide/dashboard.html index 6bab52b2..7c3c954c 100644 --- a/guide/dashboard.html +++ b/guide/dashboard.html @@ -37,7 +37,7 @@ proxy /terminal/* http://ip:8008 { websocket }

在宝塔面板中配置SSL

首先,先暂时关闭反向代理
正如在其他网站中配置SSL证书一样,进入站点设置中的“SSL”,你可以选择自动申请 Let´s Encrypt 证书或手动配置已有的证书
完成SSL的设置后,你需要回到 https://github.com/settings/developers ,编辑之前创建的验证应用程序,将之前我们填入的"Homepage URL"和"Authorization callback URL"中的域名全部从http改为https,如:"https://cdn.example.com" 和 "https://cdn.example.com/oauth2/callback" ,不更改此项可能会导致你无法登陆面板后台

FAQ

我对面板提供的数据修改/增加功能不满意,我想要自己修改/增加数据怎么办?

常见于批量插入Agent等需求中,可以直接修改数据库。
请注意,数据库中并非什么都可以修改,错误的修改会导致数据混乱无法启动Dashboard,请勿随意修改数据库!
再重复一遍,请勿随意修改数据库!
请先停止面板容器,数据库是sqlite3,位于/opt/nezha/dashboard/data/sqlite.db,请备份后操作

数据库中各表/列是什么意思?

文档不提供数据库解释,有能力修改数据库的稍加分析应该就足以看懂。

- + diff --git a/guide/dashboardq.html b/guide/dashboardq.html index 6b79499c..68f6bed3 100644 --- a/guide/dashboardq.html +++ b/guide/dashboardq.html @@ -7,7 +7,7 @@ - + @@ -16,8 +16,11 @@

Dashboard相关

实时通道断开/在线终端连接失败

请查看常见问题-实时通道断开/在线终端连接失败
在此不再赘述。

后台显示的IP和Agent实际IP不一致?

首先解释后台显示的IP是怎么来的,Agent会每隔一段时间请求一遍IP-API,获取到IP信息后进行上报,目前使用的IP-API可在此查看myip.go
如您认为后台显示的IP和服务商提供给您的IP不一致,最大的可能是服务商给您的是入口,但Agent测试的是您的出口。这个问题也可能会出现在多线主机中。
举个简单也十分常见的例子,服务商给您提供的是一台高防主机,为了同时满足高防和低网络中断率的目标,提供给您的IP可能是经过映射后的高防IP而并非您主机的真实出口IP。
您也可以使用以下命令在Agent部署主机中进行测试。

curl api.myip.la
 curl ip.sb
 curl ip-api.com
-

查看密码忘记\删除查看密码

请查看或编辑/opt/nezha/dashboard/data/config.yaml文件。
密码位于site-viewpassword。

- +

查看密码忘记\删除查看密码

请查看或编辑/opt/nezha/dashboard/data/config.yaml文件。
密码位于site-viewpassword。

面板安装失败: iptables ......

首先尝试重启docker再操作

systemctl status docker
+systemctl restart docker
+systemctl status docker
+

重启后尝试重新安装面板。
若依然出现iptables...等错误,则考虑是否直接关闭iptables甚至移除iptables。
这个问题也可能由内核引起,也可以尝试更换官方内核。

+ diff --git a/guide/loginq.html b/guide/loginq.html index 1816bb92..265dbfb9 100644 --- a/guide/loginq.html +++ b/guide/loginq.html @@ -14,7 +14,7 @@
- + diff --git a/guide/notifications.html b/guide/notifications.html index c366b029..4443f071 100644 --- a/guide/notifications.html +++ b/guide/notifications.html @@ -14,7 +14,7 @@

哪吒监控支持对服务器的负载、CPU、内存、硬盘、带宽、流量、月流量、进程数、连接数进行监控,并在其中某项达到用户设定值时发送报警通知

灵活的通知方式

#NEZHA# 是面板消息占位符,面板触发通知时会自动用实际消息替换占位符

Body 内容是JSON 格式的:当请求类型为 FORM 时,值为 key:value 的形式,value 里面可放置占位符,通知时会自动替换。当请求类型为 JSON 时 只会简单进行字符串替换后直接提交到URL

URL 里面也可放置占位符,请求时会进行简单的字符串替换。

你可以参考以下的通知方式示例,也可以根据自己的需求灵活设置推送方式

  • server酱示例

  • wxpusher 示例,需要关注你的应用

  • Telegram 示例 @haitau 贡献

    • 名称:telegram 机器人消息通知
    • URL:https://api.telegram.org/botXXXXXX/sendMessage?chat_id=YYYYYY&text=#NEZHA#
    • 请求方式: GET
    • 请求类型: 默认
    • Body: 空
    • URL 参数获取说明:botXXXXXX 中的 XXXXXX 是在 telegram 中关注官方 @Botfather ,输入/newbot ,创建新的机器人(bot)时,会提供的 token(在提示 Use this token to access the HTTP API:后面一行)这里 'bot' 三个字母不可少。创建 bot 后,需要先在 telegram 中与 BOT 进行对话(随便发个消息),然后才可用 API 发送消息。YYYYYY 是 telegram 用户的数字 ID。与机器人@userinfobot 对话可获得。


报警规则说明

基本规则

  • type:可选取一个或多个类型,如在一个规则中选择了多个类型,需要同时满足所有选择的类型才会触发通知(可参考后面的示例)
    • cpumemoryswapdisk
    • net_in_speed 入站网速、net_out_speed 出站网速、net_all_speed 双向网速、transfer_in 入站流量、transfer_out 出站流量、transfer_all 双向流量
    • offline 离线监控
    • load1load5load15 负载
    • process_count 进程数 目前取线程数占用资源太多,暂时不支持
    • tcp_conn_countudp_conn_count 连接数
  • duration:持续数秒,数秒内采样记录 30% 以上触发阈值才会报警(防数据插针)
  • min 或 max:
    • 流量、网速类数值 为字节(1KB=1024B,1MB = 1024*1024B)
    • 内存、硬盘、CPU 以占用百分比计数
    • 离线监控无需设置此项
  • cover:
    • 0 监控所有,通过 ignore 忽略特定服务器
    • 1 忽略所有,通过 ignore 监控特定服务器
      例如:[{"type":"offline","duration":10, "cover":0, "ignore":{"5": true}}]
  • ignore: 选择忽略特定服务器,搭配 cover 使用,内容为服务器id和布尔值,例如:{"1": true, "2":false}

完整示例:

TIP

添加一个离线报警

  • 名称:离线通知
  • 规则:[{"Type":"offline","Duration":10}]
  • 启用:√

TIP

添加一个监控 CPU 持续 10s 超过 50% 内存持续 20s 占用低于 20% 的报警

  • 名称:CPU+内存
  • 规则:[{"Type":"cpu","Min":0,"Max":50,"Duration":10},{"Type":"memory","Min":20,"Max":0,"Duration":20}]
  • 启用:√

特殊:任意周期流量报警

可以用作月流量报警

  • type:
    • transfer_in_cycle 周期内的入站流量
    • transfer_out_cycle 周期内的出站流量
    • transfer_all_cycle 周期内双向流量和
  • cycle_start: 统计周期开始日期(可以是你机器计费周期的开始日期),时间格式为RFC3339,例如北京时间为2022-01-11T08:00:00.00+08:00
  • cycle_interval:每隔多少个周期单位(例如,周期单位为天,该值为 7,则代表每隔 7 天统计一次)
  • cycle_unit 统计周期单位,默认hour,可选(hour, day, week, month, year)
  • min/max、cover、ignore 参考基本规则配置

示例: ID 为 3 的服务器(ignore 里面定义),以每月 15 号为统计周期,周期内统计的出站月流量达到 1TB 时报警 [{"type":"transfer_out_cycle","max":1000000000000,"cycle_start":"2022-01-11T08:00:00.00+08:00","cycle_interval":1,"cycle_unit":"month","cover":1,"ignore":{"3":true}}]

- + diff --git a/guide/q1.html b/guide/q1.html index bde83b59..b20d8bca 100644 --- a/guide/q1.html +++ b/guide/q1.html @@ -60,7 +60,7 @@ ufw allow proto tcp from serverIp to any port 443443 -j DROP iptables -I INPUT -s serverIp -p tcp --dport 443 -j ACCEPT - + diff --git a/guide/q2.html b/guide/q2.html index 262b5ec5..af6bdd0b 100644 --- a/guide/q2.html +++ b/guide/q2.html @@ -14,7 +14,7 @@

Agent 启动/上线 问题自检流程

  1. 直接执行 /opt/nezha/agent/nezha-agent -s 面板IP或非CDN域名:面板RPC端口 -p Agent密钥 -d 查看日志是否是因为 DNS、网络不佳导致超时(timeout)
  2. nc -v 域名/IP 面板RPC端口 或者 telnet 域名/IP 面板RPC端口 来检验是否是网络问题,检查本机与面板服务器的出入站防火墙,如果无法判断问题可借助 https://port.ping.pe/ 提供的端口检查工具进行检测。
  3. 如果上面步骤检测正常,Agent 正常上线,尝试关闭 SELinux,如何关闭 SELinux?
- + diff --git a/guide/q3.html b/guide/q3.html index c0979e4c..50d2de27 100644 --- a/guide/q3.html +++ b/guide/q3.html @@ -38,7 +38,7 @@ } }

Dashboard 面板端配置

Agent 端配置

开启 Cloudflare CDN(可选)

根据 Cloudflare gRPC 的要求:gRPC 服务必须侦听 443 端口 且必须支持 TLS 和 HTTP/2。 所以如果需要开启 CDN,必须在配置 Nginx 或者 Caddy 反向代理 gRPC 时使用 443 端口,并配置证书(Caddy 会自动申请并配置证书)。

- + diff --git a/guide/q4.html b/guide/q4.html index 56d2b127..027c4189 100644 --- a/guide/q4.html +++ b/guide/q4.html @@ -14,7 +14,7 @@

实时通道断开/在线终端连接失败

  • 如果你使用了CDN,请确认CDN服务商提供WebSocket服务,并且已开启WebSocket
  • 确认你的反代规则中针对 /ws,/terminal 路径的 WebSocket 进行了特别配置,你可以 点击这里 查看反向代理配置
- + diff --git a/guide/q5.html b/guide/q5.html index 35f22976..41c3d7b7 100644 --- a/guide/q5.html +++ b/guide/q5.html @@ -14,7 +14,7 @@
- + diff --git a/guide/servers.html b/guide/servers.html index 6065b093..bd89d29b 100644 --- a/guide/servers.html +++ b/guide/servers.html @@ -14,7 +14,7 @@

主机

介绍

主机区域负责管理Agent,是哪吒探针中最基础的区域,也是其他功能的基础。

添加服务器

第一步是添加主机,可以自定义名称、分组、排序和备注。
拥有相同分组的主机会在受支持的主题中划分到一起进行显示,备注仅会在后台显示,无需担心泄露信息。

安装Agent

请参考前文安装Agent
推荐使用一键安装,即配置好参数后,点击主机一键安装列上的按钮,复制到相应主机进行安装。

强制更新

Agent更新相关的参数是 自定义agent监控项目 中的 --disable-auto-update--disable-force-update
默认情况下,Agent会自动更新,无需干预。但当用户关闭自动更新后,也可以选中指定主机进行强制更新。
disable-force-update开启时此功能不生效。

数据列

  • 版本号: 记录Agent当前版本
  • 密钥: 即secret\key,配置Agent时会用到
  • 一键安装: 较为便捷的Agent安装方式
  • 管理: 左为WebShell,中为编辑,右为删除

在线终端

即WebShell,disable-command-execute 开启时此功能不生效。
Linux和Windows均可用,可使用Ctrl+Shift+V粘贴。
连接失败请参考实时通道断开/在线终端连接失败
注意在线终端功能中,Agent也是通过WebSocket连接到公开访问域名,而非通过grpc交互。

- + diff --git a/guide/services.html b/guide/services.html index 284af327..dc98614e 100644 --- a/guide/services.html +++ b/guide/services.html @@ -14,7 +14,7 @@

服务区域是设置 Agent 监控外部网站或服务器的功能设置区
设置好的服务监控可以在主页中的 “服务” 页查看监控结果

使用方法

如需新增一个监控,可以进入管理面板中的 “服务” 页,点击“添加监控”

新增一个服务监控,你需要设置以下参数:

  • 名称 - 自定义一个名称

  • 类型 - 选择一个监控类型,目前哪吒监控支持三种监控类型,分别是 “HTTP-GET”、“ICMP-Ping” 和 “TCP-Ping”

  • 目标 - 根据你选择的类型不同,目标的设置方法也不同

  • HTTP-GET: 选择此类型,你应该输入一个URL作为目标,URL需添加 http://https:// 如果你的目标URL是 https:// ,将会同时监控该URL的SSL证书,当SSL证书到期或发生变更,会触发提醒
    例如: https://example.com
  • ICMP-Ping: 选择此类型时,你应该输入一个域名或IP,不含端口号
    例如:1.1.1.1 或 example.com
  • TCP-Ping: 选择此类型时,你应该输入一个域名或IP并包含端口号
    例如:1.1.1.1:80 或 example.com:22
  • 请求间隔: 设定 Agent 每次请求目标的时间间隔,以秒为单位

  • 覆盖范围: 选择一条规则来确定要使用哪些 Agent 来请求目标

  • 特定服务器: 配合覆盖范围使用,选择规则内需要排除的 Agent

  • 通知方式组: 选择你已经在 “报警” 页设置好的通知方式,点击这里了解详情

  • 启用故障通知: 根据需要选择是否接收目标故障通知,默认为不勾选

设置完成后,点击 “添加” 即可
稍等片刻前往主页的 “服务” 页,查看监控结果

管理监控

如需对已有的服务监控进行管理,可以前往管理面板中的 “服务” 页
选择一条监控配置,点击右侧的图标进行编辑或删除

- + diff --git a/guide/settings.html b/guide/settings.html index 9e5efa7a..5044ec5e 100644 --- a/guide/settings.html +++ b/guide/settings.html @@ -57,7 +57,7 @@ avatar.style} </style>

前台查看密码

如果你不想直接展示你的主页,你可以在这里设置一个查看密码
设置密码后,需要输入密码才可以访问主页

未接入CDN的面板服务器域名/IP

此项设置是使用一键脚本安装 Agent 的前提,详情请查看这里

IP 变更提醒

如果你希望当某个服务器的ip发生变更时收到通知,可以在这里进行设置

覆盖范围

在这里选择一条规则,来确定需要监控哪些服务器,可以根据自己的需求进行选择

特定服务器

配合覆盖范围的设置,在这里设置选定规则的排除项

提醒发送至指定的通知分组

选择通知方式,通知方式请提前在 “报警” 页内设置

WARNING

设置完成后,勾选启用时,通知生效


WARNING

IP变更通知默认打码,如果你不希望打码,可以勾选 “通知信息IP不打码”

- + diff --git a/guide/tasks.html b/guide/tasks.html index 32449dde..0572fbaa 100644 --- a/guide/tasks.html +++ b/guide/tasks.html @@ -14,7 +14,7 @@

在任务区域中,可以设置计划任务,定期任务,多服务器批量执行任务

哪吒监控支持推送命令到 Agent 执行,因此此功能非常灵活,使用此功能可以定期结合 restic、rclone 给服务器备份,或者定期重启某项服务来重置网络连接

使用方法

进入管理面板的 “任务” 页,点击 “添加计划任务”
添加计划任务你需要填入以下参数:

  • 名称 - 自定义一个任务名称

  • 计划 - 设置计划时间,时间的格式为: * * * * * * 分别对应 秒 分 时 天 月 星期,详情见计划表达式格式
    如:0 0 3 * * * 对应为 每天3点

  • 命令 - 你可以在这里设置需要执行的命令,就像写 Shell/Bat 脚本一样,但是不推荐换行,多个命令使用 &&/& 连接
    例如执行定期重启命令,可以在这里输入 reboot

  • 覆盖范围特定服务器 - 跟“服务”页中的设置类似,选择规则来确定哪些 Agent 执行计划任务

  • 通知方式组 - 选择你已经在 “报警” 页设置好的通知方式,点击这里了解详情

  • 推送成功的消息 - 勾选此项,任务执行成功后会触发消息通知

管理任务

如需对已有的计划任务进行管理,可以前往管理面板中的 “任务” 页
选择一条任务配置,右侧的三个图标,分别是:

  • 立即执行 - 点击后将忽略计划时间,立刻执行任务
  • 编辑 - 点击可以修改任务配置
  • 删除 - 删除这条计划任务

常见问题

  1. xxx 命令找不到
    如果运行失败,提示 xxx 命令找不到,可能是 PATH 环境变量的问题,Linux 服务器在命令开头加入 source ~/.bashrc 或者使用绝对路径执行
- + diff --git a/hashmap.json b/hashmap.json index e6c98546..6bd748e6 100644 --- a/hashmap.json +++ b/hashmap.json @@ -1 +1 @@ -{"developer_index.md":"ee592849","developer_l10n.md":"5bac23a7","developer_theme.md":"0248c1c7","en_us_developer_index.md":"b71cc532","en_us_developer_l10n.md":"9753d10a","en_us_developer_theme.md":"9b8e6231","en_us_guide_agent.md":"076cfc62","en_us_guide_agentq.md":"fc681108","en_us_guide_api.md":"d2e082d0","en_us_guide_dashboard.md":"1b96296b","en_us_guide_dashboardq.md":"12f00603","en_us_guide_loginq.md":"fccba1cc","en_us_guide_notifications.md":"4edbd002","en_us_guide_q2.md":"a230a9b9","en_us_guide_q3.md":"8d0aa8e5","en_us_guide_q4.md":"62e807a2","en_us_guide_q5.md":"0a1d56d0","en_us_guide_servers.md":"2fa6797d","en_us_guide_services.md":"06fcb74e","en_us_guide_settings.md":"252f768c","en_us_guide_tasks.md":"5a8f357d","en_us_index.md":"c8719a21","guide_agent.md":"f81e9d13","guide_agentq.md":"8f3e39d8","guide_api.md":"00182bb5","guide_dashboard.md":"18844453","guide_dashboardq.md":"84fd553d","guide_loginq.md":"d018cda9","guide_notifications.md":"ac3a804b","guide_q1.md":"60864821","guide_q2.md":"9519d1ef","guide_q3.md":"278a14da","guide_q4.md":"49995c8a","guide_q5.md":"ef18e2c9","guide_servers.md":"f21f9777","guide_services.md":"c286c180","guide_settings.md":"978f81fd","guide_tasks.md":"fac6c260","index.md":"2c78f74e"} +{"developer_index.md":"ee592849","developer_l10n.md":"5bac23a7","developer_theme.md":"0248c1c7","en_us_developer_index.md":"b71cc532","en_us_developer_l10n.md":"9753d10a","en_us_developer_theme.md":"9b8e6231","en_us_guide_agent.md":"076cfc62","en_us_guide_agentq.md":"fc681108","en_us_guide_api.md":"d2e082d0","en_us_guide_dashboard.md":"1b96296b","en_us_guide_dashboardq.md":"12f00603","en_us_guide_loginq.md":"fccba1cc","en_us_guide_notifications.md":"4edbd002","en_us_guide_q2.md":"a230a9b9","en_us_guide_q3.md":"8d0aa8e5","en_us_guide_q4.md":"62e807a2","en_us_guide_q5.md":"0a1d56d0","en_us_guide_servers.md":"2fa6797d","en_us_guide_services.md":"06fcb74e","en_us_guide_settings.md":"252f768c","en_us_guide_tasks.md":"5a8f357d","en_us_index.md":"c8719a21","guide_agent.md":"f81e9d13","guide_agentq.md":"8f3e39d8","guide_api.md":"00182bb5","guide_dashboard.md":"18844453","guide_dashboardq.md":"13446037","guide_loginq.md":"d018cda9","guide_notifications.md":"ac3a804b","guide_q1.md":"60864821","guide_q2.md":"9519d1ef","guide_q3.md":"278a14da","guide_q4.md":"49995c8a","guide_q5.md":"ef18e2c9","guide_servers.md":"f21f9777","guide_services.md":"c286c180","guide_settings.md":"978f81fd","guide_tasks.md":"fac6c260","index.md":"2c78f74e"} diff --git a/index.html b/index.html index 32dc598b..4e22381f 100644 --- a/index.html +++ b/index.html @@ -14,7 +14,7 @@

哪吒监控

一个开源、轻量的服务器和网站监控、运维工具

一键安装

支持一键脚本安装面板和监控服务,轻松使用;Linux、WIndows、MacOS、OpenWRT等主流系统均受支持

随时监控

支持同时监控多个服务器的系统状态,支持监控网页、端口、SSL证书状态;支持故障、流量等状态报警,支持多种通知方式(Telegram、邮件、微信等)

轻量运维

支持在线SSH,支持流量循环监控,支持设置定时任务、服务器批量执行任务

Copyright © 2022-present Nezhahq

- +