From 72c1d27d114faadea7d9d03a131a2129b93ecd29 Mon Sep 17 00:00:00 2001
From: spiritlhl <103393591+spiritLHLS@users.noreply.github.com>
Date: Fri, 4 Aug 2023 10:46:31 +0800
Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=86=85=E5=B5=8C=E7=9B=AE?=
=?UTF-8?q?=E5=BD=95=E6=98=BE=E7=A4=BA=20(#37)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
docs/guide/agent.md | 4 ++++
docs/guide/agentq.md | 4 ++++
docs/guide/api.md | 4 ++++
docs/guide/dashboard.md | 4 ++++
docs/guide/dashboardq.md | 4 ++++
docs/guide/loginq.md | 4 ++++
docs/guide/notifications.md | 4 ++++
docs/guide/servers.md | 5 +++++
docs/guide/services.md | 4 ++++
docs/guide/settings.md | 5 +++++
docs/guide/tasks.md | 5 +++++
11 files changed, 47 insertions(+)
diff --git a/docs/guide/agent.md b/docs/guide/agent.md
index c070030e..ce7289e9 100644
--- a/docs/guide/agent.md
+++ b/docs/guide/agent.md
@@ -1,3 +1,7 @@
+---
+outline: deep
+---
+
**哪吒监控的被控端服务被称为 Agent,本文档将介绍如何在被控端服务器上安装 Agent,并与 Dashboard 连接**
## 一键安装 Agent
diff --git a/docs/guide/agentq.md b/docs/guide/agentq.md
index 41d8a3b1..db4d0f5b 100644
--- a/docs/guide/agentq.md
+++ b/docs/guide/agentq.md
@@ -1,3 +1,7 @@
+---
+outline: deep
+---
+
## 后台显示的 IP 和 Agent 实际 IP 不一致?
请查看 [Dashboard 相关-为什么管理面板中显示的 IP 和 Agent 实际 IP 不一致?](/guide/dashboardq.html#为什么管理面板中显示的ip和agent实际ip不一致?)
在此不再赘述。
diff --git a/docs/guide/api.md b/docs/guide/api.md
index 2795bdba..395bd195 100644
--- a/docs/guide/api.md
+++ b/docs/guide/api.md
@@ -1,3 +1,7 @@
+---
+outline: deep
+---
+
**哪吒面板现在已经支持使用 API 接口查询面板中 Agent 的状态信息**
## 创建 Token
diff --git a/docs/guide/dashboard.md b/docs/guide/dashboard.md
index b9e0b687..7e9ad696 100644
--- a/docs/guide/dashboard.md
+++ b/docs/guide/dashboard.md
@@ -1,3 +1,7 @@
+---
+outline: deep
+---
+
## 准备工作
搭建一个哪吒监控,你需要:
diff --git a/docs/guide/dashboardq.md b/docs/guide/dashboardq.md
index 1acff542..167b4477 100644
--- a/docs/guide/dashboardq.md
+++ b/docs/guide/dashboardq.md
@@ -1,3 +1,7 @@
+---
+outline: deep
+---
+
## 为什么管理面板中显示的 IP 和 Agent 实际 IP 不一致?
首先解释管理面板中显示的IP是怎么得到的:Agent 会每隔一段时间请求一遍 IP-API,获取到 IP 信息后上报到 Dashboard,目前使用的 IP-API 可在此查看:[myip.go](https://github.com/nezhahq/agent/blob/main/pkg/monitor/myip.go)。
如您发现管理面板中显示的 IP 和服务商提供给您的 IP 不一致,最大的可能是服务商给您的是**入口 IP**,但Agent测试的是您的**出口 IP**。这个问题也可能会出现在多线服务器和 IPLC 专线中。
diff --git a/docs/guide/loginq.md b/docs/guide/loginq.md
index 5ff61b1e..162a5c1c 100644
--- a/docs/guide/loginq.md
+++ b/docs/guide/loginq.md
@@ -1,3 +1,7 @@
+---
+outline: deep
+---
+
## 登录回调后页面卡住\拒绝连接\响应时间过长
还有其他一些表现形式,总之登录后浏览器无法正常显示。
1. 您的服务器无法连接到 Github/Gitee,最常见于国内服务器配置 Github 情况下,可以考虑多尝试几次或者切换到 Jihulab/Gitee。
diff --git a/docs/guide/notifications.md b/docs/guide/notifications.md
index 047f425e..bef1cf86 100644
--- a/docs/guide/notifications.md
+++ b/docs/guide/notifications.md
@@ -1,3 +1,7 @@
+---
+outline: deep
+---
+
哪吒监控支持对服务器的负载、CPU、内存、硬盘、流量、月流量、进程数、连接数进行监控,并在其中某项达到用户设定值时发送报警通知
diff --git a/docs/guide/servers.md b/docs/guide/servers.md
index 0a253fce..44ed1738 100644
--- a/docs/guide/servers.md
+++ b/docs/guide/servers.md
@@ -1,4 +1,9 @@
+---
+outline: deep
+---
+
# 主机
+
## 介绍
主机区域负责管理Agent,是哪吒探针中最基础的区域,也是其他功能的基础。
diff --git a/docs/guide/services.md b/docs/guide/services.md
index 65c08e30..bc955b5b 100644
--- a/docs/guide/services.md
+++ b/docs/guide/services.md
@@ -1,3 +1,7 @@
+---
+outline: deep
+---
+
**服务区域是设置 Agent 监控外部网站或服务器的功能设置区**
**设置好的服务监控可以在主页中的 “服务” 页查看监控结果**
diff --git a/docs/guide/settings.md b/docs/guide/settings.md
index cefd9e2a..94e6cbc5 100644
--- a/docs/guide/settings.md
+++ b/docs/guide/settings.md
@@ -1,4 +1,9 @@
+---
+outline: deep
+---
+
## 站点标题
+
你可以在此项中自定义你的站点标题
diff --git a/docs/guide/tasks.md b/docs/guide/tasks.md
index bb6e4983..5d6899a6 100644
--- a/docs/guide/tasks.md
+++ b/docs/guide/tasks.md
@@ -1,8 +1,13 @@
+---
+outline: deep
+---
+
**在任务区域中,可以设置计划任务,触发任务,多服务器批量执行任务**
哪吒监控支持推送命令到 Agent 执行,因此此功能非常灵活,使用此功能可以定期结合 restic、rclone 给服务器备份,定期重启某项服务来重置网络连接。也可以配合报警通知,在触发报警时执行某项任务,如 CPU 在长时期处于高占用的情况下运行某个脚本。
## 使用方法
+
进入管理面板的 “任务” 页,点击 “添加计划任务”
添加计划任务你需要填入以下参数:
+ `名称` - 自定义一个任务名称