提交项目
我们欢迎您提交自己的项目,请加入TG群联系管理员了解相关事宜
From 94e752d15fceed98f3830df6b7b3a6afe5c4f33d Mon Sep 17 00:00:00 2001
From: naiba 404 贡献者: 项目地址:nezha_api_tgbot 镜像备份(非实时更新):nezha_api_tgbot 贡献者: 项目地址:nezha_api_tgbot 镜像备份(非实时更新):nezha_api_tgbot 当前版本:V1.0 使用iPhone或iPad扫描以下二维码,获取快捷指令 WARNING 每个快捷指令只能监控一台服务器,如需要监控多个服务器,请多次复制此快捷指令并分别配置,然后分别修改快捷指令名称,如;一号服务器状态、二号服务器状态等 当前版本:V1.0 使用iPhone或iPad扫描以下二维码,获取快捷指令 WARNING 每个快捷指令只能监控一台服务器,如需要监控多个服务器,请多次复制此快捷指令并分别配置,然后分别修改快捷指令名称,如;一号服务器状态、二号服务器状态等 贡献者: 项目地址:nezha_telegram_bot 镜像备份(非实时更新):nezha_telegram_bot 开源Telegram机器人项目,可以基于API实时查询哪吒面板的服务器信息。 贡献者: 项目地址:nezha_telegram_bot 镜像备份(非实时更新):nezha_telegram_bot 开源Telegram机器人项目,可以基于API实时查询哪吒面板的服务器信息。 来自南京的名老中医 dysf888 独家秘方!让你找回男人本色,激情畅享! 镜像备份(非实时更新):Fake Agent 哪吒监控创始人奶爸也在用: 男人用了都说好: 来自南京的名老中医 dysf888 独家秘方!让你找回男人本色,激情畅享! 镜像备份(非实时更新):Fake Agent 哪吒监控创始人奶爸也在用: 男人用了都说好: 贡献者: 项目地址:Argo-Nezha-Service-Container 镜像备份(非实时更新):Argo-Nezha-Service-Container 面板域名加上 Argo 隧道认证方式有 json 和 token,使用两个方式其中之一。推荐前者,理由脚本会处理好所有的 Argo 隧道参数和路径,后者需要到 Cloudflare 官网手动设置,容易出错。 镜像 用到的变量 Koyeb 贡献者: 项目地址:Argo-Nezha-Service-Container 镜像备份(非实时更新):Argo-Nezha-Service-Container 面板域名加上 Argo 隧道认证方式有 json 和 token,使用两个方式其中之一。推荐前者,理由脚本会处理好所有的 Argo 隧道参数和路径,后者需要到 Cloudflare 官网手动设置,容易出错。 镜像 用到的变量 Koyeb 哪吒监控的 Dashboard 已经添加本地化,支持多个语言,你可以在开发新功能时遵循以下步骤来支持本地化 哪吒监控的 Dashboard 已经添加本地化,支持多个语言,你可以在开发新功能时遵循以下步骤来支持本地化 哪吒面板提供了主题开发环境,你可以使用它来创建新的哪吒监控主题 WARNING 请注意: 此开发环境仅支持 哪吒面板提供了主题开发环境,你可以使用它来创建新的哪吒监控主题 WARNING 请注意: 此开发环境仅支持 Contributors: Project: nezha_api_tgbot (Chinese) Mirror backup, non-real-time update: nezha_api_tgbot (Chinese) The bot can request server status information from the Dashboard through the API, and then send the information to the user. Contributors: Project: nezha_api_tgbot (Chinese) Mirror backup, non-real-time update: nezha_api_tgbot (Chinese) The bot can request server status information from the Dashboard through the API, and then send the information to the user. Current Version:V1.0 (Chinese) Scan the following QR code with your iPhone or iPad to get the shortcut WARNING Each shortcut can only monitor one server, if you need to monitor more than one server, please copy this shortcut several times and configure them separately, then modify the shortcut name separately, such as; Server 1 Status, Server 2 Status, etc. Current Version:V1.0 (Chinese) Scan the following QR code with your iPhone or iPad to get the shortcut WARNING Each shortcut can only monitor one server, if you need to monitor more than one server, please copy this shortcut several times and configure them separately, then modify the shortcut name separately, such as; Server 1 Status, Server 2 Status, etc. Contributor: GitHub project: nezha_telegram_bot(English is already supported) Mirror backup, non-real-time update : nezha_telegram_bot(English is already supported) Contributor: GitHub project: nezha_telegram_bot(English is already supported) Mirror backup, non-real-time update : nezha_telegram_bot(English is already supported) Contributor: GitHub project: fake-nezha-agent(Chinese) You can modify the monitoring data uploaded to Dashboard by the Agent Contributor: GitHub project: fake-nezha-agent(Chinese) You can modify the monitoring data uploaded to Dashboard by the Agent Contributors: GitHub project: Argo-Nezha-Service-Container Mirror backup (not live update): Argo-Nezha-Service-Container Add Argo tunnel authentication methods include json and token, use one of the two methods. The former is recommended because the script will handle all the Argo tunnel parameters and paths, while the latter needs to be set manually on the Cloudflare website and is prone to errors. Image Variables used Koyeb Contributors: GitHub project: Argo-Nezha-Service-Container Mirror backup (not live update): Argo-Nezha-Service-Container Add Argo tunnel authentication methods include json and token, use one of the two methods. The former is recommended because the script will handle all the Argo tunnel parameters and paths, while the latter needs to be set manually on the Cloudflare website and is prone to errors. Image Variables used Koyeb Nezha Monitoring's Dashboard has added localization to support multiple languages, and you can follow these steps to support localization when developing new features Nezha Monitoring's Dashboard has added localization to support multiple languages, and you can follow these steps to support localization when developing new features 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 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 The service in the monitored server is called Agent. This document will describe how to install the Agent on the monitored server and connect it with Dashboard TIP Agent binary repository: https://github.com/nezhahq/agent/releases Nezha Monitoring now supports one-click installation of the Agent on Windows and Linux. Follow the steps in this document and you can easily deploy it on your server First of all, you need to set up the communication domain name in the settings page of the admin panel, this domain name can not connect to the CDN, here is the sample communication domain name "data.example.com" mentioned earlier for demonstration Select “Install_agent” Input the communication domain name, e.g. "data.example.com" Input RPC port, default is 5555 Input the Agent Secret, which is generated when adding a server in the administration panel and can be found in the " Servers " page of the administration panel Wait for the installation to complete and return to the Dashboard home page to see if the server is online Contributed by unknown0054 The service in the monitored server is called Agent. This document will describe how to install the Agent on the monitored server and connect it with Dashboard TIP Agent binary repository: https://github.com/nezhahq/agent/releases Nezha Monitoring now supports one-click installation of the Agent on Windows and Linux. Follow the steps in this document and you can easily deploy it on your server First of all, you need to set up the communication domain name in the settings page of the admin panel, this domain name can not connect to the CDN, here is the sample communication domain name "data.example.com" mentioned earlier for demonstration Select “Install_agent” Input the communication domain name, e.g. "data.example.com" Input RPC port, default is 5555 Input the Agent Secret, which is generated when adding a server in the administration panel and can be found in the " Servers " page of the administration panel Wait for the installation to complete and return to the Dashboard home page to see if the server is online Contributed by unknown0054 Please check Dashboard - Why the IP displayed in the admin panel and the actual IP of the Agent are not the same? Please check if your server can connect to Github, try again, or check Other ways to install Agent Please install sudo first Please check Dashboard - Why the IP displayed in the admin panel and the actual IP of the Agent are not the same? Please check if your server can connect to Github, try again, or check Other ways to install Agent Please install sudo first Nezha Monitoring now supports querying the status information of the Agent in the Dashboard using the API API allows Token authentication method and Cookies authentication method WARNING Token is the authentication tool of API, it is very important for your Dashboard's information security, please don't leak your Token to others Token authentication method: Nezha Monitoring now supports querying the status information of the Agent in the Dashboard using the API API allows Token authentication method and Cookies authentication method WARNING Token is the authentication tool of API, it is very important for your Dashboard's information security, please don't leak your Token to others Token authentication method: WARNING The negative timestamp in the example below is (0000-00-00) TIP The request method is JSON Return Example: To setup a Nezha monitorning Dashboard, you need these things: TIP If you want to use CDN, please prepare two domains, one connect to CDN for public access, CDN needs to support WebSocket protocol; the other domain should not connect to CDN, use it as Agent to send data to Dashboard. This document will use the aaPanel as an example, with future versions of the changes, some of the features may change, this document is for reference only WARNING This project does not rely on aaPanel, you can choose to use any server panel you like, and if you are capable enough, you can manually install NginX or Caddy to configure SSL and reverse proxy. Nezha Monitor uses a Github account as the login account for the admin panel After waiting for the Docker installation to complete, input the following settings: After the input is complete, wait to pull the mirror In the future, if you need to run the script again, you can run: to open the management script Create a new site in the aaPanel, fill in the public access domain name, such as "http://cdn.example.com", then click "Settings" to enter the site settings option, select " Reverse proxy" - "New reverse proxy" Customize a proxy name, fill in Open the " configuration" to the right of the new reverse proxy you just created and replace the configuration file with the following: To setup a Nezha monitorning Dashboard, you need these things: TIP If you want to use CDN, please prepare two domains, one connect to CDN for public access, CDN needs to support WebSocket protocol; the other domain should not connect to CDN, use it as Agent to send data to Dashboard. This document will use the aaPanel as an example, with future versions of the changes, some of the features may change, this document is for reference only WARNING This project does not rely on aaPanel, you can choose to use any server panel you like, and if you are capable enough, you can manually install NginX or Caddy to configure SSL and reverse proxy. Nezha Monitor uses a Github account as the login account for the admin panel After waiting for the Docker installation to complete, input the following settings: After the input is complete, wait to pull the mirror In the future, if you need to run the script again, you can run: to open the management script Create a new site in the aaPanel, fill in the public access domain name, such as "http://cdn.example.com", then click "Settings" to enter the site settings option, select " Reverse proxy" - "New reverse proxy" Customize a proxy name, fill in Open the " configuration" to the right of the new reverse proxy you just created and replace the configuration file with the following: First of all, explain how the IP displayed in the admin panel is gotten: the Agent will request the IP-API every once in a while, get the IP information and report it to the Dashboard, the IP-API currently used can be viewed here: myip.go TIP To take a simple and very common example, the service provider to provide you a anti-DDoS server, in order to meet the goals of both DDoS protection and low network disruption rate, the IP provided to you may be the mapped anti-DDoS IP and not the real exit IP of your server You can also test the exit IP by running the following command in the Agent server: First of all, explain how the IP displayed in the admin panel is gotten: the Agent will request the IP-API every once in a while, get the IP information and report it to the Dashboard, the IP-API currently used can be viewed here: myip.go TIP To take a simple and very common example, the service provider to provide you a anti-DDoS server, in order to meet the goals of both DDoS protection and low network disruption rate, the IP provided to you may be the mapped anti-DDoS IP and not the real exit IP of your server You can also test the exit IP by running the following command in the Agent server: Please view or edit the First, try restarting docker and retrying again TIP What is a protocol? Please make sure the protocol+domain+port displayed by your browser before login and the protocol+domain+port you jump to after login are the same. DNS resolution failure, in most cases, is due to iptables-related configuration changes. Suggest changing the authentication method to Github/Gitlab. It may be caused by a number of factors, the most likely is a network problem, we suggest to check the network and retry. You have logged into the wrong account or configured the wrong username, note that username is not email, you can use a script to modify it. If the server has network problems, you can restart docker first, Same as above. TIP What is a protocol? Please make sure the protocol+domain+port displayed by your browser before login and the protocol+domain+port you jump to after login are the same. DNS resolution failure, in most cases, is due to iptables-related configuration changes. Suggest changing the authentication method to Github/Gitlab. It may be caused by a number of factors, the most likely is a network problem, we suggest to check the network and retry. You have logged into the wrong account or configured the wrong username, note that username is not email, you can use a script to modify it. If the server has network problems, you can restart docker first, Same as above. Nezha Monitoring supports monitoring of server load, CPU, memory, hard disk, 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. In panel messages, the placeholder The content of Body is in 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. Bark Example Name: Bark URL: The first part is the key, followed by three matches/: key/: body or/: key/: title/: body or/: key/: category/: title/: body Request method: GET Request Type: Default Body: null Name: Bark URL:/push Request method: POST Request type: FORM Body: Telegram Example, contributed by @haitau Email notification example - Outlook Nezha Monitoring supports monitoring of server load, CPU, memory, hard disk, 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. In panel messages, the placeholder The content of Body is in 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. Bark Example Name: Bark URL: The first part is the key, followed by three matches/: key/: body or/: key/: title/: body or/: key/: category/: title/: body Request method: GET Request Type: Default Body: null Name: Bark URL:/push Request method: POST Request type: FORM Body: Telegram Example, contributed by @haitau Email notification example - Outlook Use Nginx or Caddy to reverse proxy gRPC Use Nginx or Caddy to reverse proxy gRPC In the home page, the traffic statistics will be reset when the server is restarted. TIP This method can be set to any period, including and not limited to hourly/daily/weekly/monthly/yearly reset transfer statistics, very flexible! In the home page, the traffic statistics will be reset when the server is restarted. TIP This method can be set to any period, including and not limited to hourly/daily/weekly/monthly/yearly reset transfer statistics, very flexible! Run Run The Servers area is responsible for managing the Agent, the most basic area in Nezha Monitoring, and the basis for other functions. The first step is to add a servers, which can be customized with names, groups, display index and notes. Please refer to the previous article: Install Agent The flags related to the update of the Agent are: This feature does not take effect when The Servers area is responsible for managing the Agent, the most basic area in Nezha Monitoring, and the basis for other functions. The first step is to add a servers, which can be customized with names, groups, display index and notes. Please refer to the previous article: Install Agent The flags related to the update of the Agent are: This feature does not take effect when Service area is a function setting area for setting up Agents to monitor external websites or servers 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: After setting, click "Add" and you are done. Nezha Monitoring monitors and statistics the delay between the Agent and the target server, and sends notifications in case of significant changes To manage existing service monitoring, you can go to the "Services" page in the administration panel Service area is a function setting area for setting up Agents to monitor external websites or servers 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: After setting, click "Add" and you are done. Nezha Monitoring monitors and statistics the delay between the Agent and the target server, and sends notifications in case of significant changes To manage existing service monitoring, you can go to the "Services" page in the administration panel You can customize your site title here If you have changed your Github, Gitlab, Jihulab, Gitee username, you can change it in this item, otherwise you can't log in, please separate multiple users with commas: To change your administrator account, please go to Select the home page theme here, and update the panel if there is not an existing theme in the options Nezha Monitoring currently supports the following languages: Change logo, change color tone, add statistics code, etc. WARNING The custom code only takes effect in the visitor's home page, not in the admin panel. You can customize your site title here If you have changed your Github, Gitlab, Jihulab, Gitee username, you can change it in this item, otherwise you can't log in, please separate multiple users with commas: To change your administrator account, please go to Select the home page theme here, and update the panel if there is not an existing theme in the options Nezha Monitoring currently supports the following languages: Change logo, change color tone, add statistics code, etc. WARNING The custom code only takes effect in the visitor's home page, not in the admin panel. In the task area, you can set up scheduled tasks, Trigger 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. Periodically restart a service to reset the network connection. It can also be used with notifications to perform a task when a notification is triggered, such as running a script when the CPU is at high occupancy for a long period of time. Go to the "Tasks" page of the admin panel and click "Add Scheduled Task" To manage existing scheduled tasks, you can go to the "Tasks" page in the administration panel In the task area, you can set up scheduled tasks, Trigger 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. Periodically restart a service to reset the network connection. It can also be used with notifications to perform a task when a notification is triggered, such as running a script when the CPU is at high occupancy for a long period of time. Go to the "Tasks" page of the admin panel and click "Add Scheduled Task" To manage existing scheduled tasks, you can go to the "Tasks" page in the administration panel 哪吒监控的被控端服务被称为 Agent,本文档将介绍如何在被控端服务器上安装 Agent,并与 Dashboard 连接 TIP Agent 二进制文件仓库地址为:https://github.com/nezhahq/agent/releases 目前哪吒监控已支持在 Windows 和 Linux上一键安装 Agent,遵循本文档的步骤,你可以很轻松的在服务器上部署它 你需要提前在管理面板中设置好通信域名,此域名不可以接入CDN,这里以前面提到过的示例通信域名 “data.example.com” 来做演示 如果你的被控服务器位于中国大陆,可以使用镜像: 本节内容由 unknown0054 贡献 哪吒监控的被控端服务被称为 Agent,本文档将介绍如何在被控端服务器上安装 Agent,并与 Dashboard 连接 TIP Agent 二进制文件仓库地址为:https://github.com/nezhahq/agent/releases 目前哪吒监控已支持在 Windows 和 Linux上一键安装 Agent,遵循本文档的步骤,你可以很轻松的在服务器上部署它 你需要提前在管理面板中设置好通信域名,此域名不可以接入CDN,这里以前面提到过的示例通信域名 “data.example.com” 来做演示 如果你的被控服务器位于中国大陆,可以使用镜像: 本节内容由 unknown0054 贡献 增加运行权限 运行 Nezha-Agent 添加开机自启动 Systemd 实现 仅适用于 DSM7: 如何 一步到位,解决安装过程疑难杂症 如何使 旧版 OpenWRT/LEDE 自启动 如何使 新版 OpenWRT 自启动?来自 @艾斯德斯 Agent 目前没有推出 Docker 镜像。 Agent 目前没有推出 Docker 镜像。 请查看 Dashboard 相关-为什么管理面板中显示的 IP 和 Agent 实际 IP 不一致? 多出现在国内主机中,目前一键脚本只从 Github 直接获取安装脚本,您可以多尝试几次,或者手动安装 Agent,别忘了使用镜像。 请先手动安装 sudo。 请查看 Dashboard 相关-为什么管理面板中显示的 IP 和 Agent 实际 IP 不一致? 多出现在国内主机中,目前一键脚本只从 Github 直接获取安装脚本,您可以多尝试几次,或者手动安装 Agent,别忘了使用镜像。 请先手动安装 sudo。 哪吒面板现在已经支持使用 API 接口查询面板中 Agent 的状态信息 哪吒面板的 API 接口允许使用 Token 认证与 Cookies 认证 WARNING Token 是 API 接口的鉴权工具,它对你的面板的信息安全非常重要,请不要泄漏你的 Token 给他人 Token 认证方式: 哪吒面板现在已经支持使用 API 接口查询面板中 Agent 的状态信息 哪吒面板的 API 接口允许使用 Token 认证与 Cookies 认证 WARNING Token 是 API 接口的鉴权工具,它对你的面板的信息安全非常重要,请不要泄漏你的 Token 给他人 Token 认证方式: WARNING 下面示例中的负数时间戳为(0000-00-00) TIP 请求方式为 JSON 返回示例: 搭建一个哪吒监控,你需要: TIP 如果你想使用 CDN,请准备两个域名,一个配置好 CDN 用作公开访问,CDN 需要支持WebSocket 协议;另一个域名不要使用 CDN,用作 Agent 端与 Dashboard 的通信 TIP 如果您位于中国大陆,访问 Github 有困难,我们建议您选择 Jihulab 作为 OAuth 提供商 本文档将以宝塔面板反代面板的过程作为范例,随着未来版本的变化,部分功能的入口可能会发生改变,本文档仅供参考 WARNING 本项目并不依赖宝塔,你可以选择使用你喜欢的任何服务器面板,如果你能力足够,可以手动安装 NginX 或 Caddy 来配置 SSL 和反代。 哪吒监控接入 Github、Gitlab、Jihulab、Gitee 作为后台管理员账号 如果你的面板服务器位于中国大陆,可以使用镜像: 等待Docker安装完毕后,分别输入以下值: 输入完成后,等待拉取镜像 将来如果需要再次运行脚本,可以运行: 来打开管理脚本 在宝塔面板中新建一个站点,域名填写公开访问域名,如 “http://cdn.example.com“ ,然后点击“设置”进入站点设置选项,选择“反向代理” - “新建反向代理” 自定义一个代理名称,在下方“目标 URL”中填入 打开刚刚新建的反向代理右边的“配置文件”,将配置文件替换为以下内容: 搭建一个哪吒监控,你需要: TIP 如果你想使用 CDN,请准备两个域名,一个配置好 CDN 用作公开访问,CDN 需要支持WebSocket 协议;另一个域名不要使用 CDN,用作 Agent 端与 Dashboard 的通信 TIP 如果您位于中国大陆,访问 Github 有困难,我们建议您选择 Jihulab 作为 OAuth 提供商 本文档将以宝塔面板反代面板的过程作为范例,随着未来版本的变化,部分功能的入口可能会发生改变,本文档仅供参考 WARNING 本项目并不依赖宝塔,你可以选择使用你喜欢的任何服务器面板,如果你能力足够,可以手动安装 NginX 或 Caddy 来配置 SSL 和反代。 哪吒监控接入 Github、Gitlab、Jihulab、Gitee 作为后台管理员账号 如果你的面板服务器位于中国大陆,可以使用镜像: 等待Docker安装完毕后,分别输入以下值: 输入完成后,等待拉取镜像 将来如果需要再次运行脚本,可以运行: 来打开管理脚本 在宝塔面板中新建一个站点,域名填写公开访问域名,如 “http://cdn.example.com“ ,然后点击“设置”进入站点设置选项,选择“反向代理” - “新建反向代理” 自定义一个代理名称,在下方“目标 URL”中填入 打开刚刚新建的反向代理右边的“配置文件”,将配置文件替换为以下内容: 首先解释管理面板中显示的IP是怎么得到的:Agent 会每隔一段时间请求一遍 IP-API,获取到 IP 信息后上报到 Dashboard,目前使用的 IP-API 可在此查看:myip.go。 TIP 举个简单也十分常见的例子,服务商给您提供的是一台高防服务器,为了同时满足高防和低网络中断率的目标,提供给您的 IP 可能是经过映射后的高防 IP 而并非您服务器的真实出口 IP 您也可以在 Agent 服务器中运行以下命令测试出口IP: 首先解释管理面板中显示的IP是怎么得到的:Agent 会每隔一段时间请求一遍 IP-API,获取到 IP 信息后上报到 Dashboard,目前使用的 IP-API 可在此查看:myip.go。 TIP 举个简单也十分常见的例子,服务商给您提供的是一台高防服务器,为了同时满足高防和低网络中断率的目标,提供给您的 IP 可能是经过映射后的高防 IP 而并非您服务器的真实出口 IP 您也可以在 Agent 服务器中运行以下命令测试出口IP: 请查看或编辑 首先尝试重启 Docker 再操作 还有其他一些表现形式,总之登录后浏览器无法正常显示。 TIP 什么是协议? 请确保登录前浏览器显示的协议+域名+端口和登录后跳转到的协议+域名+端口一致。 容器DNS解析失败,多数情况下为修改了iptables相关配置。 只出现在 Gitee 登录方式中,原因不明,建议更换到 Jihulab。 可能由多种因素引起,最大可能性是网络问题,建议检查网络后重试。 您登陆错了账号或者配置错了用户名,注意用户名不是邮箱,可使用脚本修改。 网络问题,可先重启 Docker, 同上。 还有其他一些表现形式,总之登录后浏览器无法正常显示。 TIP 什么是协议? 请确保登录前浏览器显示的协议+域名+端口和登录后跳转到的协议+域名+端口一致。 容器DNS解析失败,多数情况下为修改了iptables相关配置。 只出现在 Gitee 登录方式中,原因不明,建议更换到 Jihulab。 可能由多种因素引起,最大可能性是网络问题,建议检查网络后重试。 您登陆错了账号或者配置错了用户名,注意用户名不是邮箱,可使用脚本修改。 网络问题,可先重启 Docker, 同上。 哪吒监控支持对服务器的负载、CPU、内存、硬盘、流量、月流量、进程数、连接数进行监控,并在其中某项达到用户设定值时发送报警通知 在面板消息中,占位符 Body 内容是 URL 里面也可放置占位符,请求时会进行简单的字符串替换。 你可以参考以下的通知方式示例,也可以根据自己的需求灵活设置推送方式 Bark 示例 Server 酱示例 Server 酱进阶 哪吒监控支持对服务器的负载、CPU、内存、硬盘、流量、月流量、进程数、连接数进行监控,并在其中某项达到用户设定值时发送报警通知 在面板消息中,占位符 Body 内容是 URL 里面也可放置占位符,请求时会进行简单的字符串替换。 你可以参考以下的通知方式示例,也可以根据自己的需求灵活设置推送方式 Bark 示例 Server 酱示例 Server 酱进阶 你可以选择 CloudFlare 的 workers 进行反代,但大陆的网络你懂的,这里介绍用你自己服务器反代方式 编辑你 Nginx 的配置文件,在 http{} 中加上如下配置 你可以选择 CloudFlare 的 workers 进行反代,但大陆的网络你懂的,这里介绍用你自己服务器反代方式 编辑你 Nginx 的配置文件,在 http{} 中加上如下配置 使用 Nginx 或者 Caddy 反向代理 gRPC 使用 Nginx 或者 Caddy 反向代理 gRPC 主页中的流量统计每次服务器重启时都会重置,如果要实现每月重置一次流量计数,可以这样实现: TIP 此方式可以设置任何周期,包括且不限于每小时/每天/每周/每月/每年重置流量统计,非常灵活! 主页中的流量统计每次服务器重启时都会重置,如果要实现每月重置一次流量计数,可以这样实现: TIP 此方式可以设置任何周期,包括且不限于每小时/每天/每周/每月/每年重置流量统计,非常灵活! 通过执行 通过执行 主机区域负责管理Agent,是哪吒探针中最基础的区域,也是其他功能的基础。 第一步是添加主机,可以自定义名称、分组、排序和备注。 请参考前文安装Agent Agent更新相关的参数是 自定义agent监控项目 中的 即WebShell, 主机区域负责管理Agent,是哪吒探针中最基础的区域,也是其他功能的基础。 第一步是添加主机,可以自定义名称、分组、排序和备注。 请参考前文安装Agent Agent更新相关的参数是 自定义agent监控项目 中的 即WebShell, 服务区域是设置 Agent 监控外部网站或服务器的功能设置区 如需新增一个监控,可以进入管理面板中的 “服务” 页,点击“添加监控” 新增一个服务监控,你需要设置以下参数: 设置完成后,点击 “添加” 即可 哪吒监控可以监测并统计 Agent 到目标服务器之间的延迟,在发生较大变化的情况下发送通知 如需对已有的服务监控进行管理,可以前往管理面板中的 “服务” 页 服务区域是设置 Agent 监控外部网站或服务器的功能设置区 如需新增一个监控,可以进入管理面板中的 “服务” 页,点击“添加监控” 新增一个服务监控,你需要设置以下参数: 设置完成后,点击 “添加” 即可 哪吒监控可以监测并统计 Agent 到目标服务器之间的延迟,在发生较大变化的情况下发送通知 如需对已有的服务监控进行管理,可以前往管理面板中的 “服务” 页 你可以在此项中自定义你的站点标题 如果你修改了自己的 Github, Gitlab, Jihulab 或 Gitee 的用户名,可以在此项中同步修改,否则无法登录,多个用户请用逗号隔开: 如需更改管理员账户,请前往 在这里选择主页主题,如果选项中没有某个已存在的主题,请更新面板 哪吒监控目前支持以下语言: 改 LOGO、改色调、加统计代码等。 WARNING 自定义代码仅在游客首页生效,管理面板不生效 你可以在此项中自定义你的站点标题 如果你修改了自己的 Github, Gitlab, Jihulab 或 Gitee 的用户名,可以在此项中同步修改,否则无法登录,多个用户请用逗号隔开: 如需更改管理员账户,请前往 在这里选择主页主题,如果选项中没有某个已存在的主题,请更新面板 哪吒监控目前支持以下语言: 改 LOGO、改色调、加统计代码等。 WARNING 自定义代码仅在游客首页生效,管理面板不生效 在任务区域中,可以设置计划任务,触发任务,多服务器批量执行任务 哪吒监控支持推送命令到 Agent 执行,因此此功能非常灵活,使用此功能可以定期结合 restic、rclone 给服务器备份,定期重启某项服务来重置网络连接。也可以配合报警通知,在触发报警时执行某项任务,如 CPU 在长时期处于高占用的情况下运行某个脚本。 进入管理面板的 “任务” 页,点击 “添加计划任务” 如需对已有的计划任务进行管理,可以前往管理面板中的 “任务” 页 在任务区域中,可以设置计划任务,触发任务,多服务器批量执行任务 哪吒监控支持推送命令到 Agent 执行,因此此功能非常灵活,使用此功能可以定期结合 restic、rclone 给服务器备份,定期重启某项服务来重置网络连接。也可以配合报警通知,在触发报警时执行某项任务,如 CPU 在长时期处于高占用的情况下运行某个脚本。 进入管理面板的 “任务” 页,点击 “添加计划任务” 如需对已有的计划任务进行管理,可以前往管理面板中的 “任务” 页PAGE NOT FOUND
But if you don't change your direction, and if you keep looking, you may end up where you are heading.
自建一个TG机器人来查询服务器信息
机器人可以通过API向面板请求服务器状态信息,得到信息后发送给用户
你可以搭建此机器人来方便地查看指定服务器的当前状态且不需要打开面板自建一个TG机器人来查询服务器信息
机器人可以通过API向面板请求服务器状态信息,得到信息后发送给用户
你可以搭建此机器人来方便地查看指定服务器的当前状态且不需要打开面板在iOS/MacOS中使用Siri运行快捷指令查询服务器状态
贡献者:获取快捷指令
MacOS用户请访问这里,获取快捷指令使用说明
面板URL
、API Token
、服务器ID
在iOS/MacOS中使用Siri运行快捷指令查询服务器状态
贡献者:获取快捷指令
MacOS用户请访问这里,获取快捷指令使用说明
面板URL
、API Token
、服务器ID
自建使用 API 来进行查询,且支持多语言的 Telegram 查询机器人
项目特色
命令列表
命令 功能 仅私聊 start 开始使用键盘主菜单 ✔️ help 帮助列表 ❌ add 添加面板链接和token ✔️ url 添加面板链接 ✔️ token 添加面板token ✔️ info 获取保存的面板链接和token ✔️ delete 删除保存的面板链接和token ✔️ id 命令后面添加整数id,来进行单个服务器信息查询(私聊带刷新按钮,群聊不带) ❌ all 查询所有服务器的统计信息 ❌ search 在服务器名字中搜索关键字(支持多个,用空格分开) ❌ 效果展示
',12),i=[l];function o(h,n,c,s,_,m){return e(),a("div",null,i)}const b=t(d,[["render",o]]);export{f as __pageData,b as default};
+import{_ as t,o as e,c as a,R as r}from"./chunks/framework.44fd0451.js";const f=JSON.parse('{"title":"自建使用 API 来进行查询,且支持多语言的 Telegram 查询机器人","description":"","frontmatter":{},"headers":[],"relativePath":"case/case3.md","filePath":"case/case3.md","lastUpdated":1701657270000}'),d={name:"case/case3.md"},l=r('自建使用 API 来进行查询,且支持多语言的 Telegram 查询机器人
项目特色
命令列表
命令 功能 仅私聊 start 开始使用键盘主菜单 ✔️ help 帮助列表 ❌ add 添加面板链接和token ✔️ url 添加面板链接 ✔️ token 添加面板token ✔️ info 获取保存的面板链接和token ✔️ delete 删除保存的面板链接和token ✔️ id 命令后面添加整数id,来进行单个服务器信息查询(私聊带刷新按钮,群聊不带) ❌ all 查询所有服务器的统计信息 ❌ search 在服务器名字中搜索关键字(支持多个,用空格分开) ❌ 效果展示
',12),i=[l];function o(h,n,c,s,_,m){return e(),a("div",null,i)}const b=t(d,[["render",o]]);export{f as __pageData,b as default};
diff --git a/assets/case_case3.md.2815791d.lean.js b/assets/case_case3.md.5cff3d3f.lean.js
similarity index 86%
rename from assets/case_case3.md.2815791d.lean.js
rename to assets/case_case3.md.5cff3d3f.lean.js
index 272ef7c0..417f6c59 100644
--- a/assets/case_case3.md.2815791d.lean.js
+++ b/assets/case_case3.md.5cff3d3f.lean.js
@@ -1 +1 @@
-import{_ as t,o as e,c as a,R as r}from"./chunks/framework.44fd0451.js";const f=JSON.parse('{"title":"自建使用 API 来进行查询,且支持多语言的 Telegram 查询机器人","description":"","frontmatter":{},"headers":[],"relativePath":"case/case3.md","filePath":"case/case3.md","lastUpdated":1701534410000}'),d={name:"case/case3.md"},l=r("",12),i=[l];function o(h,n,c,s,_,m){return e(),a("div",null,i)}const b=t(d,[["render",o]]);export{f as __pageData,b as default};
+import{_ as t,o as e,c as a,R as r}from"./chunks/framework.44fd0451.js";const f=JSON.parse('{"title":"自建使用 API 来进行查询,且支持多语言的 Telegram 查询机器人","description":"","frontmatter":{},"headers":[],"relativePath":"case/case3.md","filePath":"case/case3.md","lastUpdated":1701657270000}'),d={name:"case/case3.md"},l=r("",12),i=[l];function o(h,n,c,s,_,m){return e(),a("div",null,i)}const b=t(d,[["render",o]]);export{f as __pageData,b as default};
diff --git a/assets/case_case4.md.3d19dff7.js b/assets/case_case4.md.03342740.js
similarity index 94%
rename from assets/case_case4.md.3d19dff7.js
rename to assets/case_case4.md.03342740.js
index a8675246..6ae18e36 100644
--- a/assets/case_case4.md.3d19dff7.js
+++ b/assets/case_case4.md.03342740.js
@@ -1 +1 @@
-import{_ as s,o as t,c as e,R as a}from"./chunks/framework.44fd0451.js";const r="/assets/2.38c2ea56.png",n="/assets/5.23139306.png",o="/assets/6.22a61698.png",p="/assets/4.fe6a4e7a.jpg",c="/assets/1.b4b4591f.jpeg",y=JSON.parse('{"title":"重磅推荐!一秒拥有宇宙级算力!让你在人前,不!再!自!卑","description":"","frontmatter":{},"headers":[],"relativePath":"case/case4.md","filePath":"case/case4.md","lastUpdated":1701534410000}'),_={name:"case/case4.md"},i=a('重磅推荐!一秒拥有宇宙级算力!让你在人前,不!再!自!卑
还在因为自己的小鸡配置太差被朋友嘲笑吗?
还在想参加以针会友活动却因为小鸡不够排面而觉得羞耻吗?
还在因为在哪吒TG群里机器人排名太低而觉得自己低人一等吗?
今天开始!找回自信!
安装 Fake Agent,可随意修改服务器监测数据的倍数上传到 Dashboard,让你的小鸡 脱!胎!换!骨! 让你在 MJJ 面前硬起来!
',12),l=[i];function g(f,b,h,m,d,k){return t(),e("div",null,l)}const z=s(_,[["render",g]]);export{y as __pageData,z as default};
+import{_ as s,o as t,c as e,R as a}from"./chunks/framework.44fd0451.js";const r="/assets/2.38c2ea56.png",n="/assets/5.23139306.png",o="/assets/6.22a61698.png",p="/assets/4.fe6a4e7a.jpg",c="/assets/1.b4b4591f.jpeg",y=JSON.parse('{"title":"重磅推荐!一秒拥有宇宙级算力!让你在人前,不!再!自!卑","description":"","frontmatter":{},"headers":[],"relativePath":"case/case4.md","filePath":"case/case4.md","lastUpdated":1701657270000}'),_={name:"case/case4.md"},i=a('重磅推荐!一秒拥有宇宙级算力!让你在人前,不!再!自!卑
还在因为自己的小鸡配置太差被朋友嘲笑吗?
还在想参加以针会友活动却因为小鸡不够排面而觉得羞耻吗?
还在因为在哪吒TG群里机器人排名太低而觉得自己低人一等吗?
今天开始!找回自信!
安装 Fake Agent,可随意修改服务器监测数据的倍数上传到 Dashboard,让你的小鸡 脱!胎!换!骨! 让你在 MJJ 面前硬起来!
',12),l=[i];function g(f,b,h,m,d,k){return t(),e("div",null,l)}const z=s(_,[["render",g]]);export{y as __pageData,z as default};
diff --git a/assets/case_case4.md.3d19dff7.lean.js b/assets/case_case4.md.03342740.lean.js
similarity index 79%
rename from assets/case_case4.md.3d19dff7.lean.js
rename to assets/case_case4.md.03342740.lean.js
index b50ab7d3..d20518a6 100644
--- a/assets/case_case4.md.3d19dff7.lean.js
+++ b/assets/case_case4.md.03342740.lean.js
@@ -1 +1 @@
-import{_ as s,o as t,c as e,R as a}from"./chunks/framework.44fd0451.js";const r="/assets/2.38c2ea56.png",n="/assets/5.23139306.png",o="/assets/6.22a61698.png",p="/assets/4.fe6a4e7a.jpg",c="/assets/1.b4b4591f.jpeg",y=JSON.parse('{"title":"重磅推荐!一秒拥有宇宙级算力!让你在人前,不!再!自!卑","description":"","frontmatter":{},"headers":[],"relativePath":"case/case4.md","filePath":"case/case4.md","lastUpdated":1701534410000}'),_={name:"case/case4.md"},i=a("",12),l=[i];function g(f,b,h,m,d,k){return t(),e("div",null,l)}const z=s(_,[["render",g]]);export{y as __pageData,z as default};
+import{_ as s,o as t,c as e,R as a}from"./chunks/framework.44fd0451.js";const r="/assets/2.38c2ea56.png",n="/assets/5.23139306.png",o="/assets/6.22a61698.png",p="/assets/4.fe6a4e7a.jpg",c="/assets/1.b4b4591f.jpeg",y=JSON.parse('{"title":"重磅推荐!一秒拥有宇宙级算力!让你在人前,不!再!自!卑","description":"","frontmatter":{},"headers":[],"relativePath":"case/case4.md","filePath":"case/case4.md","lastUpdated":1701657270000}'),_={name:"case/case4.md"},i=a("",12),l=[i];function g(f,b,h,m,d,k){return t(),e("div",null,l)}const z=s(_,[["render",g]]);export{y as __pageData,z as default};
diff --git a/assets/case_case5.md.895ea2d3.js b/assets/case_case5.md.61e47ef0.js
similarity index 99%
rename from assets/case_case5.md.895ea2d3.js
rename to assets/case_case5.md.61e47ef0.js
index 77b5bba5..d37d936a 100644
--- a/assets/case_case5.md.895ea2d3.js
+++ b/assets/case_case5.md.61e47ef0.js
@@ -1,4 +1,4 @@
-import{_ as a,o as e,c as s,R as t}from"./chunks/framework.44fd0451.js";const m=JSON.parse('{"title":"使用 Argo 隧道的哪吒服务端","description":"","frontmatter":{},"headers":[],"relativePath":"case/case5.md","filePath":"case/case5.md","lastUpdated":1701534410000}'),l={name:"case/case5.md"},n=t(`使用 Argo 隧道的哪吒服务端
目录
项目特点:
准备需要用的变量
网络
选项将 gRPC
开关打开https://
开头,回调地址再加上 /oauth2/callback
结尾Argo 认证的获取方式: json 或 token
(方式 1 - Json):
通过 Cloudflare Json 生成网轻松获取 Argo 隧道 json 信息: https://fscarmen.cloudflare.now.cc
(方式 2 - Token): 通过 Cloudflare 官网,手动生成 Argo 隧道 token 信息
到 cf 官网:https://dash.cloudflare.com/
proto.NezhaService
PaaS 部署实例
fscarmen/argo-nezha:latest
, 支持 amd64 和 arm64 架构变量名 是否必须 备注 GH_USER 是 github 的用户名,用于面板管理授权 GH_CLIENTID 是 在 github 上申请 GH_CLIENTSECRET 是 在 github 上申请 GH_BACKUP_USER 否 在 github 上备份哪吒服务端数据库的 github 用户名,不填则与面板管理授权的账户 GH_USER 一致 GH_REPO 否 在 github 上备份哪吒服务端数据库文件的 github 库 GH_EMAIL 否 github 的邮箱,用于备份的 git 推送到远程库 GH_PAT 否 github 的 PAT ARGO_AUTH 是 Json: 从 https://fscarmen.cloudflare.now.cc 获取的 Argo Json
Token: 从 Cloudflare 官网获取ARGO_DOMAIN 是 Argo 域名 VPS 部署方式 1 --- docker
docker 部署
docker run -dit \\
+import{_ as a,o as e,c as s,R as t}from"./chunks/framework.44fd0451.js";const m=JSON.parse('{"title":"使用 Argo 隧道的哪吒服务端","description":"","frontmatter":{},"headers":[],"relativePath":"case/case5.md","filePath":"case/case5.md","lastUpdated":1701657270000}'),l={name:"case/case5.md"},n=t(`
使用 Argo 隧道的哪吒服务端
目录
项目特点:
准备需要用的变量
网络
选项将 gRPC
开关打开https://
开头,回调地址再加上 /oauth2/callback
结尾Argo 认证的获取方式: json 或 token
(方式 1 - Json):
通过 Cloudflare Json 生成网轻松获取 Argo 隧道 json 信息: https://fscarmen.cloudflare.now.cc
(方式 2 - Token): 通过 Cloudflare 官网,手动生成 Argo 隧道 token 信息
到 cf 官网:https://dash.cloudflare.com/
proto.NezhaService
PaaS 部署实例
fscarmen/argo-nezha:latest
, 支持 amd64 和 arm64 架构变量名 是否必须 备注 GH_USER 是 github 的用户名,用于面板管理授权 GH_CLIENTID 是 在 github 上申请 GH_CLIENTSECRET 是 在 github 上申请 GH_BACKUP_USER 否 在 github 上备份哪吒服务端数据库的 github 用户名,不填则与面板管理授权的账户 GH_USER 一致 GH_REPO 否 在 github 上备份哪吒服务端数据库文件的 github 库 GH_EMAIL 否 github 的邮箱,用于备份的 git 推送到远程库 GH_PAT 否 github 的 PAT ARGO_AUTH 是 Json: 从 https://fscarmen.cloudflare.now.cc 获取的 Argo Json
Token: 从 Cloudflare 官网获取ARGO_DOMAIN 是 Argo 域名 VPS 部署方式 1 --- docker
docker 部署
docker run -dit \\
--name nezha_dashboard \\
--pull always \\
--restart always \\
diff --git a/assets/case_case5.md.895ea2d3.lean.js b/assets/case_case5.md.61e47ef0.lean.js
similarity index 85%
rename from assets/case_case5.md.895ea2d3.lean.js
rename to assets/case_case5.md.61e47ef0.lean.js
index 8c10b3e8..87e689d0 100644
--- a/assets/case_case5.md.895ea2d3.lean.js
+++ b/assets/case_case5.md.61e47ef0.lean.js
@@ -1 +1 @@
-import{_ as a,o as e,c as s,R as t}from"./chunks/framework.44fd0451.js";const m=JSON.parse('{"title":"使用 Argo 隧道的哪吒服务端","description":"","frontmatter":{},"headers":[],"relativePath":"case/case5.md","filePath":"case/case5.md","lastUpdated":1701534410000}'),l={name:"case/case5.md"},n=t("",89),r=[n];function o(c,i,p,h,d,g){return e(),s("div",null,r)}const u=a(l,[["render",o]]);export{m as __pageData,u as default};
+import{_ as a,o as e,c as s,R as t}from"./chunks/framework.44fd0451.js";const m=JSON.parse('{"title":"使用 Argo 隧道的哪吒服务端","description":"","frontmatter":{},"headers":[],"relativePath":"case/case5.md","filePath":"case/case5.md","lastUpdated":1701657270000}'),l={name:"case/case5.md"},n=t("",89),r=[n];function o(c,i,p,h,d,g){return e(),s("div",null,r)}const u=a(l,[["render",o]]);export{m as __pageData,u as default};
diff --git a/assets/case_index.md.e7243c50.js b/assets/case_index.md.a1af2544.js
similarity index 88%
rename from assets/case_index.md.e7243c50.js
rename to assets/case_index.md.a1af2544.js
index 092ad86b..93b1d7b9 100644
--- a/assets/case_index.md.e7243c50.js
+++ b/assets/case_index.md.a1af2544.js
@@ -1 +1 @@
-import{_ as e,o as t,c as a}from"./chunks/framework.44fd0451.js";const p=JSON.parse('{"title":"哪吒监控","titleTemplate":"社区项目","description":"","frontmatter":{"layout":"home","title":"哪吒监控","titleTemplate":"社区项目","hero":{"name":"哪吒监控社区项目","text":"社区贡献的相关项目","tagline":"为哪吒监控提供了更多扩展","image":"https://raw.githubusercontent.com/naiba/nezha/master/resource/static/brand.svg","actions":[{"theme":"brand","text":"查看项目 →","link":"/case/case1"}]},"features":[{"title":"提交项目","details":"我们欢迎您提交自己的项目,请加入TG群联系管理员了解相关事宜"},{"title":"注意事项","details":"所有项目均由社区成员贡献,请您知悉哪吒监控团队无法为社区项目承担包括且不限于:保修、可用性、安全性等责任"}]},"headers":[],"relativePath":"case/index.md","filePath":"case/index.md","lastUpdated":1701534410000}'),s={name:"case/index.md"};function n(i,r,c,o,d,l){return t(),a("div")}const _=e(s,[["render",n]]);export{p as __pageData,_ as default};
+import{_ as e,o as t,c as a}from"./chunks/framework.44fd0451.js";const p=JSON.parse('{"title":"哪吒监控","titleTemplate":"社区项目","description":"","frontmatter":{"layout":"home","title":"哪吒监控","titleTemplate":"社区项目","hero":{"name":"哪吒监控社区项目","text":"社区贡献的相关项目","tagline":"为哪吒监控提供了更多扩展","image":"https://raw.githubusercontent.com/naiba/nezha/master/resource/static/brand.svg","actions":[{"theme":"brand","text":"查看项目 →","link":"/case/case1"}]},"features":[{"title":"提交项目","details":"我们欢迎您提交自己的项目,请加入TG群联系管理员了解相关事宜"},{"title":"注意事项","details":"所有项目均由社区成员贡献,请您知悉哪吒监控团队无法为社区项目承担包括且不限于:保修、可用性、安全性等责任"}]},"headers":[],"relativePath":"case/index.md","filePath":"case/index.md","lastUpdated":1701657270000}'),s={name:"case/index.md"};function n(i,r,c,o,d,l){return t(),a("div")}const _=e(s,[["render",n]]);export{p as __pageData,_ as default};
diff --git a/assets/case_index.md.e7243c50.lean.js b/assets/case_index.md.a1af2544.lean.js
similarity index 88%
rename from assets/case_index.md.e7243c50.lean.js
rename to assets/case_index.md.a1af2544.lean.js
index 092ad86b..93b1d7b9 100644
--- a/assets/case_index.md.e7243c50.lean.js
+++ b/assets/case_index.md.a1af2544.lean.js
@@ -1 +1 @@
-import{_ as e,o as t,c as a}from"./chunks/framework.44fd0451.js";const p=JSON.parse('{"title":"哪吒监控","titleTemplate":"社区项目","description":"","frontmatter":{"layout":"home","title":"哪吒监控","titleTemplate":"社区项目","hero":{"name":"哪吒监控社区项目","text":"社区贡献的相关项目","tagline":"为哪吒监控提供了更多扩展","image":"https://raw.githubusercontent.com/naiba/nezha/master/resource/static/brand.svg","actions":[{"theme":"brand","text":"查看项目 →","link":"/case/case1"}]},"features":[{"title":"提交项目","details":"我们欢迎您提交自己的项目,请加入TG群联系管理员了解相关事宜"},{"title":"注意事项","details":"所有项目均由社区成员贡献,请您知悉哪吒监控团队无法为社区项目承担包括且不限于:保修、可用性、安全性等责任"}]},"headers":[],"relativePath":"case/index.md","filePath":"case/index.md","lastUpdated":1701534410000}'),s={name:"case/index.md"};function n(i,r,c,o,d,l){return t(),a("div")}const _=e(s,[["render",n]]);export{p as __pageData,_ as default};
+import{_ as e,o as t,c as a}from"./chunks/framework.44fd0451.js";const p=JSON.parse('{"title":"哪吒监控","titleTemplate":"社区项目","description":"","frontmatter":{"layout":"home","title":"哪吒监控","titleTemplate":"社区项目","hero":{"name":"哪吒监控社区项目","text":"社区贡献的相关项目","tagline":"为哪吒监控提供了更多扩展","image":"https://raw.githubusercontent.com/naiba/nezha/master/resource/static/brand.svg","actions":[{"theme":"brand","text":"查看项目 →","link":"/case/case1"}]},"features":[{"title":"提交项目","details":"我们欢迎您提交自己的项目,请加入TG群联系管理员了解相关事宜"},{"title":"注意事项","details":"所有项目均由社区成员贡献,请您知悉哪吒监控团队无法为社区项目承担包括且不限于:保修、可用性、安全性等责任"}]},"headers":[],"relativePath":"case/index.md","filePath":"case/index.md","lastUpdated":1701657270000}'),s={name:"case/index.md"};function n(i,r,c,o,d,l){return t(),a("div")}const _=e(s,[["render",n]]);export{p as __pageData,_ as default};
diff --git a/assets/developer_index.md.0a6fbe67.js b/assets/developer_index.md.81f35097.js
similarity index 92%
rename from assets/developer_index.md.0a6fbe67.js
rename to assets/developer_index.md.81f35097.js
index 281b1f24..ea4c2ca2 100644
--- a/assets/developer_index.md.0a6fbe67.js
+++ b/assets/developer_index.md.81f35097.js
@@ -1 +1 @@
-import{_ as e,o as t,c as a}from"./chunks/framework.44fd0451.js";const m=JSON.parse('{"title":"哪吒监控","titleTemplate":"开发手册","description":"","frontmatter":{"layout":"home","title":"哪吒监控","titleTemplate":"开发手册","hero":{"name":"开发手册","text":"哪吒监控开发手册","tagline":"我们欢迎你提出高质量的Pull Request,帮助哪吒监控变得更好!","image":"https://raw.githubusercontent.com/naiba/nezha/master/resource/static/brand.svg","actions":[{"theme":"brand","text":"开始使用 →","link":"/developer/theme"}]}},"headers":[],"relativePath":"developer/index.md","filePath":"developer/index.md","lastUpdated":1701534410000}'),r={name:"developer/index.md"};function n(o,s,i,d,l,c){return t(),a("div")}const h=e(r,[["render",n]]);export{m as __pageData,h as default};
+import{_ as e,o as t,c as a}from"./chunks/framework.44fd0451.js";const m=JSON.parse('{"title":"哪吒监控","titleTemplate":"开发手册","description":"","frontmatter":{"layout":"home","title":"哪吒监控","titleTemplate":"开发手册","hero":{"name":"开发手册","text":"哪吒监控开发手册","tagline":"我们欢迎你提出高质量的Pull Request,帮助哪吒监控变得更好!","image":"https://raw.githubusercontent.com/naiba/nezha/master/resource/static/brand.svg","actions":[{"theme":"brand","text":"开始使用 →","link":"/developer/theme"}]}},"headers":[],"relativePath":"developer/index.md","filePath":"developer/index.md","lastUpdated":1701657270000}'),r={name:"developer/index.md"};function n(o,s,i,d,l,c){return t(),a("div")}const h=e(r,[["render",n]]);export{m as __pageData,h as default};
diff --git a/assets/developer_index.md.0a6fbe67.lean.js b/assets/developer_index.md.81f35097.lean.js
similarity index 92%
rename from assets/developer_index.md.0a6fbe67.lean.js
rename to assets/developer_index.md.81f35097.lean.js
index 281b1f24..ea4c2ca2 100644
--- a/assets/developer_index.md.0a6fbe67.lean.js
+++ b/assets/developer_index.md.81f35097.lean.js
@@ -1 +1 @@
-import{_ as e,o as t,c as a}from"./chunks/framework.44fd0451.js";const m=JSON.parse('{"title":"哪吒监控","titleTemplate":"开发手册","description":"","frontmatter":{"layout":"home","title":"哪吒监控","titleTemplate":"开发手册","hero":{"name":"开发手册","text":"哪吒监控开发手册","tagline":"我们欢迎你提出高质量的Pull Request,帮助哪吒监控变得更好!","image":"https://raw.githubusercontent.com/naiba/nezha/master/resource/static/brand.svg","actions":[{"theme":"brand","text":"开始使用 →","link":"/developer/theme"}]}},"headers":[],"relativePath":"developer/index.md","filePath":"developer/index.md","lastUpdated":1701534410000}'),r={name:"developer/index.md"};function n(o,s,i,d,l,c){return t(),a("div")}const h=e(r,[["render",n]]);export{m as __pageData,h as default};
+import{_ as e,o as t,c as a}from"./chunks/framework.44fd0451.js";const m=JSON.parse('{"title":"哪吒监控","titleTemplate":"开发手册","description":"","frontmatter":{"layout":"home","title":"哪吒监控","titleTemplate":"开发手册","hero":{"name":"开发手册","text":"哪吒监控开发手册","tagline":"我们欢迎你提出高质量的Pull Request,帮助哪吒监控变得更好!","image":"https://raw.githubusercontent.com/naiba/nezha/master/resource/static/brand.svg","actions":[{"theme":"brand","text":"开始使用 →","link":"/developer/theme"}]}},"headers":[],"relativePath":"developer/index.md","filePath":"developer/index.md","lastUpdated":1701657270000}'),r={name:"developer/index.md"};function n(o,s,i,d,l,c){return t(),a("div")}const h=e(r,[["render",n]]);export{m as __pageData,h as default};
diff --git a/assets/developer_l10n.md.06ab96bd.js b/assets/developer_l10n.md.b6436c45.js
similarity index 95%
rename from assets/developer_l10n.md.06ab96bd.js
rename to assets/developer_l10n.md.b6436c45.js
index 551b49cb..a768fec1 100644
--- a/assets/developer_l10n.md.06ab96bd.js
+++ b/assets/developer_l10n.md.b6436c45.js
@@ -1 +1 @@
-import{_ as e,o,c as a,R as t}from"./chunks/framework.44fd0451.js";const u=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"developer/l10n.md","filePath":"developer/l10n.md","lastUpdated":1701534410000}'),l={name:"developer/l10n.md"},r=t('
介绍
/resource/l10n/zh-CN.toml
中已有的文本配置来替换新功能中的文本zh-CN.toml
的配置文本,将新文本拉取到 zh-CN.toml
等其他语言的配置文件中,并添加翻译新本地化文本的添加
',5),c=[r];function d(n,i,s,_,h,p){return o(),a("div",null,c)}const f=e(l,[["render",d]]);export{u as __pageData,f as default};
+import{_ as e,o,c as a,R as t}from"./chunks/framework.44fd0451.js";const u=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"developer/l10n.md","filePath":"developer/l10n.md","lastUpdated":1701657270000}'),l={name:"developer/l10n.md"},r=t('/resource/l10n/
中添加新的语言文本配置介绍
/resource/l10n/zh-CN.toml
中已有的文本配置来替换新功能中的文本zh-CN.toml
的配置文本,将新文本拉取到 zh-CN.toml
等其他语言的配置文件中,并添加翻译新本地化文本的添加
',5),c=[r];function d(n,i,s,_,h,p){return o(),a("div",null,c)}const f=e(l,[["render",d]]);export{u as __pageData,f as default};
diff --git a/assets/developer_l10n.md.06ab96bd.lean.js b/assets/developer_l10n.md.b6436c45.lean.js
similarity index 84%
rename from assets/developer_l10n.md.06ab96bd.lean.js
rename to assets/developer_l10n.md.b6436c45.lean.js
index e828f342..13778703 100644
--- a/assets/developer_l10n.md.06ab96bd.lean.js
+++ b/assets/developer_l10n.md.b6436c45.lean.js
@@ -1 +1 @@
-import{_ as e,o,c as a,R as t}from"./chunks/framework.44fd0451.js";const u=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"developer/l10n.md","filePath":"developer/l10n.md","lastUpdated":1701534410000}'),l={name:"developer/l10n.md"},r=t("",5),c=[r];function d(n,i,s,_,h,p){return o(),a("div",null,c)}const f=e(l,[["render",d]]);export{u as __pageData,f as default};
+import{_ as e,o,c as a,R as t}from"./chunks/framework.44fd0451.js";const u=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"developer/l10n.md","filePath":"developer/l10n.md","lastUpdated":1701657270000}'),l={name:"developer/l10n.md"},r=t("",5),c=[r];function d(n,i,s,_,h,p){return o(),a("div",null,c)}const f=e(l,[["render",d]]);export{u as __pageData,f as default};
diff --git a/assets/developer_theme.md.8c7acb53.js b/assets/developer_theme.md.e210be7c.js
similarity index 96%
rename from assets/developer_theme.md.8c7acb53.js
rename to assets/developer_theme.md.e210be7c.js
index 1d8c2b4b..f3044fc8 100644
--- a/assets/developer_theme.md.8c7acb53.js
+++ b/assets/developer_theme.md.e210be7c.js
@@ -1 +1 @@
-import{_ as e,o,c as a,R as t}from"./chunks/framework.44fd0451.js";const u=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"developer/theme.md","filePath":"developer/theme.md","lastUpdated":1701534410000}'),c={name:"developer/theme.md"},l=t('/resource/l10n/
中添加新的语言文本配置哪吒主题开发环境
dashboard v0.13.16
及更新版本。使用说明
data/config.yaml
中的 Oauth2 配置(回调连接可以填 http://localhost
)docker-compose up
theme-custom
放置到服务器上的 /opt/nezha/dashboard/theme-custom
位置FAQ
',7),d=[l];function r(s,i,h,n,m,_){return o(),a("div",null,d)}const f=e(c,[["render",r]]);export{u as __pageData,f as default};
+import{_ as e,o,c as a,R as t}from"./chunks/framework.44fd0451.js";const u=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"developer/theme.md","filePath":"developer/theme.md","lastUpdated":1701657270000}'),c={name:"developer/theme.md"},l=t('80
端口,在 docker-compose.yaml
中修改配置。哪吒主题开发环境
dashboard v0.13.16
及更新版本。使用说明
data/config.yaml
中的 Oauth2 配置(回调连接可以填 http://localhost
)docker-compose up
theme-custom
放置到服务器上的 /opt/nezha/dashboard/theme-custom
位置FAQ
',7),d=[l];function r(s,i,h,n,m,_){return o(),a("div",null,d)}const f=e(c,[["render",r]]);export{u as __pageData,f as default};
diff --git a/assets/developer_theme.md.8c7acb53.lean.js b/assets/developer_theme.md.e210be7c.lean.js
similarity index 84%
rename from assets/developer_theme.md.8c7acb53.lean.js
rename to assets/developer_theme.md.e210be7c.lean.js
index 57d6714a..8f6bc417 100644
--- a/assets/developer_theme.md.8c7acb53.lean.js
+++ b/assets/developer_theme.md.e210be7c.lean.js
@@ -1 +1 @@
-import{_ as e,o,c as a,R as t}from"./chunks/framework.44fd0451.js";const u=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"developer/theme.md","filePath":"developer/theme.md","lastUpdated":1701534410000}'),c={name:"developer/theme.md"},l=t("",7),d=[l];function r(s,i,h,n,m,_){return o(),a("div",null,d)}const f=e(c,[["render",r]]);export{u as __pageData,f as default};
+import{_ as e,o,c as a,R as t}from"./chunks/framework.44fd0451.js";const u=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"developer/theme.md","filePath":"developer/theme.md","lastUpdated":1701657270000}'),c={name:"developer/theme.md"},l=t("",7),d=[l];function r(s,i,h,n,m,_){return o(),a("div",null,d)}const f=e(c,[["render",r]]);export{u as __pageData,f as default};
diff --git a/assets/en_US_case_case1.md.628438cc.js b/assets/en_US_case_case1.md.e848fbbc.js
similarity index 95%
rename from assets/en_US_case_case1.md.628438cc.js
rename to assets/en_US_case_case1.md.e848fbbc.js
index 56cf0281..22f208d5 100644
--- a/assets/en_US_case_case1.md.628438cc.js
+++ b/assets/en_US_case_case1.md.e848fbbc.js
@@ -1 +1 @@
-import{_ as e,o as t,c as r,R as o}from"./chunks/framework.44fd0451.js";const d=JSON.parse('{"title":"Build your own Telegram bot to query server information","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/case/case1.md","filePath":"en_US/case/case1.md","lastUpdated":1701534410000}'),a={name:"en_US/case/case1.md"},n=o('80
端口,在 docker-compose.yaml
中修改配置。Build your own Telegram bot to query server information
You can build this bot to easily view the current status of a given server without opening the Dashboard.Build your own Telegram bot to query server information
You can build this bot to easily view the current status of a given server without opening the Dashboard.Use Siri to run shortcut to check server status in iOS/MacOS
Contributor:Get shortcut command
MacOS users please visit here to get the shortcutHow to use
Dashboard URL
, API Token
, Server ID
in the three text boxesUse Siri to run shortcut to check server status in iOS/MacOS
Contributor:Get shortcut command
MacOS users please visit here to get the shortcutHow to use
Dashboard URL
, API Token
, Server ID
in the three text boxesBuild your own server status query Telegram bot with multi-language and multi-user support
Features
Commands list
',9),o=[i];function s(l,n,u,h,p,m){return e(),r("div",null,o)}const _=t(d,[["render",s]]);export{g as __pageData,_ as default};
+import{_ as t,o as e,c as r,R as a}from"./chunks/framework.44fd0451.js";const g=JSON.parse('{"title":"Build your own server status query Telegram bot with multi-language and multi-user support","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/case/case3.md","filePath":"en_US/case/case3.md","lastUpdated":1701657270000}'),d={name:"en_US/case/case3.md"},i=a('Command Description Private chat only start Getting started with the keyboard main menu ✔️ help help message ❌ add Add Nezha monitoring url link and token ✔️ url Add Nezha monitoring url link ✔️ token Add Nezha monitoring token ✔️ info Get saved Nezha monitoring url link and token ✔️ delete Delete saved Nezha monitoring url link and token ✔️ id Add an integer id after the command to query the information of a single server (refresh button only available in private chat) ❌ all Query statistics for all servers ❌ search Search for keywords in server names (multiple keywords supported, split by spaces) ❌ Build your own server status query Telegram bot with multi-language and multi-user support
Features
Commands list
',9),o=[i];function s(l,n,u,h,p,m){return e(),r("div",null,o)}const _=t(d,[["render",s]]);export{g as __pageData,_ as default};
diff --git a/assets/en_US_case_case3.md.a5875c00.lean.js b/assets/en_US_case_case3.md.1c92786b.lean.js
similarity index 87%
rename from assets/en_US_case_case3.md.a5875c00.lean.js
rename to assets/en_US_case_case3.md.1c92786b.lean.js
index ae3459a6..fe2e3e41 100644
--- a/assets/en_US_case_case3.md.a5875c00.lean.js
+++ b/assets/en_US_case_case3.md.1c92786b.lean.js
@@ -1 +1 @@
-import{_ as t,o as e,c as r,R as a}from"./chunks/framework.44fd0451.js";const g=JSON.parse('{"title":"Build your own server status query Telegram bot with multi-language and multi-user support","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/case/case3.md","filePath":"en_US/case/case3.md","lastUpdated":1701534410000}'),d={name:"en_US/case/case3.md"},i=a("",9),o=[i];function s(l,n,u,h,p,m){return e(),r("div",null,o)}const _=t(d,[["render",s]]);export{g as __pageData,_ as default};
+import{_ as t,o as e,c as r,R as a}from"./chunks/framework.44fd0451.js";const g=JSON.parse('{"title":"Build your own server status query Telegram bot with multi-language and multi-user support","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/case/case3.md","filePath":"en_US/case/case3.md","lastUpdated":1701657270000}'),d={name:"en_US/case/case3.md"},i=a("",9),o=[i];function s(l,n,u,h,p,m){return e(),r("div",null,o)}const _=t(d,[["render",s]]);export{g as __pageData,_ as default};
diff --git a/assets/en_US_case_case4.md.b3a4b972.js b/assets/en_US_case_case4.md.4d534d6b.js
similarity index 94%
rename from assets/en_US_case_case4.md.b3a4b972.js
rename to assets/en_US_case_case4.md.4d534d6b.js
index 4d903db1..ef236ef0 100644
--- a/assets/en_US_case_case4.md.b3a4b972.js
+++ b/assets/en_US_case_case4.md.4d534d6b.js
@@ -1 +1 @@
-import{_ as e,o as a,c as t,R as r}from"./chunks/framework.44fd0451.js";const g=JSON.parse('{"title":"Fake-agent, monitoring data cheater","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/case/case4.md","filePath":"en_US/case/case4.md","lastUpdated":1701534410000}'),n={name:"en_US/case/case4.md"},o=r('Command Description Private chat only start Getting started with the keyboard main menu ✔️ help help message ❌ add Add Nezha monitoring url link and token ✔️ url Add Nezha monitoring url link ✔️ token Add Nezha monitoring token ✔️ info Get saved Nezha monitoring url link and token ✔️ delete Delete saved Nezha monitoring url link and token ✔️ id Add an integer id after the command to query the information of a single server (refresh button only available in private chat) ❌ all Query statistics for all servers ❌ search Search for keywords in server names (multiple keywords supported, split by spaces) ❌ Fake-agent, monitoring data cheater
Mirror backup, non-real-time update :fake-nezha-agent(Chinese)
Use it for cheating 😈Fake-agent, monitoring data cheater
Mirror backup, non-real-time update :fake-nezha-agent(Chinese)
Use it for cheating 😈Nezha server over Argo tunnel
Catalog
Project Features.
Prepare variables to be used
network
option to turn the gRPC
switch on.https://
to the beginning of the panel's domain name and /oauth2/callback
to the end of the callback address.How to get Argo authentication: json or token
(Methods 1 - Json):
Easily get Argo tunnel json information through Cloudflare Json Generation Network: https://fscarmen.cloudflare.now.cc
(Methods 2 - Token): Manually generate Argo tunnel token information via Cloudflare website.
Go to the cf website: https://dash.cloudflare.com/
PaaS Deployment Example
fscarmen/argo-nezha:latest
, supports amd64 and arm64 architectures.Variable Name Required Remarks GH_USER Yes github username for panel admin authorization GH_CLIENTID yes apply on github GH_CLIENTSECRET yes apply on github GH_BACKUP_USER No The github username for backing up Nezha's server-side database on github, if not filled in, it is the same as the account GH_USER for panel management authorization GH_REPO No The github repository for backing up Nezha's server-side database files on github GH_EMAIL No github's mailbox for git push backups to remote repositories GH_PAT No github's PAT ARGO_AUTH Yes Argo Json from https://fscarmen.cloudflare.now.cc
Argo token from Cloudflare official websiteARGO_DOMAIN Yes Argo domain VPS Deployment Method 1 --- docker
docker deployment
docker run -dit \\
+import{_ as e,o as a,c as t,R as s}from"./chunks/framework.44fd0451.js";const g=JSON.parse('{"title":"Nezha server over Argo tunnel","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/case/case5.md","filePath":"en_US/case/case5.md","lastUpdated":1701657270000}'),n={name:"en_US/case/case5.md"},o=s(`
Nezha server over Argo tunnel
Catalog
Project Features.
Prepare variables to be used
network
option to turn the gRPC
switch on.https://
to the beginning of the panel's domain name and /oauth2/callback
to the end of the callback address.How to get Argo authentication: json or token
(Methods 1 - Json):
Easily get Argo tunnel json information through Cloudflare Json Generation Network: https://fscarmen.cloudflare.now.cc
(Methods 2 - Token): Manually generate Argo tunnel token information via Cloudflare website.
Go to the cf website: https://dash.cloudflare.com/
PaaS Deployment Example
fscarmen/argo-nezha:latest
, supports amd64 and arm64 architectures.Variable Name Required Remarks GH_USER Yes github username for panel admin authorization GH_CLIENTID yes apply on github GH_CLIENTSECRET yes apply on github GH_BACKUP_USER No The github username for backing up Nezha's server-side database on github, if not filled in, it is the same as the account GH_USER for panel management authorization GH_REPO No The github repository for backing up Nezha's server-side database files on github GH_EMAIL No github's mailbox for git push backups to remote repositories GH_PAT No github's PAT ARGO_AUTH Yes Argo Json from https://fscarmen.cloudflare.now.cc
Argo token from Cloudflare official websiteARGO_DOMAIN Yes Argo domain VPS Deployment Method 1 --- docker
docker deployment
docker run -dit \\
--name nezha_dashboard \\
--pull always \\
--restart always \\
diff --git a/assets/en_US_case_case5.md.3404425e.lean.js b/assets/en_US_case_case5.md.6c18c5b9.lean.js
similarity index 85%
rename from assets/en_US_case_case5.md.3404425e.lean.js
rename to assets/en_US_case_case5.md.6c18c5b9.lean.js
index a437fe1c..e7e5a946 100644
--- a/assets/en_US_case_case5.md.3404425e.lean.js
+++ b/assets/en_US_case_case5.md.6c18c5b9.lean.js
@@ -1 +1 @@
-import{_ as e,o as a,c as t,R as s}from"./chunks/framework.44fd0451.js";const g=JSON.parse('{"title":"Nezha server over Argo tunnel","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/case/case5.md","filePath":"en_US/case/case5.md","lastUpdated":1701534410000}'),n={name:"en_US/case/case5.md"},o=s("",89),r=[o];function l(i,c,h,p,d,u){return a(),t("div",null,r)}const f=e(n,[["render",l]]);export{g as __pageData,f as default};
+import{_ as e,o as a,c as t,R as s}from"./chunks/framework.44fd0451.js";const g=JSON.parse('{"title":"Nezha server over Argo tunnel","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/case/case5.md","filePath":"en_US/case/case5.md","lastUpdated":1701657270000}'),n={name:"en_US/case/case5.md"},o=s("",89),r=[o];function l(i,c,h,p,d,u){return a(),t("div",null,r)}const f=e(n,[["render",l]]);export{g as __pageData,f as default};
diff --git a/assets/en_US_case_index.md.464e1cf1.js b/assets/en_US_case_index.md.7ec1af17.js
similarity index 95%
rename from assets/en_US_case_index.md.464e1cf1.js
rename to assets/en_US_case_index.md.7ec1af17.js
index a2201167..bfdb4dec 100644
--- a/assets/en_US_case_index.md.464e1cf1.js
+++ b/assets/en_US_case_index.md.7ec1af17.js
@@ -1 +1 @@
-import{_ as e,o as t,c as a}from"./chunks/framework.44fd0451.js";const u=JSON.parse('{"title":"Nezha Monitoring","titleTemplate":"Community Project","description":"","frontmatter":{"layout":"home","title":"Nezha Monitoring","titleTemplate":"Community Project","hero":{"name":"Nezha Monitoring","text":"Community Project","tagline":"Nezha Monitoring has benefited from various projects contributed by the community, which have provided it with additional extensions.","image":"https://raw.githubusercontent.com/naiba/nezha/master/resource/static/brand.svg","actions":[{"theme":"brand","text":"Learn More →","link":"/en_US/case/case1"}]},"features":[{"title":"Submit a project","details":"We welcome you to submit your own project. Please join the Telegram group to contact the administrator for further information."},{"title":"Important Notes","details":"All projects are contributed by community members. Please be aware that the Nezha Monitoring Team cannot assume responsibility for community projects, including but not limited to warranty, availability, security, etc."}]},"headers":[],"relativePath":"en_US/case/index.md","filePath":"en_US/case/index.md","lastUpdated":1701534410000}'),o={name:"en_US/case/index.md"};function i(n,r,s,c,m,l){return t(),a("div")}const h=e(o,[["render",i]]);export{u as __pageData,h as default};
+import{_ as e,o as t,c as a}from"./chunks/framework.44fd0451.js";const u=JSON.parse('{"title":"Nezha Monitoring","titleTemplate":"Community Project","description":"","frontmatter":{"layout":"home","title":"Nezha Monitoring","titleTemplate":"Community Project","hero":{"name":"Nezha Monitoring","text":"Community Project","tagline":"Nezha Monitoring has benefited from various projects contributed by the community, which have provided it with additional extensions.","image":"https://raw.githubusercontent.com/naiba/nezha/master/resource/static/brand.svg","actions":[{"theme":"brand","text":"Learn More →","link":"/en_US/case/case1"}]},"features":[{"title":"Submit a project","details":"We welcome you to submit your own project. Please join the Telegram group to contact the administrator for further information."},{"title":"Important Notes","details":"All projects are contributed by community members. Please be aware that the Nezha Monitoring Team cannot assume responsibility for community projects, including but not limited to warranty, availability, security, etc."}]},"headers":[],"relativePath":"en_US/case/index.md","filePath":"en_US/case/index.md","lastUpdated":1701657270000}'),o={name:"en_US/case/index.md"};function i(n,r,s,c,m,l){return t(),a("div")}const h=e(o,[["render",i]]);export{u as __pageData,h as default};
diff --git a/assets/en_US_case_index.md.464e1cf1.lean.js b/assets/en_US_case_index.md.7ec1af17.lean.js
similarity index 95%
rename from assets/en_US_case_index.md.464e1cf1.lean.js
rename to assets/en_US_case_index.md.7ec1af17.lean.js
index a2201167..bfdb4dec 100644
--- a/assets/en_US_case_index.md.464e1cf1.lean.js
+++ b/assets/en_US_case_index.md.7ec1af17.lean.js
@@ -1 +1 @@
-import{_ as e,o as t,c as a}from"./chunks/framework.44fd0451.js";const u=JSON.parse('{"title":"Nezha Monitoring","titleTemplate":"Community Project","description":"","frontmatter":{"layout":"home","title":"Nezha Monitoring","titleTemplate":"Community Project","hero":{"name":"Nezha Monitoring","text":"Community Project","tagline":"Nezha Monitoring has benefited from various projects contributed by the community, which have provided it with additional extensions.","image":"https://raw.githubusercontent.com/naiba/nezha/master/resource/static/brand.svg","actions":[{"theme":"brand","text":"Learn More →","link":"/en_US/case/case1"}]},"features":[{"title":"Submit a project","details":"We welcome you to submit your own project. Please join the Telegram group to contact the administrator for further information."},{"title":"Important Notes","details":"All projects are contributed by community members. Please be aware that the Nezha Monitoring Team cannot assume responsibility for community projects, including but not limited to warranty, availability, security, etc."}]},"headers":[],"relativePath":"en_US/case/index.md","filePath":"en_US/case/index.md","lastUpdated":1701534410000}'),o={name:"en_US/case/index.md"};function i(n,r,s,c,m,l){return t(),a("div")}const h=e(o,[["render",i]]);export{u as __pageData,h as default};
+import{_ as e,o as t,c as a}from"./chunks/framework.44fd0451.js";const u=JSON.parse('{"title":"Nezha Monitoring","titleTemplate":"Community Project","description":"","frontmatter":{"layout":"home","title":"Nezha Monitoring","titleTemplate":"Community Project","hero":{"name":"Nezha Monitoring","text":"Community Project","tagline":"Nezha Monitoring has benefited from various projects contributed by the community, which have provided it with additional extensions.","image":"https://raw.githubusercontent.com/naiba/nezha/master/resource/static/brand.svg","actions":[{"theme":"brand","text":"Learn More →","link":"/en_US/case/case1"}]},"features":[{"title":"Submit a project","details":"We welcome you to submit your own project. Please join the Telegram group to contact the administrator for further information."},{"title":"Important Notes","details":"All projects are contributed by community members. Please be aware that the Nezha Monitoring Team cannot assume responsibility for community projects, including but not limited to warranty, availability, security, etc."}]},"headers":[],"relativePath":"en_US/case/index.md","filePath":"en_US/case/index.md","lastUpdated":1701657270000}'),o={name:"en_US/case/index.md"};function i(n,r,s,c,m,l){return t(),a("div")}const h=e(o,[["render",i]]);export{u as __pageData,h as default};
diff --git a/assets/en_US_developer_index.md.5e431eca.js b/assets/en_US_developer_index.md.1a0cf677.js
similarity index 91%
rename from assets/en_US_developer_index.md.5e431eca.js
rename to assets/en_US_developer_index.md.1a0cf677.js
index 10d3a5ec..8aa4a65e 100644
--- a/assets/en_US_developer_index.md.5e431eca.js
+++ b/assets/en_US_developer_index.md.1a0cf677.js
@@ -1 +1 @@
-import{_ as e,o as t,c as a}from"./chunks/framework.44fd0451.js";const c=JSON.parse('{"title":"Nezha Monitoring","titleTemplate":"Development Manual","description":"","frontmatter":{"layout":"home","title":"Nezha Monitoring","titleTemplate":"Development Manual","hero":{"name":"Development Manual","text":"Nezha Monitoring Development Manual.","image":"https://raw.githubusercontent.com/naiba/nezha/master/resource/static/brand.svg","actions":[{"theme":"brand","text":"Start Now →","link":"/en_US/developer/theme"}]}},"headers":[],"relativePath":"en_US/developer/index.md","filePath":"en_US/developer/index.md","lastUpdated":1701534410000}'),n={name:"en_US/developer/index.md"};function o(r,i,l,s,p,d){return t(),a("div")}const _=e(n,[["render",o]]);export{c as __pageData,_ as default};
+import{_ as e,o as t,c as a}from"./chunks/framework.44fd0451.js";const c=JSON.parse('{"title":"Nezha Monitoring","titleTemplate":"Development Manual","description":"","frontmatter":{"layout":"home","title":"Nezha Monitoring","titleTemplate":"Development Manual","hero":{"name":"Development Manual","text":"Nezha Monitoring Development Manual.","image":"https://raw.githubusercontent.com/naiba/nezha/master/resource/static/brand.svg","actions":[{"theme":"brand","text":"Start Now →","link":"/en_US/developer/theme"}]}},"headers":[],"relativePath":"en_US/developer/index.md","filePath":"en_US/developer/index.md","lastUpdated":1701657270000}'),n={name:"en_US/developer/index.md"};function o(r,i,l,s,p,d){return t(),a("div")}const _=e(n,[["render",o]]);export{c as __pageData,_ as default};
diff --git a/assets/en_US_developer_index.md.5e431eca.lean.js b/assets/en_US_developer_index.md.1a0cf677.lean.js
similarity index 91%
rename from assets/en_US_developer_index.md.5e431eca.lean.js
rename to assets/en_US_developer_index.md.1a0cf677.lean.js
index 10d3a5ec..8aa4a65e 100644
--- a/assets/en_US_developer_index.md.5e431eca.lean.js
+++ b/assets/en_US_developer_index.md.1a0cf677.lean.js
@@ -1 +1 @@
-import{_ as e,o as t,c as a}from"./chunks/framework.44fd0451.js";const c=JSON.parse('{"title":"Nezha Monitoring","titleTemplate":"Development Manual","description":"","frontmatter":{"layout":"home","title":"Nezha Monitoring","titleTemplate":"Development Manual","hero":{"name":"Development Manual","text":"Nezha Monitoring Development Manual.","image":"https://raw.githubusercontent.com/naiba/nezha/master/resource/static/brand.svg","actions":[{"theme":"brand","text":"Start Now →","link":"/en_US/developer/theme"}]}},"headers":[],"relativePath":"en_US/developer/index.md","filePath":"en_US/developer/index.md","lastUpdated":1701534410000}'),n={name:"en_US/developer/index.md"};function o(r,i,l,s,p,d){return t(),a("div")}const _=e(n,[["render",o]]);export{c as __pageData,_ as default};
+import{_ as e,o as t,c as a}from"./chunks/framework.44fd0451.js";const c=JSON.parse('{"title":"Nezha Monitoring","titleTemplate":"Development Manual","description":"","frontmatter":{"layout":"home","title":"Nezha Monitoring","titleTemplate":"Development Manual","hero":{"name":"Development Manual","text":"Nezha Monitoring Development Manual.","image":"https://raw.githubusercontent.com/naiba/nezha/master/resource/static/brand.svg","actions":[{"theme":"brand","text":"Start Now →","link":"/en_US/developer/theme"}]}},"headers":[],"relativePath":"en_US/developer/index.md","filePath":"en_US/developer/index.md","lastUpdated":1701657270000}'),n={name:"en_US/developer/index.md"};function o(r,i,l,s,p,d){return t(),a("div")}const _=e(n,[["render",o]]);export{c as __pageData,_ as default};
diff --git a/assets/en_US_developer_l10n.md.88ba36b5.js b/assets/en_US_developer_l10n.md.2a9aef1c.js
similarity index 96%
rename from assets/en_US_developer_l10n.md.88ba36b5.js
rename to assets/en_US_developer_l10n.md.2a9aef1c.js
index 7b5abaf8..47d57c87 100644
--- a/assets/en_US_developer_l10n.md.88ba36b5.js
+++ b/assets/en_US_developer_l10n.md.2a9aef1c.js
@@ -1 +1 @@
-import{_ as e,o as t,c as a,R as n}from"./chunks/framework.44fd0451.js";const g=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/developer/l10n.md","filePath":"en_US/developer/l10n.md","lastUpdated":1701534410000}'),o={name:"en_US/developer/l10n.md"},i=n('
Introduction
/resource/l10n/en-US.toml
to replace the text in the new feature.en-US.toml
, pull the new text into the configuration files of other languages such as en-US.toml
, and add translations.Adding a new localized text file
',5),l=[i];function r(d,c,s,u,h,f){return t(),a("div",null,l)}const p=e(o,[["render",r]]);export{g as __pageData,p as default};
+import{_ as e,o as t,c as a,R as n}from"./chunks/framework.44fd0451.js";const g=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/developer/l10n.md","filePath":"en_US/developer/l10n.md","lastUpdated":1701657270000}'),o={name:"en_US/developer/l10n.md"},i=n('/resource/l10n/
.Introduction
/resource/l10n/en-US.toml
to replace the text in the new feature.en-US.toml
, pull the new text into the configuration files of other languages such as en-US.toml
, and add translations.Adding a new localized text file
',5),l=[i];function r(d,c,s,u,h,f){return t(),a("div",null,l)}const p=e(o,[["render",r]]);export{g as __pageData,p as default};
diff --git a/assets/en_US_developer_l10n.md.88ba36b5.lean.js b/assets/en_US_developer_l10n.md.2a9aef1c.lean.js
similarity index 85%
rename from assets/en_US_developer_l10n.md.88ba36b5.lean.js
rename to assets/en_US_developer_l10n.md.2a9aef1c.lean.js
index ac752d61..0fc146c7 100644
--- a/assets/en_US_developer_l10n.md.88ba36b5.lean.js
+++ b/assets/en_US_developer_l10n.md.2a9aef1c.lean.js
@@ -1 +1 @@
-import{_ as e,o as t,c as a,R as n}from"./chunks/framework.44fd0451.js";const g=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/developer/l10n.md","filePath":"en_US/developer/l10n.md","lastUpdated":1701534410000}'),o={name:"en_US/developer/l10n.md"},i=n("",5),l=[i];function r(d,c,s,u,h,f){return t(),a("div",null,l)}const p=e(o,[["render",r]]);export{g as __pageData,p as default};
+import{_ as e,o as t,c as a,R as n}from"./chunks/framework.44fd0451.js";const g=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/developer/l10n.md","filePath":"en_US/developer/l10n.md","lastUpdated":1701657270000}'),o={name:"en_US/developer/l10n.md"},i=n("",5),l=[i];function r(d,c,s,u,h,f){return t(),a("div",null,l)}const p=e(o,[["render",r]]);export{g as __pageData,p as default};
diff --git a/assets/en_US_developer_theme.md.ab8eaaf4.js b/assets/en_US_developer_theme.md.5266fa36.js
similarity index 96%
rename from assets/en_US_developer_theme.md.ab8eaaf4.js
rename to assets/en_US_developer_theme.md.5266fa36.js
index 259aa3fc..5c5ed522 100644
--- a/assets/en_US_developer_theme.md.ab8eaaf4.js
+++ b/assets/en_US_developer_theme.md.5266fa36.js
@@ -1 +1 @@
-import{_ as e,o,c as t,R as a}from"./chunks/framework.44fd0451.js";const _=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/developer/theme.md","filePath":"en_US/developer/theme.md","lastUpdated":1701534410000}'),n={name:"en_US/developer/theme.md"},c=a('/resource/l10n/
.Nezha Theme Development Environment
dashboard v0.13.16
and newer versions.How to use
data/config.yaml
(The callback connection can be filled with http://localhost
)docker-compose up
theme-custom
in /opt/nezha/dashboard/theme-custom
on the serverFAQ
',7),r=[c];function l(i,h,d,s,m,p){return o(),t("div",null,r)}const v=e(n,[["render",l]]);export{_ as __pageData,v as default};
+import{_ as e,o,c as t,R as a}from"./chunks/framework.44fd0451.js";const _=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/developer/theme.md","filePath":"en_US/developer/theme.md","lastUpdated":1701657270000}'),n={name:"en_US/developer/theme.md"},c=a('80
, change the configuration in docker-compose.yaml
.Nezha Theme Development Environment
dashboard v0.13.16
and newer versions.How to use
data/config.yaml
(The callback connection can be filled with http://localhost
)docker-compose up
theme-custom
in /opt/nezha/dashboard/theme-custom
on the serverFAQ
',7),r=[c];function l(i,h,d,s,m,p){return o(),t("div",null,r)}const v=e(n,[["render",l]]);export{_ as __pageData,v as default};
diff --git a/assets/en_US_developer_theme.md.ab8eaaf4.lean.js b/assets/en_US_developer_theme.md.5266fa36.lean.js
similarity index 84%
rename from assets/en_US_developer_theme.md.ab8eaaf4.lean.js
rename to assets/en_US_developer_theme.md.5266fa36.lean.js
index 0685702e..6596e410 100644
--- a/assets/en_US_developer_theme.md.ab8eaaf4.lean.js
+++ b/assets/en_US_developer_theme.md.5266fa36.lean.js
@@ -1 +1 @@
-import{_ as e,o,c as t,R as a}from"./chunks/framework.44fd0451.js";const _=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/developer/theme.md","filePath":"en_US/developer/theme.md","lastUpdated":1701534410000}'),n={name:"en_US/developer/theme.md"},c=a("",7),r=[c];function l(i,h,d,s,m,p){return o(),t("div",null,r)}const v=e(n,[["render",l]]);export{_ as __pageData,v as default};
+import{_ as e,o,c as t,R as a}from"./chunks/framework.44fd0451.js";const _=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/developer/theme.md","filePath":"en_US/developer/theme.md","lastUpdated":1701657270000}'),n={name:"en_US/developer/theme.md"},c=a("",7),r=[c];function l(i,h,d,s,m,p){return o(),t("div",null,r)}const v=e(n,[["render",l]]);export{_ as __pageData,v as default};
diff --git a/assets/en_US_guide_agent.md.6683a40f.js b/assets/en_US_guide_agent.md.d322f5fc.js
similarity index 99%
rename from assets/en_US_guide_agent.md.6683a40f.js
rename to assets/en_US_guide_agent.md.d322f5fc.js
index dc313f38..d71784ee 100644
--- a/assets/en_US_guide_agent.md.6683a40f.js
+++ b/assets/en_US_guide_agent.md.d322f5fc.js
@@ -1,4 +1,4 @@
-import{_ as s,o as n,c as a,R as l}from"./chunks/framework.44fd0451.js";const h=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/guide/agent.md","filePath":"en_US/guide/agent.md","lastUpdated":1701534410000}'),o={name:"en_US/guide/agent.md"},e=l(`80
, change the configuration in docker-compose.yaml
.Install Agent using one-click script
Preparation
Enter the administration panel, go to the "Settings" page, in the item "CDN Bypassed Domain/IP ", fill in the communication domain name, and then click "Save"One-click installation on Linux (Ubuntu, Debian, CentOS)
One-click installation on Windows
Other ways to install Agent
Installing Agent on Linux (Ubuntu, Debian, CentOS)
curl -L https://raw.githubusercontent.com/naiba/nezha/master/script/install_en.sh -o nezha.sh && chmod +x nezha.sh && sudo ./nezha.sh
Installing Agent on other Linux (such as alpine use oprec not systemd)
cat >/etc/init.d/nezha-agent<< EOF
+import{_ as s,o as n,c as a,R as l}from"./chunks/framework.44fd0451.js";const h=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/guide/agent.md","filePath":"en_US/guide/agent.md","lastUpdated":1701657270000}'),o={name:"en_US/guide/agent.md"},e=l(`
Install Agent using one-click script
Preparation
Enter the administration panel, go to the "Settings" page, in the item "CDN Bypassed Domain/IP ", fill in the communication domain name, and then click "Save"One-click installation on Linux (Ubuntu, Debian, CentOS)
One-click installation on Windows
Other ways to install Agent
Installing Agent on Linux (Ubuntu, Debian, CentOS)
curl -L https://raw.githubusercontent.com/naiba/nezha/master/script/install_en.sh -o nezha.sh && chmod +x nezha.sh && sudo ./nezha.sh
Installing Agent on other Linux (such as alpine use oprec not systemd)
cat >/etc/init.d/nezha-agent<< EOF
#!/sbin/openrc-run
SERVER="" #Dashboard address ip:port
SECRET="" #SECRET
diff --git a/assets/en_US_guide_agent.md.6683a40f.lean.js b/assets/en_US_guide_agent.md.d322f5fc.lean.js
similarity index 84%
rename from assets/en_US_guide_agent.md.6683a40f.lean.js
rename to assets/en_US_guide_agent.md.d322f5fc.lean.js
index 357f974b..5799f233 100644
--- a/assets/en_US_guide_agent.md.6683a40f.lean.js
+++ b/assets/en_US_guide_agent.md.d322f5fc.lean.js
@@ -1 +1 @@
-import{_ as s,o as n,c as a,R as l}from"./chunks/framework.44fd0451.js";const h=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/guide/agent.md","filePath":"en_US/guide/agent.md","lastUpdated":1701534410000}'),o={name:"en_US/guide/agent.md"},e=l("",53),p=[e];function t(r,c,i,D,y,C){return n(),a("div",null,p)}const u=s(o,[["render",t]]);export{h as __pageData,u as default};
+import{_ as s,o as n,c as a,R as l}from"./chunks/framework.44fd0451.js";const h=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/guide/agent.md","filePath":"en_US/guide/agent.md","lastUpdated":1701657270000}'),o={name:"en_US/guide/agent.md"},e=l("",53),p=[e];function t(r,c,i,D,y,C){return n(),a("div",null,p)}const u=s(o,[["render",t]]);export{h as __pageData,u as default};
diff --git a/assets/en_US_guide_agentq.md.f3d60b04.js b/assets/en_US_guide_agentq.md.31cfbe76.js
similarity index 96%
rename from assets/en_US_guide_agentq.md.f3d60b04.js
rename to assets/en_US_guide_agentq.md.31cfbe76.js
index 875bd322..cf84b24c 100644
--- a/assets/en_US_guide_agentq.md.f3d60b04.js
+++ b/assets/en_US_guide_agentq.md.31cfbe76.js
@@ -1 +1 @@
-import{_ as e,o as a,c as t,R as n}from"./chunks/framework.44fd0451.js";const _=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/guide/agentq.md","filePath":"en_US/guide/agentq.md","lastUpdated":1701534410000}'),o={name:"en_US/guide/agentq.md"},i=n('
Why the IP displayed in the admin panel and the actual IP of the Agent are not the same?
Error on one-click script installation
curl: Failed to connect to raw.githubusercontent.com...
sudo: command not found
Why the IP displayed in the admin panel and the actual IP of the Agent are not the same?
Error on one-click script installation
curl: Failed to connect to raw.githubusercontent.com...
sudo: command not found
Create Token
To create a new Token, after entering the admin panel, click on the avatar in the upper right corner and select "API Token" to enter the Token management page
Click "Add Token" and after customizing the notes, click "Add"
To delete a Token, please select the corresponding Token and click the delete icon on the rightAuthentication method
Request Headers:
+import{_ as s,o as n,c as a,R as o}from"./chunks/framework.44fd0451.js";const y=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/guide/api.md","filePath":"en_US/guide/api.md","lastUpdated":1701657270000}'),t={name:"en_US/guide/api.md"},e=o(`
Create Token
To create a new Token, after entering the admin panel, click on the avatar in the upper right corner and select "API Token" to enter the Token management page
Click "Add Token" and after customizing the notes, click "Add"
To delete a Token, please select the corresponding Token and click the delete icon on the rightAuthentication method
Request Headers:
Authorization: Token
How to use
It is currently used to indicate that the Agent has never reported since the Dashboard went live
However, it is not recommended to use positivity or negativity to determine the statusGet
and the return format is JSON
.GET /api/v1/server/list?tag=
query: tag (ServerTag means the group of servers, if this value is provided, only the servers in this group are queried){
"code": 0,
"message": "success",
diff --git a/assets/en_US_guide_api.md.7c016679.lean.js b/assets/en_US_guide_api.md.11b40487.lean.js
similarity index 84%
rename from assets/en_US_guide_api.md.7c016679.lean.js
rename to assets/en_US_guide_api.md.11b40487.lean.js
index 234fe5a6..910ccbad 100644
--- a/assets/en_US_guide_api.md.7c016679.lean.js
+++ b/assets/en_US_guide_api.md.11b40487.lean.js
@@ -1 +1 @@
-import{_ as s,o as n,c as a,R as o}from"./chunks/framework.44fd0451.js";const y=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/guide/api.md","filePath":"en_US/guide/api.md","lastUpdated":1701534410000}'),t={name:"en_US/guide/api.md"},e=o("",16),l=[e];function p(u,c,i,r,q,C){return n(),a("div",null,l)}const d=s(t,[["render",p]]);export{y as __pageData,d as default};
+import{_ as s,o as n,c as a,R as o}from"./chunks/framework.44fd0451.js";const y=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/guide/api.md","filePath":"en_US/guide/api.md","lastUpdated":1701657270000}'),t={name:"en_US/guide/api.md"},e=o("",16),l=[e];function p(u,c,i,r,q,C){return n(),a("div",null,l)}const d=s(t,[["render",p]]);export{y as __pageData,d as default};
diff --git a/assets/en_US_guide_dashboard.md.7413067e.js b/assets/en_US_guide_dashboard.md.8721214f.js
similarity index 99%
rename from assets/en_US_guide_dashboard.md.7413067e.js
rename to assets/en_US_guide_dashboard.md.8721214f.js
index ba9807d1..79b24710 100644
--- a/assets/en_US_guide_dashboard.md.7413067e.js
+++ b/assets/en_US_guide_dashboard.md.8721214f.js
@@ -1,4 +1,4 @@
-import{_ as e,o as a,c as t,R as o}from"./chunks/framework.44fd0451.js";const y=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/guide/dashboard.md","filePath":"en_US/guide/dashboard.md","lastUpdated":1701534410000}'),s={name:"en_US/guide/dashboard.md"},n=o(`
Preparations
This document uses "cdn.example.com" and "data.example.com" domains to demonstrate respectively
If you don't think it's necessary to use port 80 or 443 to access Dashboard, you don't even need to install NginX and you can just use the install script.Get the Client ID and Client Secret on Github/Gitlab
Application name
- Fill in as you likeHomepage URL
- Fill in the panel's access domain name, such as: "http://cdn.example.com"Authorization callback URL
- Fill in the callback address, e.g., "http://cdn.example.com/oauth2/callback"Redirect URL
with the callback addressScopes
, select read_user
and read_api
Installing Dashboard on the server
curl -L https://raw.githubusercontent.com/naiba/nezha/master/script/install_en.sh -o nezha.sh && chmod +x nezha.sh && sudo ./nezha.sh
OAuth2 provider
- Github or GitlabClient ID
- Previously saved Client IDClient Secret
- Previously saved secretGitHub/Gitee login name
- Github o Gitlab usernameSite title
- Custom site titleSite access port
- Public access port, customizable, default 8008RPC port
- The communication port between Agent and Dashboard, default 5555
After the installation, if everything is fine, you can visit the domain + port number, such as "http://cdn.example.com:8008" to view the Dashboard./nezha.sh
Configure reverse proxy
http://127.0.0.1
in the "Target URL" and click "Save"#PROXY-START/
+import{_ as e,o as a,c as t,R as o}from"./chunks/framework.44fd0451.js";const y=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/guide/dashboard.md","filePath":"en_US/guide/dashboard.md","lastUpdated":1701657270000}'),s={name:"en_US/guide/dashboard.md"},n=o(`
Preparations
This document uses "cdn.example.com" and "data.example.com" domains to demonstrate respectively
If you don't think it's necessary to use port 80 or 443 to access Dashboard, you don't even need to install NginX and you can just use the install script.Get the Client ID and Client Secret on Github/Gitlab
Application name
- Fill in as you likeHomepage URL
- Fill in the panel's access domain name, such as: "http://cdn.example.com"Authorization callback URL
- Fill in the callback address, e.g., "http://cdn.example.com/oauth2/callback"Redirect URL
with the callback addressScopes
, select read_user
and read_api
Installing Dashboard on the server
curl -L https://raw.githubusercontent.com/naiba/nezha/master/script/install_en.sh -o nezha.sh && chmod +x nezha.sh && sudo ./nezha.sh
OAuth2 provider
- Github or GitlabClient ID
- Previously saved Client IDClient Secret
- Previously saved secretGitHub/Gitee login name
- Github o Gitlab usernameSite title
- Custom site titleSite access port
- Public access port, customizable, default 8008RPC port
- The communication port between Agent and Dashboard, default 5555
After the installation, if everything is fine, you can visit the domain + port number, such as "http://cdn.example.com:8008" to view the Dashboard./nezha.sh
Configure reverse proxy
http://127.0.0.1
in the "Target URL" and click "Save"#PROXY-START/
location / {
proxy_pass http://127.0.0.1:8008;
proxy_set_header Host $http_host;
diff --git a/assets/en_US_guide_dashboard.md.7413067e.lean.js b/assets/en_US_guide_dashboard.md.8721214f.lean.js
similarity index 85%
rename from assets/en_US_guide_dashboard.md.7413067e.lean.js
rename to assets/en_US_guide_dashboard.md.8721214f.lean.js
index 82e9e817..c9f7d2bd 100644
--- a/assets/en_US_guide_dashboard.md.7413067e.lean.js
+++ b/assets/en_US_guide_dashboard.md.8721214f.lean.js
@@ -1 +1 @@
-import{_ as e,o as a,c as t,R as o}from"./chunks/framework.44fd0451.js";const y=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/guide/dashboard.md","filePath":"en_US/guide/dashboard.md","lastUpdated":1701534410000}'),s={name:"en_US/guide/dashboard.md"},n=o("",41),l=[n];function r(i,p,c,d,h,u){return a(),t("div",null,l)}const m=e(s,[["render",r]]);export{y as __pageData,m as default};
+import{_ as e,o as a,c as t,R as o}from"./chunks/framework.44fd0451.js";const y=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/guide/dashboard.md","filePath":"en_US/guide/dashboard.md","lastUpdated":1701657270000}'),s={name:"en_US/guide/dashboard.md"},n=o("",41),l=[n];function r(i,p,c,d,h,u){return a(),t("div",null,l)}const m=e(s,[["render",r]]);export{y as __pageData,m as default};
diff --git a/assets/en_US_guide_dashboardq.md.ac655fb7.js b/assets/en_US_guide_dashboardq.md.43331f21.js
similarity index 99%
rename from assets/en_US_guide_dashboardq.md.ac655fb7.js
rename to assets/en_US_guide_dashboardq.md.43331f21.js
index a04a6eaf..c61be98a 100644
--- a/assets/en_US_guide_dashboardq.md.ac655fb7.js
+++ b/assets/en_US_guide_dashboardq.md.43331f21.js
@@ -1,4 +1,4 @@
-import{_ as e,o as a,c as s,R as o}from"./chunks/framework.44fd0451.js";const b=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/guide/dashboardq.md","filePath":"en_US/guide/dashboardq.md","lastUpdated":1701534410000}'),t={name:"en_US/guide/dashboardq.md"},n=o(`
Why the IP displayed in the admin panel and the actual IP of the Agent are not the same?
If you find that the IP displayed in the admin panel is not the same as the IP provided to you by the service provider, the biggest possibility is that the service provider gave you the entry IP, but the Agent tested out your exit IP. This problem may also occur in BGP servers and Leased line.curl https://ipapi.co/ip/
+import{_ as e,o as a,c as s,R as o}from"./chunks/framework.44fd0451.js";const b=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/guide/dashboardq.md","filePath":"en_US/guide/dashboardq.md","lastUpdated":1701657270000}'),t={name:"en_US/guide/dashboardq.md"},n=o(`
Why the IP displayed in the admin panel and the actual IP of the Agent are not the same?
If you find that the IP displayed in the admin panel is not the same as the IP provided to you by the service provider, the biggest possibility is that the service provider gave you the entry IP, but the Agent tested out your exit IP. This problem may also occur in BGP servers and Leased line.curl https://ipapi.co/ip/
curl ip.sb
curl ip-api.com
Forgot your access password or deleted your access password
/opt/nezha/dashboard/data/config.yaml
file.
The password is located in the site-viewpassword item.Dashboard install/restart/update failed: iptables ......
systemctl status docker
systemctl restart docker
diff --git a/assets/en_US_guide_dashboardq.md.ac655fb7.lean.js b/assets/en_US_guide_dashboardq.md.43331f21.lean.js
similarity index 85%
rename from assets/en_US_guide_dashboardq.md.ac655fb7.lean.js
rename to assets/en_US_guide_dashboardq.md.43331f21.lean.js
index 6b9cc958..b2522cd3 100644
--- a/assets/en_US_guide_dashboardq.md.ac655fb7.lean.js
+++ b/assets/en_US_guide_dashboardq.md.43331f21.lean.js
@@ -1 +1 @@
-import{_ as e,o as a,c as s,R as o}from"./chunks/framework.44fd0451.js";const b=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/guide/dashboardq.md","filePath":"en_US/guide/dashboardq.md","lastUpdated":1701534410000}'),t={name:"en_US/guide/dashboardq.md"},n=o("",18),l=[n];function r(i,p,c,d,h,y){return a(),s("div",null,l)}const g=e(t,[["render",r]]);export{b as __pageData,g as default};
+import{_ as e,o as a,c as s,R as o}from"./chunks/framework.44fd0451.js";const b=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/guide/dashboardq.md","filePath":"en_US/guide/dashboardq.md","lastUpdated":1701657270000}'),t={name:"en_US/guide/dashboardq.md"},n=o("",18),l=[n];function r(i,p,c,d,h,y){return a(),s("div",null,l)}const g=e(t,[["render",r]]);export{b as __pageData,g as default};
diff --git a/assets/en_US_guide_loginq.md.2cd38989.js b/assets/en_US_guide_loginq.md.db248ab0.js
similarity index 98%
rename from assets/en_US_guide_loginq.md.2cd38989.js
rename to assets/en_US_guide_loginq.md.db248ab0.js
index e5983ee6..b46a06e0 100644
--- a/assets/en_US_guide_loginq.md.2cd38989.js
+++ b/assets/en_US_guide_loginq.md.db248ab0.js
@@ -1 +1 @@
-import{_ as e,o,c as t,R as a}from"./chunks/framework.44fd0451.js";const b=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/guide/loginq.md","filePath":"en_US/guide/loginq.md","lastUpdated":1701534410000}'),r={name:"en_US/guide/loginq.md"},i=a('
Page refuses to connect or timeout after login callback
In the browser, your domain name ending with ://
is the protocol, usually http
and https
. Since the Dashboard may be accessible by multiple protocols + domain + port combinations under normal deployment, please make sure to choose the most appropriate one as the callback.How do I check if my callback URL is wrong?
Please make sure your path is /oauth2/callback
, all lowercase.Dashboard errors after login
http: named cookie not present
lookup xxx
It is recommended to restart docker first, sudo systemctl restart docker
, and then use the script to restart the Dashboard.
If the lookup error still occurs, it is recommended to check whether there are other tools to control iptables, such as Aapanel Firewall.
This problem may also be related to the kernel, please try to change the official kernel.The authorization method is invalid, or the login callback URL is invalid, expired, or has been revoked
oauth2: server response missing access_token
If you can't solve it, we suggest changing the authentication method to Github/Gitlab.This user is not the administrator or cannot login
dial tcp xxx:443 i/o timeout
sudo systemctl restart docker
, and then use the script to restart the Dashboard.
You can also change to another OAuth method if necessary.net/http: TLS handshake timeout
Page refuses to connect or timeout after login callback
In the browser, your domain name ending with ://
is the protocol, usually http
and https
. Since the Dashboard may be accessible by multiple protocols + domain + port combinations under normal deployment, please make sure to choose the most appropriate one as the callback.How do I check if my callback URL is wrong?
Please make sure your path is /oauth2/callback
, all lowercase.Dashboard errors after login
http: named cookie not present
lookup xxx
It is recommended to restart docker first, sudo systemctl restart docker
, and then use the script to restart the Dashboard.
If the lookup error still occurs, it is recommended to check whether there are other tools to control iptables, such as Aapanel Firewall.
This problem may also be related to the kernel, please try to change the official kernel.The authorization method is invalid, or the login callback URL is invalid, expired, or has been revoked
oauth2: server response missing access_token
If you can't solve it, we suggest changing the authentication method to Github/Gitlab.This user is not the administrator or cannot login
dial tcp xxx:443 i/o timeout
sudo systemctl restart docker
, and then use the script to restart the Dashboard.
You can also change to another OAuth method if necessary.net/http: TLS handshake timeout
Flexible notification methods
#DATETIME#
represents the timestamp of when an event occurs. When the notification is triggered, the panel automatically replaces #DATETIME# with the actual time of the event.#NEZHA#
is the panel message placeholder, the panel will automatically replace the placeholder with the actual message when it triggers the notificationJSON
format:When the request type is FORM,the value is in the form of key:value
,value
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.{"title": "#SERVER.NAME#","device_key":"xxxxxxxxx","body":"#NEZHA#","icon":" https://xxxxxxxx/nz.png "}
{"Content-type":"application/json", "Authorization":"Bearer {Token}"}
{
+import{_ as o,o as s,c as e,R as n}from"./chunks/framework.44fd0451.js";const F=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/guide/notifications.md","filePath":"en_US/guide/notifications.md","lastUpdated":1701657270000}'),t={name:"en_US/guide/notifications.md"},a=n(`
Flexible notification methods
#DATETIME#
represents the timestamp of when an event occurs. When the notification is triggered, the panel automatically replaces #DATETIME# with the actual time of the event.#NEZHA#
is the panel message placeholder, the panel will automatically replace the placeholder with the actual message when it triggers the notificationJSON
format:When the request type is FORM,the value is in the form of key:value
,value
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.{"title": "#SERVER.NAME#","device_key":"xxxxxxxxx","body":"#NEZHA#","icon":" https://xxxxxxxx/nz.png "}
{"Content-type":"application/json", "Authorization":"Bearer {Token}"}
{
"message": {
"subject": "Server Status Notification",
"body": {
diff --git a/assets/en_US_guide_notifications.md.c66257b2.lean.js b/assets/en_US_guide_notifications.md.62e931d9.lean.js
similarity index 85%
rename from assets/en_US_guide_notifications.md.c66257b2.lean.js
rename to assets/en_US_guide_notifications.md.62e931d9.lean.js
index b39c7177..48295bf2 100644
--- a/assets/en_US_guide_notifications.md.c66257b2.lean.js
+++ b/assets/en_US_guide_notifications.md.62e931d9.lean.js
@@ -1 +1 @@
-import{_ as o,o as s,c as e,R as n}from"./chunks/framework.44fd0451.js";const F=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/guide/notifications.md","filePath":"en_US/guide/notifications.md","lastUpdated":1701534410000}'),t={name:"en_US/guide/notifications.md"},a=n("",28),l=[a];function p(r,c,i,u,D,y){return s(),e("div",null,l)}const C=o(t,[["render",p]]);export{F as __pageData,C as default};
+import{_ as o,o as s,c as e,R as n}from"./chunks/framework.44fd0451.js";const F=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/guide/notifications.md","filePath":"en_US/guide/notifications.md","lastUpdated":1701657270000}'),t={name:"en_US/guide/notifications.md"},a=n("",28),l=[a];function p(r,c,i,u,D,y){return s(),e("div",null,l)}const C=o(t,[["render",p]]);export{F as __pageData,C as default};
diff --git a/assets/en_US_guide_q2.md.ef5213fa.js b/assets/en_US_guide_q2.md.b6ab80df.js
similarity index 96%
rename from assets/en_US_guide_q2.md.ef5213fa.js
rename to assets/en_US_guide_q2.md.b6ab80df.js
index 33671201..72c4ccb1 100644
--- a/assets/en_US_guide_q2.md.ef5213fa.js
+++ b/assets/en_US_guide_q2.md.b6ab80df.js
@@ -1 +1 @@
-import{_ as e,o as t,c as o,R as n}from"./chunks/framework.44fd0451.js";const m=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/guide/q2.md","filePath":"en_US/guide/q2.md","lastUpdated":1701534410000}'),r={name:"en_US/guide/q2.md"},a=n('
Let the Agent start/on-line, and the self-test process of the problem
',2),s=[a];function l(i,c,h,p,d,_){return t(),o("div",null,s)}const u=e(r,[["render",l]]);export{m as __pageData,u as default};
+import{_ as e,o as t,c as o,R as n}from"./chunks/framework.44fd0451.js";const m=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/guide/q2.md","filePath":"en_US/guide/q2.md","lastUpdated":1701657270000}'),r={name:"en_US/guide/q2.md"},a=n('//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 networknc -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/Let the Agent start/on-line, and the self-test process of the problem
',2),s=[a];function l(i,c,h,p,d,_){return t(),o("div",null,s)}const u=e(r,[["render",l]]);export{m as __pageData,u as default};
diff --git a/assets/en_US_guide_q2.md.ef5213fa.lean.js b/assets/en_US_guide_q2.md.b6ab80df.lean.js
similarity index 84%
rename from assets/en_US_guide_q2.md.ef5213fa.lean.js
rename to assets/en_US_guide_q2.md.b6ab80df.lean.js
index a318ef30..390bbaae 100644
--- a/assets/en_US_guide_q2.md.ef5213fa.lean.js
+++ b/assets/en_US_guide_q2.md.b6ab80df.lean.js
@@ -1 +1 @@
-import{_ as e,o as t,c as o,R as n}from"./chunks/framework.44fd0451.js";const m=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/guide/q2.md","filePath":"en_US/guide/q2.md","lastUpdated":1701534410000}'),r={name:"en_US/guide/q2.md"},a=n("",2),s=[a];function l(i,c,h,p,d,_){return t(),o("div",null,s)}const u=e(r,[["render",l]]);export{m as __pageData,u as default};
+import{_ as e,o as t,c as o,R as n}from"./chunks/framework.44fd0451.js";const m=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/guide/q2.md","filePath":"en_US/guide/q2.md","lastUpdated":1701657270000}'),r={name:"en_US/guide/q2.md"},a=n("",2),s=[a];function l(i,c,h,p,d,_){return t(),o("div",null,s)}const u=e(r,[["render",l]]);export{m as __pageData,u as default};
diff --git a/assets/en_US_guide_q3.md.9878dfb9.js b/assets/en_US_guide_q3.md.678b5530.js
similarity index 99%
rename from assets/en_US_guide_q3.md.9878dfb9.js
rename to assets/en_US_guide_q3.md.678b5530.js
index bba082a4..c047c7b9 100644
--- a/assets/en_US_guide_q3.md.9878dfb9.js
+++ b/assets/en_US_guide_q3.md.678b5530.js
@@ -1,4 +1,4 @@
-import{_ as s,o as n,c as a,R as e}from"./chunks/framework.44fd0451.js";const d=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/guide/q3.md","filePath":"en_US/guide/q3.md","lastUpdated":1701534410000}'),l={name:"en_US/guide/q3.md"},o=e(`//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 networknc -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/Reverse Proxy gRPC Port (support Cloudflare CDN)
server {
+import{_ as s,o as n,c as a,R as e}from"./chunks/framework.44fd0451.js";const d=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/guide/q3.md","filePath":"en_US/guide/q3.md","lastUpdated":1701657270000}'),l={name:"en_US/guide/q3.md"},o=e(`
Reverse Proxy gRPC Port (support Cloudflare CDN)
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name data.example.com; # The domain name where the Agent connects to Dashboard
diff --git a/assets/en_US_guide_q3.md.9878dfb9.lean.js b/assets/en_US_guide_q3.md.678b5530.lean.js
similarity index 84%
rename from assets/en_US_guide_q3.md.9878dfb9.lean.js
rename to assets/en_US_guide_q3.md.678b5530.lean.js
index bb1cc044..61e40241 100644
--- a/assets/en_US_guide_q3.md.9878dfb9.lean.js
+++ b/assets/en_US_guide_q3.md.678b5530.lean.js
@@ -1 +1 @@
-import{_ as s,o as n,c as a,R as e}from"./chunks/framework.44fd0451.js";const d=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/guide/q3.md","filePath":"en_US/guide/q3.md","lastUpdated":1701534410000}'),l={name:"en_US/guide/q3.md"},o=e("",13),p=[o];function t(c,r,i,C,D,y){return n(),a("div",null,p)}const h=s(l,[["render",t]]);export{d as __pageData,h as default};
+import{_ as s,o as n,c as a,R as e}from"./chunks/framework.44fd0451.js";const d=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/guide/q3.md","filePath":"en_US/guide/q3.md","lastUpdated":1701657270000}'),l={name:"en_US/guide/q3.md"},o=e("",13),p=[o];function t(c,r,i,C,D,y){return n(),a("div",null,p)}const h=s(l,[["render",t]]);export{d as __pageData,h as default};
diff --git a/assets/en_US_guide_q4.md.39c1f69c.js b/assets/en_US_guide_q4.md.a1483acb.js
similarity index 94%
rename from assets/en_US_guide_q4.md.39c1f69c.js
rename to assets/en_US_guide_q4.md.a1483acb.js
index 14d3b7b3..727a1680 100644
--- a/assets/en_US_guide_q4.md.39c1f69c.js
+++ b/assets/en_US_guide_q4.md.a1483acb.js
@@ -1 +1 @@
-import{_ as a,o as t,c as o,z as e,a as n}from"./chunks/framework.44fd0451.js";const g=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/guide/q4.md","filePath":"en_US/guide/q4.md","lastUpdated":1701534410000}'),i={name:"en_US/guide/q4.md"},r=e("h4",{id:"real-time-channel-disconnection-online-terminal-connection-failure",tabindex:"-1"},[n("Real-time channel disconnection/online terminal connection failure "),e("a",{class:"header-anchor",href:"#real-time-channel-disconnection-online-terminal-connection-failure","aria-label":'Permalink to "Real-time channel disconnection/online terminal connection failure"'},"")],-1),c=e("ul",null,[e("li",null,"If you are using a CDN, please make sure that the CDN provider provides WebSocket service and that WebSocket is enabled"),e("li",null,[n("Confirm that you are using a reverse proxy requires special configuration of the WebSocket for the "),e("code",null,"/ws"),n(" and "),e("code",null,"/terminal"),n(" paths, you can "),e("a",{href:"/en_US/guide/dashboard.html#configure-reverse-proxy"},"click here"),n(" to see the reverse proxy configuration")])],-1),l=[r,c];function s(d,u,h,m,f,_){return t(),o("div",null,l)}const k=a(i,[["render",s]]);export{g as __pageData,k as default};
+import{_ as a,o as t,c as o,z as e,a as n}from"./chunks/framework.44fd0451.js";const g=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/guide/q4.md","filePath":"en_US/guide/q4.md","lastUpdated":1701657270000}'),i={name:"en_US/guide/q4.md"},r=e("h4",{id:"real-time-channel-disconnection-online-terminal-connection-failure",tabindex:"-1"},[n("Real-time channel disconnection/online terminal connection failure "),e("a",{class:"header-anchor",href:"#real-time-channel-disconnection-online-terminal-connection-failure","aria-label":'Permalink to "Real-time channel disconnection/online terminal connection failure"'},"")],-1),c=e("ul",null,[e("li",null,"If you are using a CDN, please make sure that the CDN provider provides WebSocket service and that WebSocket is enabled"),e("li",null,[n("Confirm that you are using a reverse proxy requires special configuration of the WebSocket for the "),e("code",null,"/ws"),n(" and "),e("code",null,"/terminal"),n(" paths, you can "),e("a",{href:"/en_US/guide/dashboard.html#configure-reverse-proxy"},"click here"),n(" to see the reverse proxy configuration")])],-1),l=[r,c];function s(d,u,h,m,f,_){return t(),o("div",null,l)}const k=a(i,[["render",s]]);export{g as __pageData,k as default};
diff --git a/assets/en_US_guide_q4.md.39c1f69c.lean.js b/assets/en_US_guide_q4.md.a1483acb.lean.js
similarity index 94%
rename from assets/en_US_guide_q4.md.39c1f69c.lean.js
rename to assets/en_US_guide_q4.md.a1483acb.lean.js
index 14d3b7b3..727a1680 100644
--- a/assets/en_US_guide_q4.md.39c1f69c.lean.js
+++ b/assets/en_US_guide_q4.md.a1483acb.lean.js
@@ -1 +1 @@
-import{_ as a,o as t,c as o,z as e,a as n}from"./chunks/framework.44fd0451.js";const g=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/guide/q4.md","filePath":"en_US/guide/q4.md","lastUpdated":1701534410000}'),i={name:"en_US/guide/q4.md"},r=e("h4",{id:"real-time-channel-disconnection-online-terminal-connection-failure",tabindex:"-1"},[n("Real-time channel disconnection/online terminal connection failure "),e("a",{class:"header-anchor",href:"#real-time-channel-disconnection-online-terminal-connection-failure","aria-label":'Permalink to "Real-time channel disconnection/online terminal connection failure"'},"")],-1),c=e("ul",null,[e("li",null,"If you are using a CDN, please make sure that the CDN provider provides WebSocket service and that WebSocket is enabled"),e("li",null,[n("Confirm that you are using a reverse proxy requires special configuration of the WebSocket for the "),e("code",null,"/ws"),n(" and "),e("code",null,"/terminal"),n(" paths, you can "),e("a",{href:"/en_US/guide/dashboard.html#configure-reverse-proxy"},"click here"),n(" to see the reverse proxy configuration")])],-1),l=[r,c];function s(d,u,h,m,f,_){return t(),o("div",null,l)}const k=a(i,[["render",s]]);export{g as __pageData,k as default};
+import{_ as a,o as t,c as o,z as e,a as n}from"./chunks/framework.44fd0451.js";const g=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/guide/q4.md","filePath":"en_US/guide/q4.md","lastUpdated":1701657270000}'),i={name:"en_US/guide/q4.md"},r=e("h4",{id:"real-time-channel-disconnection-online-terminal-connection-failure",tabindex:"-1"},[n("Real-time channel disconnection/online terminal connection failure "),e("a",{class:"header-anchor",href:"#real-time-channel-disconnection-online-terminal-connection-failure","aria-label":'Permalink to "Real-time channel disconnection/online terminal connection failure"'},"")],-1),c=e("ul",null,[e("li",null,"If you are using a CDN, please make sure that the CDN provider provides WebSocket service and that WebSocket is enabled"),e("li",null,[n("Confirm that you are using a reverse proxy requires special configuration of the WebSocket for the "),e("code",null,"/ws"),n(" and "),e("code",null,"/terminal"),n(" paths, you can "),e("a",{href:"/en_US/guide/dashboard.html#configure-reverse-proxy"},"click here"),n(" to see the reverse proxy configuration")])],-1),l=[r,c];function s(d,u,h,m,f,_){return t(),o("div",null,l)}const k=a(i,[["render",s]]);export{g as __pageData,k as default};
diff --git a/assets/en_US_guide_q5.md.ab9624d6.js b/assets/en_US_guide_q5.md.641bb299.js
similarity index 94%
rename from assets/en_US_guide_q5.md.ab9624d6.js
rename to assets/en_US_guide_q5.md.641bb299.js
index a033e96e..152817a0 100644
--- a/assets/en_US_guide_q5.md.ab9624d6.js
+++ b/assets/en_US_guide_q5.md.641bb299.js
@@ -1 +1 @@
-import{_ as a,o,c as r,z as e,a as t}from"./chunks/framework.44fd0451.js";const w=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/guide/q5.md","filePath":"en_US/guide/q5.md","lastUpdated":1701534410000}'),s={name:"en_US/guide/q5.md"},n=e("h4",{id:"how-do-i-migrate-my-data-to-the-new-server-and-restore-my-backups",tabindex:"-1"},[t("How do I migrate my data to the new server and restore my backups? "),e("a",{class:"header-anchor",href:"#how-do-i-migrate-my-data-to-the-new-server-and-restore-my-backups","aria-label":'Permalink to "How do I migrate my data to the new server and restore my backups?"'},"")],-1),d=e("ol",null,[e("li",null,[t("First use the one-click script and select "),e("code",null,"Stop Panel")]),e("li",null,[t("Compress the "),e("code",null,"/opt/nezha"),t(" folder to the same path as the new server")]),e("li",null,[t("Run the one-click script in the new server, select "),e("code",null,"Launch Panel")])],-1),l=[n,d];function c(i,h,m,p,u,_){return o(),r("div",null,l)}const k=a(s,[["render",c]]);export{w as __pageData,k as default};
+import{_ as a,o,c as r,z as e,a as t}from"./chunks/framework.44fd0451.js";const w=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/guide/q5.md","filePath":"en_US/guide/q5.md","lastUpdated":1701657270000}'),s={name:"en_US/guide/q5.md"},n=e("h4",{id:"how-do-i-migrate-my-data-to-the-new-server-and-restore-my-backups",tabindex:"-1"},[t("How do I migrate my data to the new server and restore my backups? "),e("a",{class:"header-anchor",href:"#how-do-i-migrate-my-data-to-the-new-server-and-restore-my-backups","aria-label":'Permalink to "How do I migrate my data to the new server and restore my backups?"'},"")],-1),d=e("ol",null,[e("li",null,[t("First use the one-click script and select "),e("code",null,"Stop Panel")]),e("li",null,[t("Compress the "),e("code",null,"/opt/nezha"),t(" folder to the same path as the new server")]),e("li",null,[t("Run the one-click script in the new server, select "),e("code",null,"Launch Panel")])],-1),l=[n,d];function c(i,h,m,p,u,_){return o(),r("div",null,l)}const k=a(s,[["render",c]]);export{w as __pageData,k as default};
diff --git a/assets/en_US_guide_q5.md.ab9624d6.lean.js b/assets/en_US_guide_q5.md.641bb299.lean.js
similarity index 94%
rename from assets/en_US_guide_q5.md.ab9624d6.lean.js
rename to assets/en_US_guide_q5.md.641bb299.lean.js
index a033e96e..152817a0 100644
--- a/assets/en_US_guide_q5.md.ab9624d6.lean.js
+++ b/assets/en_US_guide_q5.md.641bb299.lean.js
@@ -1 +1 @@
-import{_ as a,o,c as r,z as e,a as t}from"./chunks/framework.44fd0451.js";const w=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/guide/q5.md","filePath":"en_US/guide/q5.md","lastUpdated":1701534410000}'),s={name:"en_US/guide/q5.md"},n=e("h4",{id:"how-do-i-migrate-my-data-to-the-new-server-and-restore-my-backups",tabindex:"-1"},[t("How do I migrate my data to the new server and restore my backups? "),e("a",{class:"header-anchor",href:"#how-do-i-migrate-my-data-to-the-new-server-and-restore-my-backups","aria-label":'Permalink to "How do I migrate my data to the new server and restore my backups?"'},"")],-1),d=e("ol",null,[e("li",null,[t("First use the one-click script and select "),e("code",null,"Stop Panel")]),e("li",null,[t("Compress the "),e("code",null,"/opt/nezha"),t(" folder to the same path as the new server")]),e("li",null,[t("Run the one-click script in the new server, select "),e("code",null,"Launch Panel")])],-1),l=[n,d];function c(i,h,m,p,u,_){return o(),r("div",null,l)}const k=a(s,[["render",c]]);export{w as __pageData,k as default};
+import{_ as a,o,c as r,z as e,a as t}from"./chunks/framework.44fd0451.js";const w=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/guide/q5.md","filePath":"en_US/guide/q5.md","lastUpdated":1701657270000}'),s={name:"en_US/guide/q5.md"},n=e("h4",{id:"how-do-i-migrate-my-data-to-the-new-server-and-restore-my-backups",tabindex:"-1"},[t("How do I migrate my data to the new server and restore my backups? "),e("a",{class:"header-anchor",href:"#how-do-i-migrate-my-data-to-the-new-server-and-restore-my-backups","aria-label":'Permalink to "How do I migrate my data to the new server and restore my backups?"'},"")],-1),d=e("ol",null,[e("li",null,[t("First use the one-click script and select "),e("code",null,"Stop Panel")]),e("li",null,[t("Compress the "),e("code",null,"/opt/nezha"),t(" folder to the same path as the new server")]),e("li",null,[t("Run the one-click script in the new server, select "),e("code",null,"Launch Panel")])],-1),l=[n,d];function c(i,h,m,p,u,_){return o(),r("div",null,l)}const k=a(s,[["render",c]]);export{w as __pageData,k as default};
diff --git a/assets/en_US_guide_q6.md.d8f23d35.js b/assets/en_US_guide_q6.md.3d86af68.js
similarity index 95%
rename from assets/en_US_guide_q6.md.d8f23d35.js
rename to assets/en_US_guide_q6.md.3d86af68.js
index 45e19335..2aaaf3e0 100644
--- a/assets/en_US_guide_q6.md.d8f23d35.js
+++ b/assets/en_US_guide_q6.md.3d86af68.js
@@ -1 +1 @@
-import{_ as t,o as e,c as s,R as a}from"./chunks/framework.44fd0451.js";const m=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/guide/q6.md","filePath":"en_US/guide/q6.md","lastUpdated":1701534410000}'),o={name:"en_US/guide/q6.md"},i=a('
How to set up a monthly reset of transfer statistics?
If you want to set the traffic statistics to be reset once a month, you can do it like this: Notification
page of the admin panelService
page, where the statistics will not be reset when the server is restartedHow to set up a monthly reset of transfer statistics?
If you want to set the traffic statistics to be reset once a month, you can do it like this: Notification
page of the admin panelService
page, where the statistics will not be reset when the server is restartedCustomize Agent
Customize the NIC and hard drive partitions to be monitored
/opt/nezha/agent/nezha-agent --edit-agent-config
to select a custom NIC and partition, and then restart AgentOther Flags
./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:
',6),s=[n];function r(d,c,l,u,h,g){return t(),o("div",null,s)}const f=e(i,[["render",r]]);export{p as __pageData,f as default};
+import{_ as e,o as t,c as o,R as a}from"./chunks/framework.44fd0451.js";const p=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/guide/q7.md","filePath":"en_US/guide/q7.md","lastUpdated":1701657270000}'),i={name:"en_US/guide/q7.md"},n=a('--report-delay
System information reporting interval, default is 1 second, can be set to 3 to reduce the system resource usage on the agent side (configuration range 1-4)--skip-conn
Not monitoring the number of connections, if it is a server with a large number of connections, the CPU usage will be high. It is recommended to set this to reduce CPU usage--skip-procs
Disable monitoring the number of processes can also reduce CPU and memory usage--disable-auto-update
Disable Automatic Update Agent (security feature)--disable-force-update
Disable Forced Update Agent (security feature)--disable-command-execute
Disable execution of scheduled tasks, disallow WebShell (security feature)--tls
Enable SSL/TLS encryption (If you are using nginx to reverse proxy Agent´s grpc connections, and if nginx has SSL/TLS enabled, you need to enable this configuration)Customize Agent
Customize the NIC and hard drive partitions to be monitored
/opt/nezha/agent/nezha-agent --edit-agent-config
to select a custom NIC and partition, and then restart AgentOther Flags
./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:
',6),s=[n];function r(d,c,l,u,h,g){return t(),o("div",null,s)}const f=e(i,[["render",r]]);export{p as __pageData,f as default};
diff --git a/assets/en_US_guide_q7.md.1a0316cc.lean.js b/assets/en_US_guide_q7.md.fbe424ea.lean.js
similarity index 84%
rename from assets/en_US_guide_q7.md.1a0316cc.lean.js
rename to assets/en_US_guide_q7.md.fbe424ea.lean.js
index 0ad80ae7..330c9c07 100644
--- a/assets/en_US_guide_q7.md.1a0316cc.lean.js
+++ b/assets/en_US_guide_q7.md.fbe424ea.lean.js
@@ -1 +1 @@
-import{_ as e,o as t,c as o,R as a}from"./chunks/framework.44fd0451.js";const p=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/guide/q7.md","filePath":"en_US/guide/q7.md","lastUpdated":1701534410000}'),i={name:"en_US/guide/q7.md"},n=a("",6),s=[n];function r(d,c,l,u,h,g){return t(),o("div",null,s)}const f=e(i,[["render",r]]);export{p as __pageData,f as default};
+import{_ as e,o as t,c as o,R as a}from"./chunks/framework.44fd0451.js";const p=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/guide/q7.md","filePath":"en_US/guide/q7.md","lastUpdated":1701657270000}'),i={name:"en_US/guide/q7.md"},n=a("",6),s=[n];function r(d,c,l,u,h,g){return t(),o("div",null,s)}const f=e(i,[["render",r]]);export{p as __pageData,f as default};
diff --git a/assets/en_US_guide_servers.md.19b9de10.js b/assets/en_US_guide_servers.md.c0a7fc7b.js
similarity index 96%
rename from assets/en_US_guide_servers.md.19b9de10.js
rename to assets/en_US_guide_servers.md.c0a7fc7b.js
index d084d668..448e96b8 100644
--- a/assets/en_US_guide_servers.md.19b9de10.js
+++ b/assets/en_US_guide_servers.md.c0a7fc7b.js
@@ -1 +1 @@
-import{_ as e,o as t,c as a,R as n}from"./chunks/framework.44fd0451.js";const m=JSON.parse('{"title":"Servers","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/guide/servers.md","filePath":"en_US/guide/servers.md","lastUpdated":1701534410000}'),r={name:"en_US/guide/servers.md"},o=n('--report-delay
System information reporting interval, default is 1 second, can be set to 3 to reduce the system resource usage on the agent side (configuration range 1-4)--skip-conn
Not monitoring the number of connections, if it is a server with a large number of connections, the CPU usage will be high. It is recommended to set this to reduce CPU usage--skip-procs
Disable monitoring the number of processes can also reduce CPU and memory usage--disable-auto-update
Disable Automatic Update Agent (security feature)--disable-force-update
Disable Forced Update Agent (security feature)--disable-command-execute
Disable execution of scheduled tasks, disallow WebShell (security feature)--tls
Enable SSL/TLS encryption (If you are using nginx to reverse proxy Agent´s grpc connections, and if nginx has SSL/TLS enabled, you need to enable this configuration)Servers
Introduction
Add a server
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
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
--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
Webshell
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.Servers
Introduction
Add a server
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
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
--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
Webshell
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.
The monitoring results can be viewed on the "Services" page in the home pageHow to use
Name
- Customize a nameType
- 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 waysHTTP-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.comICMP-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.comTCP-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:22Interval
: Sets the time interval in seconds between each time Agent sends requests to the targetCoverage
: Select a rule to determine which Agents to use to send requests to the targetSpecific Servers
: Use with coverage to select the Agent to be excluded from the ruleNotification Group
: Select the notification method you have set up on the "Notification" page. Click here for more informationEnable Failure Notification
: Select whether to receive target failure notifications as needed, default is inactive
Wait for a moment to go to the "Services" page on the home page to view the monitoring resultsNotification of delay changes
Use this feature to help you monitor your server's routes for changesEnable delay notifications
:When enabled, notifications will be sent when the Agent to target server delay is higher than the Max delay
or lower than the Min delay
Management Monitor
Select a monitoring configuration and click the icon on the right to edit or delete it
The monitoring results can be viewed on the "Services" page in the home pageHow to use
Name
- Customize a nameType
- 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 waysHTTP-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.comICMP-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.comTCP-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:22Interval
: Sets the time interval in seconds between each time Agent sends requests to the targetCoverage
: Select a rule to determine which Agents to use to send requests to the targetSpecific Servers
: Use with coverage to select the Agent to be excluded from the ruleNotification Group
: Select the notification method you have set up on the "Notification" page. Click here for more informationEnable Failure Notification
: Select whether to receive target failure notifications as needed, default is inactive
Wait for a moment to go to the "Services" page on the home page to view the monitoring resultsNotification of delay changes
Use this feature to help you monitor your server's routes for changesEnable delay notifications
:When enabled, notifications will be sent when the Agent to target server delay is higher than the Max delay
or lower than the Min delay
Management Monitor
Select a monitoring configuration and click the icon on the right to edit or delete itSite Title
Admin List
user1,user2
/opt/nezha/dashboard/data/config.yaml
to set the new administrator Client ID
and Client Secret
.Theme
Language
We welcome corrections to translations and contributions of additional languagesCustom code (style, script)
Since the code of different themes is different, if you really need to modify the content of the admin panel, please enter Docker to changes it by yourself.Example of changing the default theme progress bar color
<style>
+import{_ as s,o as a,c as n,R as o}from"./chunks/framework.44fd0451.js";const d=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/guide/settings.md","filePath":"en_US/guide/settings.md","lastUpdated":1701657270000}'),e={name:"en_US/guide/settings.md"},l=o(`
Site Title
Admin List
user1,user2
/opt/nezha/dashboard/data/config.yaml
to set the new administrator Client ID
and Client Secret
.Theme
Language
We welcome corrections to translations and contributions of additional languagesCustom code (style, script)
Since the code of different themes is different, if you really need to modify the content of the admin panel, please enter Docker to changes it by yourself.Example of changing the default theme progress bar color
<style>
.ui.fine.progress> .bar {
background-color: pink !important;
}
diff --git a/assets/en_US_guide_settings.md.1abc055b.lean.js b/assets/en_US_guide_settings.md.de6013e8.lean.js
similarity index 85%
rename from assets/en_US_guide_settings.md.1abc055b.lean.js
rename to assets/en_US_guide_settings.md.de6013e8.lean.js
index 1bdc1da5..1115f38f 100644
--- a/assets/en_US_guide_settings.md.1abc055b.lean.js
+++ b/assets/en_US_guide_settings.md.de6013e8.lean.js
@@ -1 +1 @@
-import{_ as s,o as a,c as n,R as o}from"./chunks/framework.44fd0451.js";const d=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/guide/settings.md","filePath":"en_US/guide/settings.md","lastUpdated":1701534410000}'),e={name:"en_US/guide/settings.md"},l=o("",37),t=[l];function p(r,c,i,y,D,F){return a(),n("div",null,t)}const u=s(e,[["render",p]]);export{d as __pageData,u as default};
+import{_ as s,o as a,c as n,R as o}from"./chunks/framework.44fd0451.js";const d=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/guide/settings.md","filePath":"en_US/guide/settings.md","lastUpdated":1701657270000}'),e={name:"en_US/guide/settings.md"},l=o("",37),t=[l];function p(r,c,i,y,D,F){return a(),n("div",null,t)}const u=s(e,[["render",p]]);export{d as __pageData,u as default};
diff --git a/assets/en_US_guide_tasks.md.dfe9cb41.js b/assets/en_US_guide_tasks.md.008ec715.js
similarity index 98%
rename from assets/en_US_guide_tasks.md.dfe9cb41.js
rename to assets/en_US_guide_tasks.md.008ec715.js
index 9674fa47..b568eafe 100644
--- a/assets/en_US_guide_tasks.md.dfe9cb41.js
+++ b/assets/en_US_guide_tasks.md.008ec715.js
@@ -1 +1 @@
-import{_ as e,o as t,c as o,R as a}from"./chunks/framework.44fd0451.js";const g=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/guide/tasks.md","filePath":"en_US/guide/tasks.md","lastUpdated":1701534410000}'),i={name:"en_US/guide/tasks.md"},s=a('
How to use
To add a scheduled task you need to make the following settings:Name
- Customize a task nameTask Type
- select the type of task
Scheduled Tasks - Tasks are executed periodically at the scheduled time set below
Trigger Tasks - Tasks that are triggered only by API or notification rules and are executed once per triggerCron Expression
- (Not valid when using the trigger task type) 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
hereCoverage
and Specific Servers
- Similar to the settings on the Services page, select rules to determine which Agents need to execute scheduled tasks
When using the trigger task type, you can select Only servers that are included in the notification rule
Notification Group
- Select the notification method you have set up on the "Notification" page. Click here for more informationSend Success Notification
- When this item is activated, a message notification will be triggered when the task is successfully executedManage tasks
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 immediatelyEdit
- Click to modify the task configurationDelete
- Delete this scheduled taskFAQ
',10),n=[s];function r(c,d,l,h,u,p){return t(),o("div",null,n)}const k=e(i,[["render",r]]);export{g as __pageData,k as default};
+import{_ as e,o as t,c as o,R as a}from"./chunks/framework.44fd0451.js";const g=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/guide/tasks.md","filePath":"en_US/guide/tasks.md","lastUpdated":1701657270000}'),i={name:"en_US/guide/tasks.md"},s=a('
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.How to use
To add a scheduled task you need to make the following settings:Name
- Customize a task nameTask Type
- select the type of task
Scheduled Tasks - Tasks are executed periodically at the scheduled time set below
Trigger Tasks - Tasks that are triggered only by API or notification rules and are executed once per triggerCron Expression
- (Not valid when using the trigger task type) 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
hereCoverage
and Specific Servers
- Similar to the settings on the Services page, select rules to determine which Agents need to execute scheduled tasks
When using the trigger task type, you can select Only servers that are included in the notification rule
Notification Group
- Select the notification method you have set up on the "Notification" page. Click here for more informationSend Success Notification
- When this item is activated, a message notification will be triggered when the task is successfully executedManage tasks
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 immediatelyEdit
- Click to modify the task configurationDelete
- Delete this scheduled taskFAQ
',10),n=[s];function r(c,d,l,h,u,p){return t(),o("div",null,n)}const k=e(i,[["render",r]]);export{g as __pageData,k as default};
diff --git a/assets/en_US_guide_tasks.md.dfe9cb41.lean.js b/assets/en_US_guide_tasks.md.008ec715.lean.js
similarity index 84%
rename from assets/en_US_guide_tasks.md.dfe9cb41.lean.js
rename to assets/en_US_guide_tasks.md.008ec715.lean.js
index f3c3302c..165ca23f 100644
--- a/assets/en_US_guide_tasks.md.dfe9cb41.lean.js
+++ b/assets/en_US_guide_tasks.md.008ec715.lean.js
@@ -1 +1 @@
-import{_ as e,o as t,c as o,R as a}from"./chunks/framework.44fd0451.js";const g=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/guide/tasks.md","filePath":"en_US/guide/tasks.md","lastUpdated":1701534410000}'),i={name:"en_US/guide/tasks.md"},s=a("",10),n=[s];function r(c,d,l,h,u,p){return t(),o("div",null,n)}const k=e(i,[["render",r]]);export{g as __pageData,k as default};
+import{_ as e,o as t,c as o,R as a}from"./chunks/framework.44fd0451.js";const g=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/guide/tasks.md","filePath":"en_US/guide/tasks.md","lastUpdated":1701657270000}'),i={name:"en_US/guide/tasks.md"},s=a("",10),n=[s];function r(c,d,l,h,u,p){return t(),o("div",null,n)}const k=e(i,[["render",r]]);export{g as __pageData,k as default};
diff --git a/assets/en_US_index.md.99e7e7d6.js b/assets/en_US_index.md.423c24fc.js
similarity index 95%
rename from assets/en_US_index.md.99e7e7d6.js
rename to assets/en_US_index.md.423c24fc.js
index 011423ea..d56c3a97 100644
--- a/assets/en_US_index.md.99e7e7d6.js
+++ b/assets/en_US_index.md.423c24fc.js
@@ -1 +1 @@
-import{_ as e,o as t,c as a}from"./chunks/framework.44fd0451.js";const u=JSON.parse('{"title":"Nezha Monitoring","titleTemplate":"User Manual","description":"","frontmatter":{"layout":"home","title":"Nezha Monitoring","titleTemplate":"User Manual","hero":{"name":"Nezha Monitoring","text":"A open source, lightweight server and website monitoring and O&M tool","image":"https://raw.githubusercontent.com/naiba/nezha/master/resource/static/brand.svg","actions":[{"theme":"brand","text":"Preview","link":"https://ops.naibahq.com"},{"theme":"alt","text":"Learn More →","link":"/en_US/guide/dashboard"}]},"features":[{"title":"One-Click Installation","details":"Support one-click script installation Dashboard and Agent services for easy use; mainstream systems such as Linux, Windows, MacOS, OpenWRT, etc. are all supported."},{"title":"Real-time monitoring","details":"Supports monitoring the system status of multiple servers simultaneously, including monitoring the status of web pages, ports, and SSL certificates. It also supports sending notifications when there are failures or when data reaches the limit. Multiple notification methods are supported, such as Telegram, email, and WeChat."},{"title":"Easy O&M","details":"Support WebSSH, support data monitoring, support setting scheduled tasks, and support batch execution of tasks on servers."}]},"headers":[],"relativePath":"en_US/index.md","filePath":"en_US/index.md","lastUpdated":1701534410000}'),s={name:"en_US/index.md"};function n(i,o,r,l,p,d){return t(),a("div")}const m=e(s,[["render",n]]);export{u as __pageData,m as default};
+import{_ as e,o as t,c as a}from"./chunks/framework.44fd0451.js";const u=JSON.parse('{"title":"Nezha Monitoring","titleTemplate":"User Manual","description":"","frontmatter":{"layout":"home","title":"Nezha Monitoring","titleTemplate":"User Manual","hero":{"name":"Nezha Monitoring","text":"A open source, lightweight server and website monitoring and O&M tool","image":"https://raw.githubusercontent.com/naiba/nezha/master/resource/static/brand.svg","actions":[{"theme":"brand","text":"Preview","link":"https://ops.naibahq.com"},{"theme":"alt","text":"Learn More →","link":"/en_US/guide/dashboard"}]},"features":[{"title":"One-Click Installation","details":"Support one-click script installation Dashboard and Agent services for easy use; mainstream systems such as Linux, Windows, MacOS, OpenWRT, etc. are all supported."},{"title":"Real-time monitoring","details":"Supports monitoring the system status of multiple servers simultaneously, including monitoring the status of web pages, ports, and SSL certificates. It also supports sending notifications when there are failures or when data reaches the limit. Multiple notification methods are supported, such as Telegram, email, and WeChat."},{"title":"Easy O&M","details":"Support WebSSH, support data monitoring, support setting scheduled tasks, and support batch execution of tasks on servers."}]},"headers":[],"relativePath":"en_US/index.md","filePath":"en_US/index.md","lastUpdated":1701657270000}'),s={name:"en_US/index.md"};function n(i,o,r,l,p,d){return t(),a("div")}const m=e(s,[["render",n]]);export{u as __pageData,m as default};
diff --git a/assets/en_US_index.md.99e7e7d6.lean.js b/assets/en_US_index.md.423c24fc.lean.js
similarity index 95%
rename from assets/en_US_index.md.99e7e7d6.lean.js
rename to assets/en_US_index.md.423c24fc.lean.js
index 011423ea..d56c3a97 100644
--- a/assets/en_US_index.md.99e7e7d6.lean.js
+++ b/assets/en_US_index.md.423c24fc.lean.js
@@ -1 +1 @@
-import{_ as e,o as t,c as a}from"./chunks/framework.44fd0451.js";const u=JSON.parse('{"title":"Nezha Monitoring","titleTemplate":"User Manual","description":"","frontmatter":{"layout":"home","title":"Nezha Monitoring","titleTemplate":"User Manual","hero":{"name":"Nezha Monitoring","text":"A open source, lightweight server and website monitoring and O&M tool","image":"https://raw.githubusercontent.com/naiba/nezha/master/resource/static/brand.svg","actions":[{"theme":"brand","text":"Preview","link":"https://ops.naibahq.com"},{"theme":"alt","text":"Learn More →","link":"/en_US/guide/dashboard"}]},"features":[{"title":"One-Click Installation","details":"Support one-click script installation Dashboard and Agent services for easy use; mainstream systems such as Linux, Windows, MacOS, OpenWRT, etc. are all supported."},{"title":"Real-time monitoring","details":"Supports monitoring the system status of multiple servers simultaneously, including monitoring the status of web pages, ports, and SSL certificates. It also supports sending notifications when there are failures or when data reaches the limit. Multiple notification methods are supported, such as Telegram, email, and WeChat."},{"title":"Easy O&M","details":"Support WebSSH, support data monitoring, support setting scheduled tasks, and support batch execution of tasks on servers."}]},"headers":[],"relativePath":"en_US/index.md","filePath":"en_US/index.md","lastUpdated":1701534410000}'),s={name:"en_US/index.md"};function n(i,o,r,l,p,d){return t(),a("div")}const m=e(s,[["render",n]]);export{u as __pageData,m as default};
+import{_ as e,o as t,c as a}from"./chunks/framework.44fd0451.js";const u=JSON.parse('{"title":"Nezha Monitoring","titleTemplate":"User Manual","description":"","frontmatter":{"layout":"home","title":"Nezha Monitoring","titleTemplate":"User Manual","hero":{"name":"Nezha Monitoring","text":"A open source, lightweight server and website monitoring and O&M tool","image":"https://raw.githubusercontent.com/naiba/nezha/master/resource/static/brand.svg","actions":[{"theme":"brand","text":"Preview","link":"https://ops.naibahq.com"},{"theme":"alt","text":"Learn More →","link":"/en_US/guide/dashboard"}]},"features":[{"title":"One-Click Installation","details":"Support one-click script installation Dashboard and Agent services for easy use; mainstream systems such as Linux, Windows, MacOS, OpenWRT, etc. are all supported."},{"title":"Real-time monitoring","details":"Supports monitoring the system status of multiple servers simultaneously, including monitoring the status of web pages, ports, and SSL certificates. It also supports sending notifications when there are failures or when data reaches the limit. Multiple notification methods are supported, such as Telegram, email, and WeChat."},{"title":"Easy O&M","details":"Support WebSSH, support data monitoring, support setting scheduled tasks, and support batch execution of tasks on servers."}]},"headers":[],"relativePath":"en_US/index.md","filePath":"en_US/index.md","lastUpdated":1701657270000}'),s={name:"en_US/index.md"};function n(i,o,r,l,p,d){return t(),a("div")}const m=e(s,[["render",n]]);export{u as __pageData,m as default};
diff --git a/assets/guide_agent.md.85008d4e.js b/assets/guide_agent.md.bc096080.js
similarity index 80%
rename from assets/guide_agent.md.85008d4e.js
rename to assets/guide_agent.md.bc096080.js
index a318a0d7..a8d4e2ce 100644
--- a/assets/guide_agent.md.85008d4e.js
+++ b/assets/guide_agent.md.bc096080.js
@@ -1,4 +1,4 @@
-import{_ as s,o as n,c as a,R as l}from"./chunks/framework.44fd0451.js";const A=JSON.parse('{"title":"","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"guide/agent.md","filePath":"guide/agent.md","lastUpdated":1701534410000}'),p={name:"guide/agent.md"},o=l(`
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.一键安装 Agent
准备工作
进入后台管理面板,转到“设置”页,在“未接入 CDN 的面板服务器域名/IP”项中填入通信域名,然后点击"保存"在 Linux 中一键安装 (Ubuntu、Debian、CentOS)
在 Windows 中一键安装
其他方式安装 Agent
在 Linux 中安装 Agent (Ubuntu、Debian、CentOS)
curl -L https://raw.githubusercontent.com/naiba/nezha/master/script/install.sh -o nezha.sh && chmod +x nezha.sh && sudo ./nezha.sh
curl -L https://jihulab.com/nezha/dashboard/-/raw/master/script/install.sh -o nezha.sh && chmod +x nezha.sh && sudo CN=true ./nezha.sh
在 其他 Linux 如 Alpine 使用 Openrc 的发行版 安装 Agent
cat >/etc/init.d/nezha-agent<< EOF
+import{_ as s,o as n,c as a,R as l}from"./chunks/framework.44fd0451.js";const A=JSON.parse('{"title":"","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"guide/agent.md","filePath":"guide/agent.md","lastUpdated":1701657270000}'),p={name:"guide/agent.md"},o=l(`
一键安装 Agent
准备工作
进入后台管理面板,转到“设置”页,在“未接入 CDN 的面板服务器域名/IP”项中填入通信域名,然后点击"保存"在 Linux 中一键安装 (Ubuntu、Debian、CentOS)
在 Windows 中一键安装
其他方式安装 Agent
在 Linux 中安装 Agent (Ubuntu、Debian、CentOS)
curl -L https://raw.githubusercontent.com/naiba/nezha/master/script/install.sh -o nezha.sh && chmod +x nezha.sh && sudo ./nezha.sh
curl -L https://gitee.com/naibahq/nezha/raw/master/script/install.sh -o nezha.sh && chmod +x nezha.sh && sudo CN=true ./nezha.sh
在 其他 Linux 如 Alpine 使用 Openrc 的发行版 安装 Agent
cat >/etc/init.d/nezha-agent<< EOF
#!/sbin/openrc-run
SERVER="" #Dashboard 地址 ip:port
SECRET="" #SECRET
@@ -10,54 +10,54 @@ import{_ as s,o as n,c as a,R as l}from"./chunks/framework.44fd0451.js";const A=
command_args="-s \${SERVER} -p \${SECRET} \${TLS}"
command_background=true
depend() {
- need net
+ need net
}
checkconfig() {
- GITHUB_URL="github.com"
- if [ ! -f "\${NZ_AGENT_PATH}/nezha-agent" ]; then
- if [[ $(uname -m | grep 'x86_64') != "" ]]; then
- os_arch="amd64"
- elif [[ $(uname -m | grep 'i386\\|i686') != "" ]]; then
- os_arch="386"
- elif [[ $(uname -m | grep 'aarch64\\|armv8b\\|armv8l') != "" ]]; then
- os_arch="arm64"
- elif [[ $(uname -m | grep 'arm') != "" ]]; then
- os_arch="arm"
- elif [[ $(uname -m | grep 's390x') != "" ]]; then
- os_arch="s390x"
- elif [[ $(uname -m | grep 'riscv64') != "" ]]; then
- os_arch="riscv64"
- fi
- local version=$(curl -m 10 -sL "https://api.github.com/repos/nezhahq/agent/releases/latest" | grep "tag_name" | head -n 1 | awk -F ":" '{print $2}' | sed 's/\\"//g;s/,//g;s/ //g')
- if [ ! -n "$version" ]; then
- version=$(curl -m 10 -sL "https://fastly.jsdelivr.net/gh/nezhahq/agent/" | grep "option\\.value" | awk -F "'" '{print $2}' | sed 's/nezhahq\\/agent@/v/g')
- fi
- if [ ! -n "$version" ]; then
- version=$(curl -m 10 -sL "https://gcore.jsdelivr.net/gh/nezhahq/agent/" | grep "option\\.value" | awk -F "'" '{print $2}' | sed 's/nezhahq\\/agent@/v/g')
- fi
- if [ ! -n "$version" ]; then
- echo -e "获取版本号失败,请检查本机能否链接 https://api.github.com/repos/nezhahq/agent/releases/latest"
- return 0
- else
- echo -e "当前最新版本为: \${version}"
- fi
- wget -t 2 -T 10 -O nezha-agent_linux_\${os_arch}.zip https://\${GITHUB_URL}/nezhahq/agent/releases/download/\${version}/nezha-agent_linux_\${os_arch}.zip >/dev/null 2>&1
- if [[ $? != 0 ]]; then
- echo -e "Release 下载失败,请检查本机能否连接 \${GITHUB_URL}\${plain}"
- return 0
- fi
- mkdir -p $NZ_AGENT_PATH
- chmod 755 -R $NZ_AGENT_PATH
- unzip -qo nezha-agent_linux_\${os_arch}.zip && mv nezha-agent $NZ_AGENT_PATH && rm -rf nezha-agent_linux_\${os_arch}.zip README.md
- fi
- if [ ! -x "\${NZ_AGENT_PATH}/nezha-agent" ]; then
- chmod +x \${NZ_AGENT_PATH}/nezha-agent
- fi
+ GITHUB_URL="github.com"
+ if [ ! -f "\${NZ_AGENT_PATH}/nezha-agent" ]; then
+ if [[ $(uname -m | grep 'x86_64') != "" ]]; then
+ os_arch="amd64"
+ elif [[ $(uname -m | grep 'i386\\|i686') != "" ]]; then
+ os_arch="386"
+ elif [[ $(uname -m | grep 'aarch64\\|armv8b\\|armv8l') != "" ]]; then
+ os_arch="arm64"
+ elif [[ $(uname -m | grep 'arm') != "" ]]; then
+ os_arch="arm"
+ elif [[ $(uname -m | grep 's390x') != "" ]]; then
+ os_arch="s390x"
+ elif [[ $(uname -m | grep 'riscv64') != "" ]]; then
+ os_arch="riscv64"
+ fi
+ local version=$(curl -m 10 -sL "https://api.github.com/repos/nezhahq/agent/releases/latest" | grep "tag_name" | head -n 1 | awk -F ":" '{print $2}' | sed 's/\\"//g;s/,//g;s/ //g')
+ if [ ! -n "$version" ]; then
+ version=$(curl -m 10 -sL "https://fastly.jsdelivr.net/gh/nezhahq/agent/" | grep "option\\.value" | awk -F "'" '{print $2}' | sed 's/nezhahq\\/agent@/v/g')
+ fi
+ if [ ! -n "$version" ]; then
+ version=$(curl -m 10 -sL "https://gcore.jsdelivr.net/gh/nezhahq/agent/" | grep "option\\.value" | awk -F "'" '{print $2}' | sed 's/nezhahq\\/agent@/v/g')
+ fi
+ if [ ! -n "$version" ]; then
+ echo -e "获取版本号失败,请检查本机能否链接 https://api.github.com/repos/nezhahq/agent/releases/latest"
+ return 0
+ else
+ echo -e "当前最新版本为: \${version}"
+ fi
+ wget -t 2 -T 10 -O nezha-agent_linux_\${os_arch}.zip https://\${GITHUB_URL}/nezhahq/agent/releases/download/\${version}/nezha-agent_linux_\${os_arch}.zip >/dev/null 2>&1
+ if [[ $? != 0 ]]; then
+ echo -e "Release 下载失败,请检查本机能否连接 \${GITHUB_URL}\${plain}"
+ return 0
+ fi
+ mkdir -p $NZ_AGENT_PATH
+ chmod 755 -R $NZ_AGENT_PATH
+ unzip -qo nezha-agent_linux_\${os_arch}.zip && mv nezha-agent $NZ_AGENT_PATH && rm -rf nezha-agent_linux_\${os_arch}.zip README.md
+ fi
+ if [ ! -x "\${NZ_AGENT_PATH}/nezha-agent" ]; then
+ chmod +x \${NZ_AGENT_PATH}/nezha-agent
+ fi
}
start_pre() {
- if [ "\${RC_CMD}" != "restart" ]; then
- checkconfig || return $?
- fi
+ if [ "\${RC_CMD}" != "restart" ]; then
+ checkconfig || return $?
+ fi
}
EOF
chmod +x /etc/init.d/nezha-agent
rc-service nezha-agent start
rc-update add nezha-agent
在 Windows 中安装 Agent
哪吒探针 - Windows 客户端安装在 群晖DSM 中安装 Agent
# 客户端路径
EXEC="/PATH/TO/nezha-agent"
@@ -98,22 +98,22 @@ import{_ as s,o as n,c as a,R as l}from"./chunks/framework.44fd0451.js";const A=
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
- <key>KeepAlive</key>
- <true/>
- <key>Label</key>
- <string>nezha_agent</string>
- <key>Program</key>
- <string>在这里修改 Agent 二进制文件的的路径,如:/Users/123/Downloads/nezha-agent</string>
- <key>ProgramArguments</key>
- <array>
- <string>在这里修改 Agent 二进制文件的的路径,同上</string>
- <string>--password</string>
- <string>通信密钥,如:529664783eeb23cc25</string>
- <string>--server</string>
- <string>通信网址和RPC端口,如:data.example.com:5555</string>
- </array>
- <key>RunAtLoad</key>
- <true/>
+ <key>KeepAlive</key>
+ <true/>
+ <key>Label</key>
+ <string>nezha_agent</string>
+ <key>Program</key>
+ <string>在这里修改 Agent 二进制文件的的路径,如:/Users/123/Downloads/nezha-agent</string>
+ <key>ProgramArguments</key>
+ <array>
+ <string>在这里修改 Agent 二进制文件的的路径,同上</string>
+ <string>--password</string>
+ <string>通信密钥,如:529664783eeb23cc25</string>
+ <string>--server</string>
+ <string>通信网址和RPC端口,如:data.example.com:5555</string>
+ </array>
+ <key>RunAtLoad</key>
+ <true/>
</dict>
</plist>
launchctl load /Users/123/Desktop/nezha_agent.plist
launchctl start nezha_agent
launchctl list | grep nezha_agent
launchctl stop nezha_agent
launchctl remove nezha_agent
在 OpenWRT 中安装 Agent
NZ-OpenWrt
哪吒监控 For OpenWRT/root
chmod +x /root/nezha-agent
赋予执行权限,然后创建 /etc/init.d/nezha-service
:#!/bin/sh /etc/rc.common
@@ -135,4 +135,4 @@ import{_ as s,o as n,c as a,R as l}from"./chunks/framework.44fd0451.js";const A=
stop
sleep 2
start
-}
chmod +x /etc/init.d/nezha-service
赋予执行权限/etc/init.d/nezha-service enable && /etc/init.d/nezha-service start
FAQ
Agent 有 Docker 镜像吗?
Agent 的设计思路和 Dashboard 相反,Dashboard 要尽可能不影响宿主机工作,但 Agent 则需要在宿主机中执行监控服务和运行命令。
将 Agent 放入容器中确实可以继续执行监控任务,但 WebShell 等功能无法正常运行,因此不提供 Docker 镜像。chmod +x /etc/init.d/nezha-service
赋予执行权限/etc/init.d/nezha-service enable && /etc/init.d/nezha-service start
FAQ
Agent 有 Docker 镜像吗?
Agent 的设计思路和 Dashboard 相反,Dashboard 要尽可能不影响宿主机工作,但 Agent 则需要在宿主机中执行监控服务和运行命令。
将 Agent 放入容器中确实可以继续执行监控任务,但 WebShell 等功能无法正常运行,因此不提供 Docker 镜像。后台显示的 IP 和 Agent 实际 IP 不一致?
在此不再赘述。一键脚本安装时出错
curl: Failed to connect to raw.githubusercontent.com......
sudo: command not found
后台显示的 IP 和 Agent 实际 IP 不一致?
在此不再赘述。一键脚本安装时出错
curl: Failed to connect to raw.githubusercontent.com......
sudo: command not found
创建 Token
要新建一个 Token,在进入管理面板后,点击右上角的头像,选择 “API Token”,进入 Token 管理页面
点击 “添加 Token”,自定义备注后,点击 “添加”
如需删除一个 Token,请选择相应的 Token,点击右侧的删除图标认证方式
Request Headers:
+import{_ as s,o as n,c as a,R as o}from"./chunks/framework.44fd0451.js";const y=JSON.parse('{"title":"","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"guide/api.md","filePath":"guide/api.md","lastUpdated":1701657270000}'),l={name:"guide/api.md"},p=o(`
创建 Token
要新建一个 Token,在进入管理面板后,点击右上角的头像,选择 “API Token”,进入 Token 管理页面
点击 “添加 Token”,自定义备注后,点击 “添加”
如需删除一个 Token,请选择相应的 Token,点击右侧的删除图标认证方式
Request Headers:
Authorization: Token
使用说明
目前表示 Dashboard 上线后该 Agent 从未汇报过
但不建议用正负性判断状态Get
,返回格式为 JSON
GET /api/v1/server/list?tag=
query: tag (ServerTag 是服务器的分组,提供此参数则仅查询该分组中的服务器){
"code": 0,
"message": "success",
diff --git a/assets/guide_api.md.10955d00.lean.js b/assets/guide_api.md.015e2d59.lean.js
similarity index 84%
rename from assets/guide_api.md.10955d00.lean.js
rename to assets/guide_api.md.015e2d59.lean.js
index 46e6ca05..07cad060 100644
--- a/assets/guide_api.md.10955d00.lean.js
+++ b/assets/guide_api.md.015e2d59.lean.js
@@ -1 +1 @@
-import{_ as s,o as n,c as a,R as o}from"./chunks/framework.44fd0451.js";const y=JSON.parse('{"title":"","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"guide/api.md","filePath":"guide/api.md","lastUpdated":1701534410000}'),l={name:"guide/api.md"},p=o("",16),t=[p];function e(c,u,q,C,A,i){return n(),a("div",null,t)}const D=s(l,[["render",e]]);export{y as __pageData,D as default};
+import{_ as s,o as n,c as a,R as o}from"./chunks/framework.44fd0451.js";const y=JSON.parse('{"title":"","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"guide/api.md","filePath":"guide/api.md","lastUpdated":1701657270000}'),l={name:"guide/api.md"},p=o("",16),t=[p];function e(c,u,q,C,A,i){return n(),a("div",null,t)}const D=s(l,[["render",e]]);export{y as __pageData,D as default};
diff --git a/assets/guide_dashboard.md.cf138dd1.js b/assets/guide_dashboard.md.889b7c4e.js
similarity index 80%
rename from assets/guide_dashboard.md.cf138dd1.js
rename to assets/guide_dashboard.md.889b7c4e.js
index 75aec883..ec30416f 100644
--- a/assets/guide_dashboard.md.cf138dd1.js
+++ b/assets/guide_dashboard.md.889b7c4e.js
@@ -1,4 +1,4 @@
-import{_ as a,o as s,c as e,R as l}from"./chunks/framework.44fd0451.js";const b=JSON.parse('{"title":"","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"guide/dashboard.md","filePath":"guide/dashboard.md","lastUpdated":1701534410000}'),o={name:"guide/dashboard.md"},n=l(`
准备工作
本文档分别以 "cdn.example.com" 和 "data.example.com" 两个域名来演示
如果你认为没有必要使用 80、443 端口来访问 Dashboard,你甚至不需要安装 NginX 就可以直接使用安装脚本。获取 Github/Jihulab 的 Client ID 和密钥
Application name
- 随意填写Homepage URL
- 填写面板的访问域名,如:"http://cdn.example.com"Authorization callback URL
- 填写回调地址,如:"http://cdn.example.com/oauth2/callback"Redirect URL
中应填入回调地址范围
中勾选 read_user
和 read_api
在服务器中安装 Dashboard
curl -L https://raw.githubusercontent.com/naiba/nezha/master/script/install.sh -o nezha.sh && chmod +x nezha.sh && sudo ./nezha.sh
curl -L https://jihulab.com/nezha/dashboard/-/raw/master/script/install.sh -o nezha.sh && chmod +x nezha.sh && sudo CN=true ./nezha.sh
OAuth提供商
- Github,Gitlab,Jihulab,Gitee 中选择一个Client ID
- 之前保存的 Client IDClient Secret
- 之前保存的密钥用户名
- OAuth 提供商中的用户名站点标题
- 自定义站点标题访问端口
- 公开访问端口,可自定义,默认 8008Agent的通信端口
- Agent与Dashboard的通信端口,默认 5555
安装结束后,如果一切正常,此时你可以访问域名+端口号,如 “http://cdn.example.com:8008” 来查看面板./nezha.sh
配置反向代理
http://127.0.0.1
然后点击“保存”#PROXY-START/
+import{_ as a,o as s,c as e,R as l}from"./chunks/framework.44fd0451.js";const b=JSON.parse('{"title":"","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"guide/dashboard.md","filePath":"guide/dashboard.md","lastUpdated":1701657270000}'),o={name:"guide/dashboard.md"},n=l(`
准备工作
本文档分别以 "cdn.example.com" 和 "data.example.com" 两个域名来演示
如果你认为没有必要使用 80、443 端口来访问 Dashboard,你甚至不需要安装 NginX 就可以直接使用安装脚本。获取 Github/Jihulab 的 Client ID 和密钥
Application name
- 随意填写Homepage URL
- 填写面板的访问域名,如:"http://cdn.example.com"Authorization callback URL
- 填写回调地址,如:"http://cdn.example.com/oauth2/callback"Redirect URL
中应填入回调地址范围
中勾选 read_user
和 read_api
在服务器中安装 Dashboard
curl -L https://raw.githubusercontent.com/naiba/nezha/master/script/install.sh -o nezha.sh && chmod +x nezha.sh && sudo ./nezha.sh
curl -L https://gitee.com/naibahq/nezha/raw/master/script/install.sh -o nezha.sh && chmod +x nezha.sh && sudo CN=true ./nezha.sh
OAuth提供商
- Github,Gitlab,Jihulab,Gitee 中选择一个Client ID
- 之前保存的 Client IDClient Secret
- 之前保存的密钥用户名
- OAuth 提供商中的用户名站点标题
- 自定义站点标题访问端口
- 公开访问端口,可自定义,默认 8008Agent的通信端口
- Agent与Dashboard的通信端口,默认 5555
安装结束后,如果一切正常,此时你可以访问域名+端口号,如 “http://cdn.example.com:8008” 来查看面板./nezha.sh
配置反向代理
http://127.0.0.1
然后点击“保存”#PROXY-START/
location / {
proxy_pass http://127.0.0.1:8008;
proxy_set_header Host $http_host;
diff --git a/assets/guide_dashboard.md.cf138dd1.lean.js b/assets/guide_dashboard.md.889b7c4e.lean.js
similarity index 70%
rename from assets/guide_dashboard.md.cf138dd1.lean.js
rename to assets/guide_dashboard.md.889b7c4e.lean.js
index 4d7e3398..455637e0 100644
--- a/assets/guide_dashboard.md.cf138dd1.lean.js
+++ b/assets/guide_dashboard.md.889b7c4e.lean.js
@@ -1 +1 @@
-import{_ as a,o as s,c as e,R as l}from"./chunks/framework.44fd0451.js";const b=JSON.parse('{"title":"","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"guide/dashboard.md","filePath":"guide/dashboard.md","lastUpdated":1701534410000}'),o={name:"guide/dashboard.md"},n=l("",44),t=[n];function p(r,c,i,h,d,C){return s(),e("div",null,t)}const A=a(o,[["render",p]]);export{b as __pageData,A as default};
+import{_ as a,o as s,c as e,R as l}from"./chunks/framework.44fd0451.js";const b=JSON.parse('{"title":"","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"guide/dashboard.md","filePath":"guide/dashboard.md","lastUpdated":1701657270000}'),o={name:"guide/dashboard.md"},n=l("",44),t=[n];function p(r,c,i,h,d,C){return s(),e("div",null,t)}const A=a(o,[["render",p]]);export{b as __pageData,A as default};
diff --git a/assets/guide_dashboardq.md.9e79f90f.js b/assets/guide_dashboardq.md.1f53b6b0.js
similarity index 98%
rename from assets/guide_dashboardq.md.9e79f90f.js
rename to assets/guide_dashboardq.md.1f53b6b0.js
index 4c00e8fa..0c936f1f 100644
--- a/assets/guide_dashboardq.md.9e79f90f.js
+++ b/assets/guide_dashboardq.md.1f53b6b0.js
@@ -1,4 +1,4 @@
-import{_ as s,o as a,c as n,R as o}from"./chunks/framework.44fd0451.js";const b=JSON.parse('{"title":"","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"guide/dashboardq.md","filePath":"guide/dashboardq.md","lastUpdated":1701534410000}'),l={name:"guide/dashboardq.md"},e=o(`
为什么管理面板中显示的 IP 和 Agent 实际 IP 不一致?
如您发现管理面板中显示的 IP 和服务商提供给您的 IP 不一致,最大的可能是服务商给您的是入口 IP,但Agent测试的是您的出口 IP。这个问题也可能会出现在多线服务器和 IPLC 专线中。curl https://ipapi.co/ip/
+import{_ as s,o as a,c as n,R as o}from"./chunks/framework.44fd0451.js";const b=JSON.parse('{"title":"","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"guide/dashboardq.md","filePath":"guide/dashboardq.md","lastUpdated":1701657270000}'),l={name:"guide/dashboardq.md"},e=o(`
为什么管理面板中显示的 IP 和 Agent 实际 IP 不一致?
如您发现管理面板中显示的 IP 和服务商提供给您的 IP 不一致,最大的可能是服务商给您的是入口 IP,但Agent测试的是您的出口 IP。这个问题也可能会出现在多线服务器和 IPLC 专线中。curl https://ipapi.co/ip/
curl ip.sb
curl ip-api.com
忘记查看密码\\删除查看密码
/opt/nezha/dashboard/data/config.yaml
文件。
密码位于 site-viewpassword 项中。面板安装/重启/更新失败: iptables ......
systemctl status docker
systemctl restart docker
diff --git a/assets/guide_dashboardq.md.9e79f90f.lean.js b/assets/guide_dashboardq.md.1f53b6b0.lean.js
similarity index 70%
rename from assets/guide_dashboardq.md.9e79f90f.lean.js
rename to assets/guide_dashboardq.md.1f53b6b0.lean.js
index f1b28ad0..a3ce92e0 100644
--- a/assets/guide_dashboardq.md.9e79f90f.lean.js
+++ b/assets/guide_dashboardq.md.1f53b6b0.lean.js
@@ -1 +1 @@
-import{_ as s,o as a,c as n,R as o}from"./chunks/framework.44fd0451.js";const b=JSON.parse('{"title":"","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"guide/dashboardq.md","filePath":"guide/dashboardq.md","lastUpdated":1701534410000}'),l={name:"guide/dashboardq.md"},e=o("",18),p=[e];function t(r,c,i,d,h,y){return a(),n("div",null,p)}const D=s(l,[["render",t]]);export{b as __pageData,D as default};
+import{_ as s,o as a,c as n,R as o}from"./chunks/framework.44fd0451.js";const b=JSON.parse('{"title":"","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"guide/dashboardq.md","filePath":"guide/dashboardq.md","lastUpdated":1701657270000}'),l={name:"guide/dashboardq.md"},e=o("",18),p=[e];function t(r,c,i,d,h,y){return a(),n("div",null,p)}const D=s(l,[["render",t]]);export{b as __pageData,D as default};
diff --git a/assets/guide_loginq.md.dd090780.js b/assets/guide_loginq.md.d9b9e8be.js
similarity index 98%
rename from assets/guide_loginq.md.dd090780.js
rename to assets/guide_loginq.md.d9b9e8be.js
index 266acf9b..72dd15d9 100644
--- a/assets/guide_loginq.md.dd090780.js
+++ b/assets/guide_loginq.md.d9b9e8be.js
@@ -1 +1 @@
-import{_ as e,o as t,c as a,R as o}from"./chunks/framework.44fd0451.js";const m=JSON.parse('{"title":"","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"guide/loginq.md","filePath":"guide/loginq.md","lastUpdated":1701534410000}'),i={name:"guide/loginq.md"},r=o('
登录回调后页面卡住\\拒绝连接\\响应时间过长
在浏览器中,您的域名以://
结尾的字符串即为协议,通常为 http
和 https
两种。由于正常部署情况下面板可能有多种协议+域名+端口组合均可访问,请务必选一个最合适的作为回调。如何检查我的回调地址是否错误?
请确保您的路径为/oauth2/callback
,全部小写登录后面板报错
http: named cookie not present
lookup xxx
建议先重启docker,sudo systemctl restart docker
,再使用脚本重启面板。
仍然出现lookup错误建议查看是否有其他控制iptables的工具,如宝塔防火墙等。
这个问题也可能与内核有关系,请尝试更换官方内核。授权方式无效,或者登录回调地址无效、过期或已被撤销
oauth2: server response missing access_token
无法解决的话建议更换 Github/Jihulab 等。该用户不是本站点管理员,无法登录
dial tcp xxx:443 i/o timeout
sudo systemctl restart docker
,再使用脚本重启面板。
如为国内服务器配置 Github 登陆方式,则建议切换到Jihulab以避免网络干扰。net/http: TLS handshake timeout
登录回调后页面卡住\\拒绝连接\\响应时间过长
在浏览器中,您的域名以://
结尾的字符串即为协议,通常为 http
和 https
两种。由于正常部署情况下面板可能有多种协议+域名+端口组合均可访问,请务必选一个最合适的作为回调。如何检查我的回调地址是否错误?
请确保您的路径为/oauth2/callback
,全部小写登录后面板报错
http: named cookie not present
lookup xxx
建议先重启docker,sudo systemctl restart docker
,再使用脚本重启面板。
仍然出现lookup错误建议查看是否有其他控制iptables的工具,如宝塔防火墙等。
这个问题也可能与内核有关系,请尝试更换官方内核。授权方式无效,或者登录回调地址无效、过期或已被撤销
oauth2: server response missing access_token
无法解决的话建议更换 Github/Jihulab 等。该用户不是本站点管理员,无法登录
dial tcp xxx:443 i/o timeout
sudo systemctl restart docker
,再使用脚本重启面板。
如为国内服务器配置 Github 登陆方式,则建议切换到Jihulab以避免网络干扰。net/http: TLS handshake timeout
灵活的通知方式
#DATETIME#
代表事件发生的时间戳。当通知被触发时,面板会自动将 #DATETIME#
替换为事件的实际时间。#NEZHA#
是面板消息占位符,面板触发通知时会自动用实际消息替换占位符JSON
格式的:当请求类型为 FORM 时,值为 key:value
的形式,value
里面可放置占位符,通知时会自动替换。当请求类型为 JSON 时 只会简单进行字符串替换后直接提交到URL
。{"title": "#SERVER.NAME#","device_key":"xxxxxxxxx","body":"#NEZHA#","icon":"https://xxxxxxxx/nz.png"}
{
+import{_ as o,o as s,c as l,R as n}from"./chunks/framework.44fd0451.js";const q=JSON.parse('{"title":"","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"guide/notifications.md","filePath":"guide/notifications.md","lastUpdated":1701657270000}'),a={name:"guide/notifications.md"},t=n(`
灵活的通知方式
#DATETIME#
代表事件发生的时间戳。当通知被触发时,面板会自动将 #DATETIME#
替换为事件的实际时间。#NEZHA#
是面板消息占位符,面板触发通知时会自动用实际消息替换占位符JSON
格式的:当请求类型为 FORM 时,值为 key:value
的形式,value
里面可放置占位符,通知时会自动替换。当请求类型为 JSON 时 只会简单进行字符串替换后直接提交到URL
。{"title": "#SERVER.NAME#","device_key":"xxxxxxxxx","body":"#NEZHA#","icon":"https://xxxxxxxx/nz.png"}
{
"title": "#SERVER.NAME#",
"desp":"**#NEZHA#\\n\\n
平均负载: \\"#SERVER.LOAD1#\\",\\"#SERVER.LOAD5#\\",\\"#SERVER.LOAD15#\\"\\n\\n
diff --git a/assets/guide_notifications.md.f36c695a.lean.js b/assets/guide_notifications.md.2baac6d3.lean.js
similarity index 85%
rename from assets/guide_notifications.md.f36c695a.lean.js
rename to assets/guide_notifications.md.2baac6d3.lean.js
index 59ffa42a..c5746c8d 100644
--- a/assets/guide_notifications.md.f36c695a.lean.js
+++ b/assets/guide_notifications.md.2baac6d3.lean.js
@@ -1 +1 @@
-import{_ as o,o as s,c as l,R as n}from"./chunks/framework.44fd0451.js";const q=JSON.parse('{"title":"","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"guide/notifications.md","filePath":"guide/notifications.md","lastUpdated":1701534410000}'),a={name:"guide/notifications.md"},t=n("",28),p=[t];function e(r,c,D,u,i,y){return s(),l("div",null,p)}const F=o(a,[["render",e]]);export{q as __pageData,F as default};
+import{_ as o,o as s,c as l,R as n}from"./chunks/framework.44fd0451.js";const q=JSON.parse('{"title":"","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"guide/notifications.md","filePath":"guide/notifications.md","lastUpdated":1701657270000}'),a={name:"guide/notifications.md"},t=n("",28),p=[t];function e(r,c,D,u,i,y){return s(),l("div",null,p)}const F=o(a,[["render",e]]);export{q as __pageData,F as default};
diff --git a/assets/guide_q1.md.97e2cb27.js b/assets/guide_q1.md.751e8291.js
similarity index 99%
rename from assets/guide_q1.md.97e2cb27.js
rename to assets/guide_q1.md.751e8291.js
index 0f3afeb4..90648f9b 100644
--- a/assets/guide_q1.md.97e2cb27.js
+++ b/assets/guide_q1.md.751e8291.js
@@ -1,4 +1,4 @@
-import{_ as s,o as a,c as n,R as l}from"./chunks/framework.44fd0451.js";const F=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"guide/q1.md","filePath":"guide/q1.md","lastUpdated":1701534410000}'),p={name:"guide/q1.md"},o=l(`
准备工作
搭建一个 TGbot api 反代,你需要:
1.一个不受 GFW 封锁的服务器(且安装好 Nginx)
2.一个域名(提前申请 SSL 证书) NGINX 配置
# http强制跳转到htpps
+import{_ as s,o as a,c as n,R as l}from"./chunks/framework.44fd0451.js";const F=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"guide/q1.md","filePath":"guide/q1.md","lastUpdated":1701657270000}'),p={name:"guide/q1.md"},o=l(`
准备工作
搭建一个 TGbot api 反代,你需要:
1.一个不受 GFW 封锁的服务器(且安装好 Nginx)
2.一个域名(提前申请 SSL 证书) NGINX 配置
# http强制跳转到htpps
server {
listen 80;
listen [::]:80;
diff --git a/assets/guide_q1.md.97e2cb27.lean.js b/assets/guide_q1.md.751e8291.lean.js
similarity index 83%
rename from assets/guide_q1.md.97e2cb27.lean.js
rename to assets/guide_q1.md.751e8291.lean.js
index 15f46753..18c89f64 100644
--- a/assets/guide_q1.md.97e2cb27.lean.js
+++ b/assets/guide_q1.md.751e8291.lean.js
@@ -1 +1 @@
-import{_ as s,o as a,c as n,R as l}from"./chunks/framework.44fd0451.js";const F=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"guide/q1.md","filePath":"guide/q1.md","lastUpdated":1701534410000}'),p={name:"guide/q1.md"},o=l("",11),e=[o];function t(r,c,C,y,D,A){return a(),n("div",null,e)}const d=s(p,[["render",t]]);export{F as __pageData,d as default};
+import{_ as s,o as a,c as n,R as l}from"./chunks/framework.44fd0451.js";const F=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"guide/q1.md","filePath":"guide/q1.md","lastUpdated":1701657270000}'),p={name:"guide/q1.md"},o=l("",11),e=[o];function t(r,c,C,y,D,A){return a(),n("div",null,e)}const d=s(p,[["render",t]]);export{F as __pageData,d as default};
diff --git a/assets/guide_q2.md.27a2f8de.js b/assets/guide_q2.md.06c69af6.js
similarity index 95%
rename from assets/guide_q2.md.27a2f8de.js
rename to assets/guide_q2.md.06c69af6.js
index f7050157..ed8571fc 100644
--- a/assets/guide_q2.md.27a2f8de.js
+++ b/assets/guide_q2.md.06c69af6.js
@@ -1 +1 @@
-import{_ as e,o as t,c as a,R as o}from"./chunks/framework.44fd0451.js";const f=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"guide/q2.md","filePath":"guide/q2.md","lastUpdated":1701534410000}'),n={name:"guide/q2.md"},r=o('
Agent 启动/上线 问题自检流程
',2),i=[r];function c(s,_,d,l,p,h){return t(),a("div",null,i)}const u=e(n,[["render",c]]);export{f as __pageData,u as default};
+import{_ as e,o as t,c as a,R as o}from"./chunks/framework.44fd0451.js";const f=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"guide/q2.md","filePath":"guide/q2.md","lastUpdated":1701657270000}'),n={name:"guide/q2.md"},r=o('/opt/nezha/agent/nezha-agent -s 面板IP或非CDN域名:面板RPC端口 -p Agent密钥 -d
查看日志是否是因为 DNS、网络不佳导致超时(timeout)nc -v 域名/IP 面板RPC端口
或者 telnet 域名/IP 面板RPC端口
来检验是否是网络问题,检查本机与面板服务器的出入站防火墙,如果无法判断问题可借助 https://port.ping.pe/ 提供的端口检查工具进行检测。Agent 启动/上线 问题自检流程
',2),i=[r];function c(s,_,d,l,p,h){return t(),a("div",null,i)}const u=e(n,[["render",c]]);export{f as __pageData,u as default};
diff --git a/assets/guide_q2.md.27a2f8de.lean.js b/assets/guide_q2.md.06c69af6.lean.js
similarity index 83%
rename from assets/guide_q2.md.27a2f8de.lean.js
rename to assets/guide_q2.md.06c69af6.lean.js
index d613a86c..58f2da57 100644
--- a/assets/guide_q2.md.27a2f8de.lean.js
+++ b/assets/guide_q2.md.06c69af6.lean.js
@@ -1 +1 @@
-import{_ as e,o as t,c as a,R as o}from"./chunks/framework.44fd0451.js";const f=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"guide/q2.md","filePath":"guide/q2.md","lastUpdated":1701534410000}'),n={name:"guide/q2.md"},r=o("",2),i=[r];function c(s,_,d,l,p,h){return t(),a("div",null,i)}const u=e(n,[["render",c]]);export{f as __pageData,u as default};
+import{_ as e,o as t,c as a,R as o}from"./chunks/framework.44fd0451.js";const f=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"guide/q2.md","filePath":"guide/q2.md","lastUpdated":1701657270000}'),n={name:"guide/q2.md"},r=o("",2),i=[r];function c(s,_,d,l,p,h){return t(),a("div",null,i)}const u=e(n,[["render",c]]);export{f as __pageData,u as default};
diff --git a/assets/guide_q3.md.ac1531fd.js b/assets/guide_q3.md.856f451c.js
similarity index 99%
rename from assets/guide_q3.md.ac1531fd.js
rename to assets/guide_q3.md.856f451c.js
index 20214b1a..86f61c7e 100644
--- a/assets/guide_q3.md.ac1531fd.js
+++ b/assets/guide_q3.md.856f451c.js
@@ -1,4 +1,4 @@
-import{_ as s,o as a,c as n,R as l}from"./chunks/framework.44fd0451.js";const d=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"guide/q3.md","filePath":"guide/q3.md","lastUpdated":1701534410000}'),p={name:"guide/q3.md"},o=l(`/opt/nezha/agent/nezha-agent -s 面板IP或非CDN域名:面板RPC端口 -p Agent密钥 -d
查看日志是否是因为 DNS、网络不佳导致超时(timeout)nc -v 域名/IP 面板RPC端口
或者 telnet 域名/IP 面板RPC端口
来检验是否是网络问题,检查本机与面板服务器的出入站防火墙,如果无法判断问题可借助 https://port.ping.pe/ 提供的端口检查工具进行检测。反向代理 gRPC 端口(支持 Cloudflare CDN)
server {
+import{_ as s,o as a,c as n,R as l}from"./chunks/framework.44fd0451.js";const d=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"guide/q3.md","filePath":"guide/q3.md","lastUpdated":1701657270000}'),p={name:"guide/q3.md"},o=l(`
反向代理 gRPC 端口(支持 Cloudflare CDN)
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name data.example.com; # 你的 Agent 连接 Dashboard 的域名
diff --git a/assets/guide_q3.md.ac1531fd.lean.js b/assets/guide_q3.md.856f451c.lean.js
similarity index 83%
rename from assets/guide_q3.md.ac1531fd.lean.js
rename to assets/guide_q3.md.856f451c.lean.js
index 1c62e7fd..1426e981 100644
--- a/assets/guide_q3.md.ac1531fd.lean.js
+++ b/assets/guide_q3.md.856f451c.lean.js
@@ -1 +1 @@
-import{_ as s,o as a,c as n,R as l}from"./chunks/framework.44fd0451.js";const d=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"guide/q3.md","filePath":"guide/q3.md","lastUpdated":1701534410000}'),p={name:"guide/q3.md"},o=l("",13),e=[o];function c(t,r,C,D,y,A){return a(),n("div",null,e)}const F=s(p,[["render",c]]);export{d as __pageData,F as default};
+import{_ as s,o as a,c as n,R as l}from"./chunks/framework.44fd0451.js";const d=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"guide/q3.md","filePath":"guide/q3.md","lastUpdated":1701657270000}'),p={name:"guide/q3.md"},o=l("",13),e=[o];function c(t,r,C,D,y,A){return a(),n("div",null,e)}const F=s(p,[["render",c]]);export{d as __pageData,F as default};
diff --git a/assets/guide_q4.md.1e055927.js b/assets/guide_q4.md.41b76ff5.js
similarity index 93%
rename from assets/guide_q4.md.1e055927.js
rename to assets/guide_q4.md.41b76ff5.js
index a501a864..93d8bff7 100644
--- a/assets/guide_q4.md.1e055927.js
+++ b/assets/guide_q4.md.41b76ff5.js
@@ -1 +1 @@
-import{_ as a,o,c as s,z as e,a as t}from"./chunks/framework.44fd0451.js";const b=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"guide/q4.md","filePath":"guide/q4.md","lastUpdated":1701534410000}'),r={name:"guide/q4.md"},d=e("h4",{id:"实时通道断开-在线终端连接失败",tabindex:"-1"},[t("实时通道断开/在线终端连接失败 "),e("a",{class:"header-anchor",href:"#实时通道断开-在线终端连接失败","aria-label":'Permalink to "实时通道断开/在线终端连接失败"'},"")],-1),n=e("ul",null,[e("li",null,"如果你使用了 CDN,请确认 CDN 服务商提供 WebSocket 服务,并且已开启 WebSocket"),e("li",null,[t("确认你的反代规则中针对 /ws,/terminal 路径的 WebSocket 进行了特别配置,你可以 "),e("a",{href:"/guide/dashboard.html#配置反向代理"},"点击这里"),t(" 查看反向代理配置")])],-1),c=[d,n];function l(i,_,h,u,m,p){return o(),s("div",null,c)}const k=a(r,[["render",l]]);export{b as __pageData,k as default};
+import{_ as a,o,c as s,z as e,a as t}from"./chunks/framework.44fd0451.js";const b=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"guide/q4.md","filePath":"guide/q4.md","lastUpdated":1701657270000}'),r={name:"guide/q4.md"},d=e("h4",{id:"实时通道断开-在线终端连接失败",tabindex:"-1"},[t("实时通道断开/在线终端连接失败 "),e("a",{class:"header-anchor",href:"#实时通道断开-在线终端连接失败","aria-label":'Permalink to "实时通道断开/在线终端连接失败"'},"")],-1),n=e("ul",null,[e("li",null,"如果你使用了 CDN,请确认 CDN 服务商提供 WebSocket 服务,并且已开启 WebSocket"),e("li",null,[t("确认你的反代规则中针对 /ws,/terminal 路径的 WebSocket 进行了特别配置,你可以 "),e("a",{href:"/guide/dashboard.html#配置反向代理"},"点击这里"),t(" 查看反向代理配置")])],-1),c=[d,n];function l(i,_,h,u,m,p){return o(),s("div",null,c)}const k=a(r,[["render",l]]);export{b as __pageData,k as default};
diff --git a/assets/guide_q4.md.1e055927.lean.js b/assets/guide_q4.md.41b76ff5.lean.js
similarity index 93%
rename from assets/guide_q4.md.1e055927.lean.js
rename to assets/guide_q4.md.41b76ff5.lean.js
index a501a864..93d8bff7 100644
--- a/assets/guide_q4.md.1e055927.lean.js
+++ b/assets/guide_q4.md.41b76ff5.lean.js
@@ -1 +1 @@
-import{_ as a,o,c as s,z as e,a as t}from"./chunks/framework.44fd0451.js";const b=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"guide/q4.md","filePath":"guide/q4.md","lastUpdated":1701534410000}'),r={name:"guide/q4.md"},d=e("h4",{id:"实时通道断开-在线终端连接失败",tabindex:"-1"},[t("实时通道断开/在线终端连接失败 "),e("a",{class:"header-anchor",href:"#实时通道断开-在线终端连接失败","aria-label":'Permalink to "实时通道断开/在线终端连接失败"'},"")],-1),n=e("ul",null,[e("li",null,"如果你使用了 CDN,请确认 CDN 服务商提供 WebSocket 服务,并且已开启 WebSocket"),e("li",null,[t("确认你的反代规则中针对 /ws,/terminal 路径的 WebSocket 进行了特别配置,你可以 "),e("a",{href:"/guide/dashboard.html#配置反向代理"},"点击这里"),t(" 查看反向代理配置")])],-1),c=[d,n];function l(i,_,h,u,m,p){return o(),s("div",null,c)}const k=a(r,[["render",l]]);export{b as __pageData,k as default};
+import{_ as a,o,c as s,z as e,a as t}from"./chunks/framework.44fd0451.js";const b=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"guide/q4.md","filePath":"guide/q4.md","lastUpdated":1701657270000}'),r={name:"guide/q4.md"},d=e("h4",{id:"实时通道断开-在线终端连接失败",tabindex:"-1"},[t("实时通道断开/在线终端连接失败 "),e("a",{class:"header-anchor",href:"#实时通道断开-在线终端连接失败","aria-label":'Permalink to "实时通道断开/在线终端连接失败"'},"")],-1),n=e("ul",null,[e("li",null,"如果你使用了 CDN,请确认 CDN 服务商提供 WebSocket 服务,并且已开启 WebSocket"),e("li",null,[t("确认你的反代规则中针对 /ws,/terminal 路径的 WebSocket 进行了特别配置,你可以 "),e("a",{href:"/guide/dashboard.html#配置反向代理"},"点击这里"),t(" 查看反向代理配置")])],-1),c=[d,n];function l(i,_,h,u,m,p){return o(),s("div",null,c)}const k=a(r,[["render",l]]);export{b as __pageData,k as default};
diff --git a/assets/guide_q5.md.1499e8bb.js b/assets/guide_q5.md.bfde9992.js
similarity index 93%
rename from assets/guide_q5.md.1499e8bb.js
rename to assets/guide_q5.md.bfde9992.js
index 1b1d9af0..9f62b6a3 100644
--- a/assets/guide_q5.md.1499e8bb.js
+++ b/assets/guide_q5.md.bfde9992.js
@@ -1 +1 @@
-import{_ as a,o as l,c as o,z as e,a as t}from"./chunks/framework.44fd0451.js";const x=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"guide/q5.md","filePath":"guide/q5.md","lastUpdated":1701534410000}'),n={name:"guide/q5.md"},s=e("h4",{id:"如何进行数据迁移、备份恢复",tabindex:"-1"},[t("如何进行数据迁移、备份恢复? "),e("a",{class:"header-anchor",href:"#如何进行数据迁移、备份恢复","aria-label":'Permalink to "如何进行数据迁移、备份恢复?"'},"")],-1),d=e("ol",null,[e("li",null,[t("先运行一键脚本,选择 "),e("code",null,"停止面板")]),e("li",null,[t("在旧服务器中打包 "),e("code",null,"/opt/nezha"),t(" 文件夹,复制到新环境相同位置解压")]),e("li",null,[t("在新环境中运行一键脚本,选择 "),e("code",null,"启动面板")])],-1),c=[s,d];function r(i,_,u,p,h,m){return l(),o("div",null,c)}const g=a(n,[["render",r]]);export{x as __pageData,g as default};
+import{_ as a,o as l,c as o,z as e,a as t}from"./chunks/framework.44fd0451.js";const x=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"guide/q5.md","filePath":"guide/q5.md","lastUpdated":1701657270000}'),n={name:"guide/q5.md"},s=e("h4",{id:"如何进行数据迁移、备份恢复",tabindex:"-1"},[t("如何进行数据迁移、备份恢复? "),e("a",{class:"header-anchor",href:"#如何进行数据迁移、备份恢复","aria-label":'Permalink to "如何进行数据迁移、备份恢复?"'},"")],-1),d=e("ol",null,[e("li",null,[t("先运行一键脚本,选择 "),e("code",null,"停止面板")]),e("li",null,[t("在旧服务器中打包 "),e("code",null,"/opt/nezha"),t(" 文件夹,复制到新环境相同位置解压")]),e("li",null,[t("在新环境中运行一键脚本,选择 "),e("code",null,"启动面板")])],-1),c=[s,d];function r(i,_,u,p,h,m){return l(),o("div",null,c)}const g=a(n,[["render",r]]);export{x as __pageData,g as default};
diff --git a/assets/guide_q5.md.1499e8bb.lean.js b/assets/guide_q5.md.bfde9992.lean.js
similarity index 93%
rename from assets/guide_q5.md.1499e8bb.lean.js
rename to assets/guide_q5.md.bfde9992.lean.js
index 1b1d9af0..9f62b6a3 100644
--- a/assets/guide_q5.md.1499e8bb.lean.js
+++ b/assets/guide_q5.md.bfde9992.lean.js
@@ -1 +1 @@
-import{_ as a,o as l,c as o,z as e,a as t}from"./chunks/framework.44fd0451.js";const x=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"guide/q5.md","filePath":"guide/q5.md","lastUpdated":1701534410000}'),n={name:"guide/q5.md"},s=e("h4",{id:"如何进行数据迁移、备份恢复",tabindex:"-1"},[t("如何进行数据迁移、备份恢复? "),e("a",{class:"header-anchor",href:"#如何进行数据迁移、备份恢复","aria-label":'Permalink to "如何进行数据迁移、备份恢复?"'},"")],-1),d=e("ol",null,[e("li",null,[t("先运行一键脚本,选择 "),e("code",null,"停止面板")]),e("li",null,[t("在旧服务器中打包 "),e("code",null,"/opt/nezha"),t(" 文件夹,复制到新环境相同位置解压")]),e("li",null,[t("在新环境中运行一键脚本,选择 "),e("code",null,"启动面板")])],-1),c=[s,d];function r(i,_,u,p,h,m){return l(),o("div",null,c)}const g=a(n,[["render",r]]);export{x as __pageData,g as default};
+import{_ as a,o as l,c as o,z as e,a as t}from"./chunks/framework.44fd0451.js";const x=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"guide/q5.md","filePath":"guide/q5.md","lastUpdated":1701657270000}'),n={name:"guide/q5.md"},s=e("h4",{id:"如何进行数据迁移、备份恢复",tabindex:"-1"},[t("如何进行数据迁移、备份恢复? "),e("a",{class:"header-anchor",href:"#如何进行数据迁移、备份恢复","aria-label":'Permalink to "如何进行数据迁移、备份恢复?"'},"")],-1),d=e("ol",null,[e("li",null,[t("先运行一键脚本,选择 "),e("code",null,"停止面板")]),e("li",null,[t("在旧服务器中打包 "),e("code",null,"/opt/nezha"),t(" 文件夹,复制到新环境相同位置解压")]),e("li",null,[t("在新环境中运行一键脚本,选择 "),e("code",null,"启动面板")])],-1),c=[s,d];function r(i,_,u,p,h,m){return l(),o("div",null,c)}const g=a(n,[["render",r]]);export{x as __pageData,g as default};
diff --git a/assets/guide_q6.md.5919ae50.js b/assets/guide_q6.md.5ed64109.js
similarity index 95%
rename from assets/guide_q6.md.5919ae50.js
rename to assets/guide_q6.md.5ed64109.js
index d2af1642..c1e20325 100644
--- a/assets/guide_q6.md.5919ae50.js
+++ b/assets/guide_q6.md.5ed64109.js
@@ -1 +1 @@
-import{_ as e,o as t,c as a,R as o}from"./chunks/framework.44fd0451.js";const u=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"guide/q6.md","filePath":"guide/q6.md","lastUpdated":1701534410000}'),i={name:"guide/q6.md"},c=o('
如何每月重置流量统计?
报警通知
页服务
页中就可以看到月流量统计了,这里的统计数据不会因为服务器重启而重置如何每月重置流量统计?
报警通知
页服务
页中就可以看到月流量统计了,这里的统计数据不会因为服务器重启而重置自定义 Agent 监控项目
自定义监控的网卡和硬盘分区
/opt/nezha/agent/nezha-agent --edit-agent-config
来选择自定义的网卡和分区,然后重启 Agent 即可生效其他运行参数
./nezha-agent --help
查看支持的参数,如果你使用了一键脚本安装Agent,可以编辑 /etc/systemd/system/nezha-agent.service
,在 ExecStart=
这一行的末尾加上以下参数
',6),c=[d];function i(l,r,s,g,_,h){return t(),a("div",null,c)}const m=e(n,[["render",i]]);export{u as __pageData,m as default};
+import{_ as e,o as t,c as a,R as o}from"./chunks/framework.44fd0451.js";const u=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"guide/q7.md","filePath":"guide/q7.md","lastUpdated":1701657270000}'),n={name:"guide/q7.md"},d=o('--report-delay
控制系统信息上报的间隔,默认为 1 秒,可以设置为 3 来进一步降低 agent 端系统资源占用(配置区间 1-4)--skip-conn
不监控连接数,推荐 机场/连接密集型 服务器或CPU占用较高的服务器设置--skip-procs
不监控进程数,也可以降低 Agent 占用--disable-auto-update
禁止 自动更新 Agent(安全特性)--disable-force-update
禁止 强制更新 Agent(安全特性)--disable-command-execute
禁止在 Agent 上执行定时任务、打开在线终端(安全特性)--tls
启用 SSL/TLS 加密(使用 nginx 反向代理 Agent 的 grpc 连接,并且 nginx 开启 SSL/TLS 时,需要启用该项配置)自定义 Agent 监控项目
自定义监控的网卡和硬盘分区
/opt/nezha/agent/nezha-agent --edit-agent-config
来选择自定义的网卡和分区,然后重启 Agent 即可生效其他运行参数
./nezha-agent --help
查看支持的参数,如果你使用了一键脚本安装Agent,可以编辑 /etc/systemd/system/nezha-agent.service
,在 ExecStart=
这一行的末尾加上以下参数
',6),c=[d];function i(l,r,s,g,_,h){return t(),a("div",null,c)}const m=e(n,[["render",i]]);export{u as __pageData,m as default};
diff --git a/assets/guide_q7.md.110e0752.lean.js b/assets/guide_q7.md.a9b1d4ae.lean.js
similarity index 83%
rename from assets/guide_q7.md.110e0752.lean.js
rename to assets/guide_q7.md.a9b1d4ae.lean.js
index 04909f13..de8af806 100644
--- a/assets/guide_q7.md.110e0752.lean.js
+++ b/assets/guide_q7.md.a9b1d4ae.lean.js
@@ -1 +1 @@
-import{_ as e,o as t,c as a,R as o}from"./chunks/framework.44fd0451.js";const u=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"guide/q7.md","filePath":"guide/q7.md","lastUpdated":1701534410000}'),n={name:"guide/q7.md"},d=o("",6),c=[d];function i(l,r,s,g,_,h){return t(),a("div",null,c)}const m=e(n,[["render",i]]);export{u as __pageData,m as default};
+import{_ as e,o as t,c as a,R as o}from"./chunks/framework.44fd0451.js";const u=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"guide/q7.md","filePath":"guide/q7.md","lastUpdated":1701657270000}'),n={name:"guide/q7.md"},d=o("",6),c=[d];function i(l,r,s,g,_,h){return t(),a("div",null,c)}const m=e(n,[["render",i]]);export{u as __pageData,m as default};
diff --git a/assets/guide_servers.md.5c3323d1.js b/assets/guide_servers.md.ebf7ea6c.js
similarity index 95%
rename from assets/guide_servers.md.5c3323d1.js
rename to assets/guide_servers.md.ebf7ea6c.js
index 87a6554d..01b32bbe 100644
--- a/assets/guide_servers.md.5c3323d1.js
+++ b/assets/guide_servers.md.ebf7ea6c.js
@@ -1 +1 @@
-import{_ as e,o as a,c as t,R as r}from"./chunks/framework.44fd0451.js";const p=JSON.parse('{"title":"主机","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"guide/servers.md","filePath":"guide/servers.md","lastUpdated":1701534410000}'),o={name:"guide/servers.md"},n=r('--report-delay
控制系统信息上报的间隔,默认为 1 秒,可以设置为 3 来进一步降低 agent 端系统资源占用(配置区间 1-4)--skip-conn
不监控连接数,推荐 机场/连接密集型 服务器或CPU占用较高的服务器设置--skip-procs
不监控进程数,也可以降低 Agent 占用--disable-auto-update
禁止 自动更新 Agent(安全特性)--disable-force-update
禁止 强制更新 Agent(安全特性)--disable-command-execute
禁止在 Agent 上执行定时任务、打开在线终端(安全特性)--tls
启用 SSL/TLS 加密(使用 nginx 反向代理 Agent 的 grpc 连接,并且 nginx 开启 SSL/TLS 时,需要启用该项配置)主机
介绍
添加服务器
拥有相同分组的主机会在受支持的主题中划分到一起进行显示,备注仅会在后台显示,无需担心泄露信息。安装Agent
推荐使用一键安装,即配置好参数后,点击主机一键安装列上的按钮,复制到相应主机进行安装。强制更新
--disable-auto-update
和 --disable-force-update
。
默认情况下,Agent会自动更新,无需干预。但当用户关闭自动更新后,也可以选中指定主机进行强制更新。
disable-force-update开启时此功能不生效。数据列
在线终端
disable-command-execute
开启时此功能不生效。
Linux和Windows均可用,可使用Ctrl+Shift+V粘贴。
连接失败请参考实时通道断开/在线终端连接失败。
注意在线终端功能中,Agent也是通过WebSocket连接到公开访问域名,而非通过grpc交互。主机
介绍
添加服务器
拥有相同分组的主机会在受支持的主题中划分到一起进行显示,备注仅会在后台显示,无需担心泄露信息。安装Agent
推荐使用一键安装,即配置好参数后,点击主机一键安装列上的按钮,复制到相应主机进行安装。强制更新
--disable-auto-update
和 --disable-force-update
。
默认情况下,Agent会自动更新,无需干预。但当用户关闭自动更新后,也可以选中指定主机进行强制更新。
disable-force-update开启时此功能不生效。数据列
在线终端
disable-command-execute
开启时此功能不生效。
Linux和Windows均可用,可使用Ctrl+Shift+V粘贴。
连接失败请参考实时通道断开/在线终端连接失败。
注意在线终端功能中,Agent也是通过WebSocket连接到公开访问域名,而非通过grpc交互。
设置好的服务监控可以在主页中的 “服务” 页查看监控结果使用方法
名称
- 自定义一个名称类型
- 选择一个监控类型,目前哪吒监控支持三种监控类型,分别是 “HTTP-GET”、“ICMP-Ping” 和 “TCP-Ping”目标
- 根据你选择的类型不同,目标的设置方法也不同HTTP-GET
: 选择此类型,你应该输入一个URL作为目标,URL需添加 http://
或 https://
如果你的目标URL是 https://
,将会同时监控该URL的SSL证书,当SSL证书到期或发生变更,会触发提醒
例如: https://example.comICMP-Ping
: 选择此类型时,你应该输入一个域名或IP,不含端口号
例如:1.1.1.1 或 example.comTCP-Ping
: 选择此类型时,你应该输入一个域名或IP并包含端口号
例如:1.1.1.1:80 或 example.com:22请求间隔
: 设定 Agent 每次请求目标的时间间隔,以秒为单位覆盖范围
: 选择一条规则来确定要使用哪些 Agent 来请求目标特定服务器
: 配合覆盖范围使用,选择规则内需要排除的 Agent通知方式组
: 选择你已经在 “报警” 页设置好的通知方式,点击这里了解详情启用故障通知
: 根据需要选择是否接收目标故障通知,默认为不勾选
稍等片刻前往主页的 “服务” 页,查看监控结果 延迟变化报警
利用此功能可以帮助你监控服务器的线路是否发生了变化启用延迟通知
: 开启时,当 Agent 至目标服务器的延迟大于最高延迟
或小于最低延迟
时,将会发送报警通知管理监控
选择一条监控配置,点击右侧的图标进行编辑或删除
设置好的服务监控可以在主页中的 “服务” 页查看监控结果使用方法
名称
- 自定义一个名称类型
- 选择一个监控类型,目前哪吒监控支持三种监控类型,分别是 “HTTP-GET”、“ICMP-Ping” 和 “TCP-Ping”目标
- 根据你选择的类型不同,目标的设置方法也不同HTTP-GET
: 选择此类型,你应该输入一个URL作为目标,URL需添加 http://
或 https://
如果你的目标URL是 https://
,将会同时监控该URL的SSL证书,当SSL证书到期或发生变更,会触发提醒
例如: https://example.comICMP-Ping
: 选择此类型时,你应该输入一个域名或IP,不含端口号
例如:1.1.1.1 或 example.comTCP-Ping
: 选择此类型时,你应该输入一个域名或IP并包含端口号
例如:1.1.1.1:80 或 example.com:22请求间隔
: 设定 Agent 每次请求目标的时间间隔,以秒为单位覆盖范围
: 选择一条规则来确定要使用哪些 Agent 来请求目标特定服务器
: 配合覆盖范围使用,选择规则内需要排除的 Agent通知方式组
: 选择你已经在 “报警” 页设置好的通知方式,点击这里了解详情启用故障通知
: 根据需要选择是否接收目标故障通知,默认为不勾选
稍等片刻前往主页的 “服务” 页,查看监控结果 延迟变化报警
利用此功能可以帮助你监控服务器的线路是否发生了变化启用延迟通知
: 开启时,当 Agent 至目标服务器的延迟大于最高延迟
或小于最低延迟
时,将会发送报警通知管理监控
选择一条监控配置,点击右侧的图标进行编辑或删除站点标题
管理员列表
user1,user2
/opt/nezha/dashboard/data/config.yaml
,重新设置新的管理员 Client ID
和 Client Secret
主题
Language
自定义代码
由于不同主题的代码不同,如确需修改管理面板中的内容,请自行前往 Docker 中研究修改默认主题更改进度条颜色示例
<style>
+import{_ as s,o as a,c as n,R as l}from"./chunks/framework.44fd0451.js";const h=JSON.parse('{"title":"","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"guide/settings.md","filePath":"guide/settings.md","lastUpdated":1701657270000}'),o={name:"guide/settings.md"},p=l(`
站点标题
管理员列表
user1,user2
/opt/nezha/dashboard/data/config.yaml
,重新设置新的管理员 Client ID
和 Client Secret
主题
Language
自定义代码
由于不同主题的代码不同,如确需修改管理面板中的内容,请自行前往 Docker 中研究修改默认主题更改进度条颜色示例
<style>
.ui.fine.progress> .bar {
background-color: pink !important;
}
diff --git a/assets/guide_settings.md.eddaca0c.lean.js b/assets/guide_settings.md.e3ee2d17.lean.js
similarity index 85%
rename from assets/guide_settings.md.eddaca0c.lean.js
rename to assets/guide_settings.md.e3ee2d17.lean.js
index e4c67026..9a2dba0d 100644
--- a/assets/guide_settings.md.eddaca0c.lean.js
+++ b/assets/guide_settings.md.e3ee2d17.lean.js
@@ -1 +1 @@
-import{_ as s,o as a,c as n,R as l}from"./chunks/framework.44fd0451.js";const h=JSON.parse('{"title":"","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"guide/settings.md","filePath":"guide/settings.md","lastUpdated":1701534410000}'),o={name:"guide/settings.md"},p=l("",37),e=[p];function t(r,c,D,F,y,i){return a(),n("div",null,e)}const A=s(o,[["render",t]]);export{h as __pageData,A as default};
+import{_ as s,o as a,c as n,R as l}from"./chunks/framework.44fd0451.js";const h=JSON.parse('{"title":"","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"guide/settings.md","filePath":"guide/settings.md","lastUpdated":1701657270000}'),o={name:"guide/settings.md"},p=l("",37),e=[p];function t(r,c,D,F,y,i){return a(),n("div",null,e)}const A=s(o,[["render",t]]);export{h as __pageData,A as default};
diff --git a/assets/guide_tasks.md.aae399a8.js b/assets/guide_tasks.md.63225ef3.js
similarity index 98%
rename from assets/guide_tasks.md.aae399a8.js
rename to assets/guide_tasks.md.63225ef3.js
index 8fbd817e..429c898c 100644
--- a/assets/guide_tasks.md.aae399a8.js
+++ b/assets/guide_tasks.md.63225ef3.js
@@ -1 +1 @@
-import{_ as e,o,c as a,R as c}from"./chunks/framework.44fd0451.js";const u=JSON.parse('{"title":"","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"guide/tasks.md","filePath":"guide/tasks.md","lastUpdated":1701534410000}'),d={name:"guide/tasks.md"},t=c('
使用方法
添加计划任务你需要填入以下参数:名称
- 自定义一个任务名称任务类型
- 选择任务的类型
计划任务 - 按下方设置的计划时间,周期性执行任务
触发任务 - 仅被 API 或报警规则触发的任务,每次触发执行一次计划
- (使用触发任务类型时不生效)设置计划时间,时间的格式为: * * * * * *
分别对应 秒 分 时 天 月 星期
,详情见计划表达式格式
如:0 0 3 * * *
对应为 每天3点
命令
- 你可以在这里设置需要执行的命令,就像写 Shell/Bat 脚本一样,但是不推荐换行,多个命令使用 &&/&
连接
例如执行定期重启命令,可以在这里输入 reboot
覆盖范围
和 特定服务器
- 跟“服务”页中的设置类似,选择规则来确定哪些 Agent 执行计划任务
使用触发任务类型时,可选择由触发的服务器执行
通知方式组
- 选择你已经在 “报警” 页设置好的通知方式,点击这里了解详情推送成功的消息
- 勾选此项,任务执行成功后会触发消息通知管理任务
选择一条任务配置,右侧的三个图标,分别是:立即执行
- 点击后将忽略计划时间,立刻执行任务编辑
- 点击可以修改任务配置删除
- 删除这条计划任务常见问题
',10),r=[t];function i(l,s,n,p,_,h){return o(),a("div",null,r)}const m=e(d,[["render",i]]);export{u as __pageData,m as default};
+import{_ as e,o,c as a,R as c}from"./chunks/framework.44fd0451.js";const u=JSON.parse('{"title":"","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"guide/tasks.md","filePath":"guide/tasks.md","lastUpdated":1701657270000}'),d={name:"guide/tasks.md"},t=c('
如果运行失败,提示 xxx 命令找不到,可能是 PATH 环境变量的问题,Linux 服务器在命令开头加入 source ~/.bashrc
或者使用绝对路径执行使用方法
添加计划任务你需要填入以下参数:名称
- 自定义一个任务名称任务类型
- 选择任务的类型
计划任务 - 按下方设置的计划时间,周期性执行任务
触发任务 - 仅被 API 或报警规则触发的任务,每次触发执行一次计划
- (使用触发任务类型时不生效)设置计划时间,时间的格式为: * * * * * *
分别对应 秒 分 时 天 月 星期
,详情见计划表达式格式
如:0 0 3 * * *
对应为 每天3点
命令
- 你可以在这里设置需要执行的命令,就像写 Shell/Bat 脚本一样,但是不推荐换行,多个命令使用 &&/&
连接
例如执行定期重启命令,可以在这里输入 reboot
覆盖范围
和 特定服务器
- 跟“服务”页中的设置类似,选择规则来确定哪些 Agent 执行计划任务
使用触发任务类型时,可选择由触发的服务器执行
通知方式组
- 选择你已经在 “报警” 页设置好的通知方式,点击这里了解详情推送成功的消息
- 勾选此项,任务执行成功后会触发消息通知管理任务
选择一条任务配置,右侧的三个图标,分别是:立即执行
- 点击后将忽略计划时间,立刻执行任务编辑
- 点击可以修改任务配置删除
- 删除这条计划任务常见问题
',10),r=[t];function i(l,s,n,p,_,h){return o(),a("div",null,r)}const m=e(d,[["render",i]]);export{u as __pageData,m as default};
diff --git a/assets/guide_tasks.md.aae399a8.lean.js b/assets/guide_tasks.md.63225ef3.lean.js
similarity index 84%
rename from assets/guide_tasks.md.aae399a8.lean.js
rename to assets/guide_tasks.md.63225ef3.lean.js
index 10298841..1e9eb119 100644
--- a/assets/guide_tasks.md.aae399a8.lean.js
+++ b/assets/guide_tasks.md.63225ef3.lean.js
@@ -1 +1 @@
-import{_ as e,o,c as a,R as c}from"./chunks/framework.44fd0451.js";const u=JSON.parse('{"title":"","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"guide/tasks.md","filePath":"guide/tasks.md","lastUpdated":1701534410000}'),d={name:"guide/tasks.md"},t=c("",10),r=[t];function i(l,s,n,p,_,h){return o(),a("div",null,r)}const m=e(d,[["render",i]]);export{u as __pageData,m as default};
+import{_ as e,o,c as a,R as c}from"./chunks/framework.44fd0451.js";const u=JSON.parse('{"title":"","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"guide/tasks.md","filePath":"guide/tasks.md","lastUpdated":1701657270000}'),d={name:"guide/tasks.md"},t=c("",10),r=[t];function i(l,s,n,p,_,h){return o(),a("div",null,r)}const m=e(d,[["render",i]]);export{u as __pageData,m as default};
diff --git a/assets/index.md.7decbfa6.js b/assets/index.md.99fb9d6a.js
similarity index 95%
rename from assets/index.md.7decbfa6.js
rename to assets/index.md.99fb9d6a.js
index 8293bdb5..352b4d0b 100644
--- a/assets/index.md.7decbfa6.js
+++ b/assets/index.md.99fb9d6a.js
@@ -1 +1 @@
-import{_ as e,o as t,c as a}from"./chunks/framework.44fd0451.js";const p=JSON.parse('{"title":"哪吒监控","titleTemplate":"使用文档","description":"","frontmatter":{"layout":"home","title":"哪吒监控","titleTemplate":"使用文档","hero":{"name":"哪吒监控","text":"开源、轻量、易用的服务器监控、运维工具","image":"https://raw.githubusercontent.com/naiba/nezha/master/resource/static/brand.svg","actions":[{"theme":"brand","text":"预览","link":"https://ops.naibahq.com"},{"theme":"alt","text":"开始使用 →","link":"/guide/dashboard"}]},"features":[{"title":"一键安装","details":"支持一键脚本安装面板和监控服务,轻松使用;Linux、Windows、MacOS、OpenWRT等主流系统均受支持"},{"title":"实时监控","details":"支持同时监控多个服务器的系统状态,支持监控网页、端口、SSL证书状态;支持故障、流量等状态报警,支持多种通知方式(Telegram、邮件、微信等)"},{"title":"轻松运维","details":"支持WebSSH,支持流量循环监控,支持设置定时任务、服务器批量执行任务"}]},"headers":[],"relativePath":"index.md","filePath":"index.md","lastUpdated":1701534410000}'),i={name:"index.md"};function n(s,r,o,d,l,c){return t(),a("div")}const h=e(i,[["render",n]]);export{p as __pageData,h as default};
+import{_ as e,o as t,c as a}from"./chunks/framework.44fd0451.js";const p=JSON.parse('{"title":"哪吒监控","titleTemplate":"使用文档","description":"","frontmatter":{"layout":"home","title":"哪吒监控","titleTemplate":"使用文档","hero":{"name":"哪吒监控","text":"开源、轻量、易用的服务器监控、运维工具","image":"https://raw.githubusercontent.com/naiba/nezha/master/resource/static/brand.svg","actions":[{"theme":"brand","text":"预览","link":"https://ops.naibahq.com"},{"theme":"alt","text":"开始使用 →","link":"/guide/dashboard"}]},"features":[{"title":"一键安装","details":"支持一键脚本安装面板和监控服务,轻松使用;Linux、Windows、MacOS、OpenWRT等主流系统均受支持"},{"title":"实时监控","details":"支持同时监控多个服务器的系统状态,支持监控网页、端口、SSL证书状态;支持故障、流量等状态报警,支持多种通知方式(Telegram、邮件、微信等)"},{"title":"轻松运维","details":"支持WebSSH,支持流量循环监控,支持设置定时任务、服务器批量执行任务"}]},"headers":[],"relativePath":"index.md","filePath":"index.md","lastUpdated":1701657270000}'),i={name:"index.md"};function n(s,r,o,d,l,c){return t(),a("div")}const h=e(i,[["render",n]]);export{p as __pageData,h as default};
diff --git a/assets/index.md.7decbfa6.lean.js b/assets/index.md.99fb9d6a.lean.js
similarity index 95%
rename from assets/index.md.7decbfa6.lean.js
rename to assets/index.md.99fb9d6a.lean.js
index 8293bdb5..352b4d0b 100644
--- a/assets/index.md.7decbfa6.lean.js
+++ b/assets/index.md.99fb9d6a.lean.js
@@ -1 +1 @@
-import{_ as e,o as t,c as a}from"./chunks/framework.44fd0451.js";const p=JSON.parse('{"title":"哪吒监控","titleTemplate":"使用文档","description":"","frontmatter":{"layout":"home","title":"哪吒监控","titleTemplate":"使用文档","hero":{"name":"哪吒监控","text":"开源、轻量、易用的服务器监控、运维工具","image":"https://raw.githubusercontent.com/naiba/nezha/master/resource/static/brand.svg","actions":[{"theme":"brand","text":"预览","link":"https://ops.naibahq.com"},{"theme":"alt","text":"开始使用 →","link":"/guide/dashboard"}]},"features":[{"title":"一键安装","details":"支持一键脚本安装面板和监控服务,轻松使用;Linux、Windows、MacOS、OpenWRT等主流系统均受支持"},{"title":"实时监控","details":"支持同时监控多个服务器的系统状态,支持监控网页、端口、SSL证书状态;支持故障、流量等状态报警,支持多种通知方式(Telegram、邮件、微信等)"},{"title":"轻松运维","details":"支持WebSSH,支持流量循环监控,支持设置定时任务、服务器批量执行任务"}]},"headers":[],"relativePath":"index.md","filePath":"index.md","lastUpdated":1701534410000}'),i={name:"index.md"};function n(s,r,o,d,l,c){return t(),a("div")}const h=e(i,[["render",n]]);export{p as __pageData,h as default};
+import{_ as e,o as t,c as a}from"./chunks/framework.44fd0451.js";const p=JSON.parse('{"title":"哪吒监控","titleTemplate":"使用文档","description":"","frontmatter":{"layout":"home","title":"哪吒监控","titleTemplate":"使用文档","hero":{"name":"哪吒监控","text":"开源、轻量、易用的服务器监控、运维工具","image":"https://raw.githubusercontent.com/naiba/nezha/master/resource/static/brand.svg","actions":[{"theme":"brand","text":"预览","link":"https://ops.naibahq.com"},{"theme":"alt","text":"开始使用 →","link":"/guide/dashboard"}]},"features":[{"title":"一键安装","details":"支持一键脚本安装面板和监控服务,轻松使用;Linux、Windows、MacOS、OpenWRT等主流系统均受支持"},{"title":"实时监控","details":"支持同时监控多个服务器的系统状态,支持监控网页、端口、SSL证书状态;支持故障、流量等状态报警,支持多种通知方式(Telegram、邮件、微信等)"},{"title":"轻松运维","details":"支持WebSSH,支持流量循环监控,支持设置定时任务、服务器批量执行任务"}]},"headers":[],"relativePath":"index.md","filePath":"index.md","lastUpdated":1701657270000}'),i={name:"index.md"};function n(s,r,o,d,l,c){return t(),a("div")}const h=e(i,[["render",n]]);export{p as __pageData,h as default};
diff --git a/case/case1.html b/case/case1.html
index cb57fc06..788ec4d0 100644
--- a/case/case1.html
+++ b/case/case1.html
@@ -10,13 +10,13 @@
-
+
-
-
diff --git a/case/case2.html b/case/case2.html
index 0024b437..be887c33 100644
--- a/case/case2.html
+++ b/case/case2.html
@@ -11,13 +11,13 @@
-
+
-
-
diff --git a/case/case3.html b/case/case3.html
index 7c564dbe..61d67236 100644
--- a/case/case3.html
+++ b/case/case3.html
@@ -10,13 +10,13 @@
-
+
-
-
diff --git a/case/case4.html b/case/case4.html
index 94599333..2563c4f6 100644
--- a/case/case4.html
+++ b/case/case4.html
@@ -10,13 +10,13 @@
-
+
-
-
diff --git a/case/case5.html b/case/case5.html
index 771f8e41..1bf2d128 100644
--- a/case/case5.html
+++ b/case/case5.html
@@ -10,7 +10,7 @@
-
+
@@ -61,8 +61,8 @@
|-- nezha.pem # SSL/TLS 证书文件
|-- cloudflared # Cloudflare Argo 隧道主程序
|-- grpcwebproxy # gRPC 反代主程序
-`-- nezha-agent # 哪吒客户端,用于监控本地 localhost
如果运行失败,提示 xxx 命令找不到,可能是 PATH 环境变量的问题,Linux 服务器在命令开头加入 source ~/.bashrc
或者使用绝对路径执行鸣谢下列作者的文章和项目:
免责声明:
我们欢迎您提交自己的项目,请加入TG群联系管理员了解相关事宜
所有项目均由社区成员贡献,请您知悉哪吒监控团队无法为社区项目承担包括且不限于:保修、可用性、安全性等责任
Community Project
Nezha Monitoring has benefited from various projects contributed by the community, which have provided it with additional extensions.
We welcome you to submit your own project. Please join the Telegram group to contact the administrator for further information.
All projects are contributed by community members. Please be aware that the Nezha Monitoring Team cannot assume responsibility for community projects, including but not limited to warranty, availability, security, etc.
A open source, lightweight server and website monitoring and O&M tool
Support one-click script installation Dashboard and Agent services for easy use; mainstream systems such as Linux, Windows, MacOS, OpenWRT, etc. are all supported.
Supports monitoring the system status of multiple servers simultaneously, including monitoring the status of web pages, ports, and SSL certificates. It also supports sending notifications when there are failures or when data reaches the limit. Multiple notification methods are supported, such as Telegram, email, and WeChat.
Support WebSSH, support data monitoring, support setting scheduled tasks, and support batch execution of tasks on servers.