mirror of
https://github.com/nezhahq/nezha.git
synced 2025-02-02 01:28:13 -05:00
Badge version update
This commit is contained in:
parent
f08d65c66d
commit
37fb4150cc
18
README.md
18
README.md
@ -1,6 +1,6 @@
|
||||
# 哪吒面板
|
||||
|
||||
![dashboard](https://img.shields.io/badge/管理面板-v0.4.4-brightgreen?style=for-the-badge&logo=github) ![GitHub Workflow Status](https://img.shields.io/github/workflow/status/naiba/nezha/Dashboard%20image?label=%E9%9D%A2%E6%9D%BF%E6%9E%84%E5%BB%BA&logo=github&style=for-the-badge) ![Agent release](https://img.shields.io/github/v/release/naiba/nezha?color=brightgreen&label=Agent&style=for-the-badge&logo=github) ![GitHub Workflow Status](https://img.shields.io/github/workflow/status/naiba/nezha/Agent%20release?label=Agent%20%E6%9E%84%E5%BB%BA&logo=github&style=for-the-badge) ![shell](https://img.shields.io/badge/安装脚本-v0.4.4-brightgreen?style=for-the-badge&logo=linux)
|
||||
![dashboard](https://img.shields.io/badge/管理面板-v0.4.5-brightgreen?style=for-the-badge&logo=github) ![GitHub Workflow Status](https://img.shields.io/github/workflow/status/naiba/nezha/Dashboard%20image?label=%E9%9D%A2%E6%9D%BF%E6%9E%84%E5%BB%BA&logo=github&style=for-the-badge) ![Agent release](https://img.shields.io/github/v/release/naiba/nezha?color=brightgreen&label=Agent&style=for-the-badge&logo=github) ![GitHub Workflow Status](https://img.shields.io/github/workflow/status/naiba/nezha/Agent%20release?label=Agent%20%E6%9E%84%E5%BB%BA&logo=github&style=for-the-badge) ![shell](https://img.shields.io/badge/安装脚本-v0.4.5-brightgreen?style=for-the-badge&logo=linux)
|
||||
|
||||
系统状态监控报警、API(SSL 证书变更、即将到期、到期)/TCP 端口存活/PING 监控、计划任务(可以定时在 Agent 上执行命令,备份、重启、What ever you want)、极省资源,64M 服务器也能装 agent。
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
\>> QQ 交流群:955957790
|
||||
|
||||
| 默认主题 | DayNight [@JackieSung](https://github.com/JackieSung4ev) | hotaru [@CokeMine](https://github.com/CokeMine) |
|
||||
| ---- | ---- | ---- |
|
||||
| ------------------------------------------------------- | -------------------------------------------------------- | ---------------------------------------------------------------------- |
|
||||
| ![首页截图1](https://s3.ax1x.com/2020/12/07/DvTCwD.jpg) | <img src="https://s3.ax1x.com/2021/01/20/sfJv2q.jpg"/> | <img src="https://s3.ax1x.com/2020/12/09/rPF4xJ.png" width="1600px" /> |
|
||||
|
||||
## 一键脚本
|
||||
@ -44,6 +44,7 @@
|
||||
}
|
||||
</style>
|
||||
```
|
||||
|
||||
- 默认主题修改 LOGO、移除版权示例(来自 [@iLay1678](https://github.com/iLay1678),欢迎 PR)
|
||||
|
||||
```
|
||||
@ -79,12 +80,14 @@
|
||||
}
|
||||
</style>
|
||||
```
|
||||
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>计划任务:备份脚本、服务重启,等定期运维任务。</summary>
|
||||
|
||||
使用此功能可以定期结合 restic、rclone 给服务器备份,或者定期某项重启服务来重置网络连接。
|
||||
|
||||
</details>
|
||||
|
||||
<details>
|
||||
@ -108,8 +111,8 @@ URL 里面也可放置占位符,请求时会进行简单的字符串替换。
|
||||
- 请求方式: GET
|
||||
- 请求类型: 默认
|
||||
- Body: 空
|
||||
|
||||
- wxpusher 示例,需要关注你的应用
|
||||
|
||||
- 名称: wxpusher
|
||||
- URL:http://wxpusher.zjiecode.com/api/send/message
|
||||
- 请求方式: POST
|
||||
@ -140,7 +143,7 @@ URL 里面也可放置占位符,请求时会进行简单的字符串替换。
|
||||
|
||||
- Type
|
||||
- cpu、memory、swap、disk:Min/Max 数值为占用百分比
|
||||
- net_in_speed(入站网速)、net_out_speed(出站网速)、net_all_speed(双向网速)、transfer_in(入站流量)、transfer_out(出站流量)、transfer_all(双向流量):Min/Max 数值为字节(1kb=1024,1mb = 1024*1024)
|
||||
- net_in_speed(入站网速)、net_out_speed(出站网速)、net_all_speed(双向网速)、transfer_in(入站流量)、transfer_out(出站流量)、transfer_all(双向流量):Min/Max 数值为字节(1kb=1024,1mb = 1024\*1024)
|
||||
- offline:不支持 Min/Max 参数
|
||||
- Duration:持续秒数,监控比较简陋,取持续时间内的 70 采样结果
|
||||
- Ignore: `{"1": true, "2":false}` 忽略此规则的服务器 ID 列表
|
||||
@ -150,6 +153,7 @@ URL 里面也可放置占位符,请求时会进行简单的字符串替换。
|
||||
<summary>服务监控:HTTP、SSL证书、ping、TCP 端口等。</summary>
|
||||
|
||||
进入 `/monitor` 页面点击新建监控即可,表单下面有相关说明。
|
||||
|
||||
</details>
|
||||
|
||||
## 常见问题
|
||||
@ -158,6 +162,7 @@ URL 里面也可放置占位符,请求时会进行简单的字符串替换。
|
||||
<summary>如何进行数据迁移、备份恢复?</summary>
|
||||
|
||||
数据储存在 `/opt/nezha` 文件夹中,迁移数据时打包这个文件夹,到新环境解压。然后执行一键脚本安装即可
|
||||
|
||||
</details>
|
||||
|
||||
<details>
|
||||
@ -190,12 +195,14 @@ restart() {
|
||||
```
|
||||
|
||||
赋予执行权限 `chmod +x /etc/init.d/nezha-agnt` 然后启动服务 `/etc/init.d/nezha-agent enable && /etc/init.d/nezha-agent start`
|
||||
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>首页服务器随机闪烁掉线?</summary>
|
||||
|
||||
执行 `ntpdate 0.pool.ntp.org` 同步一下面板部署所在的服务器的时间,ref: [How do I use pool.ntp.org?](https://www.ntppool.org/en/use.html)
|
||||
|
||||
</details>
|
||||
|
||||
<details>
|
||||
@ -235,11 +242,12 @@ restart() {
|
||||
websocket
|
||||
}
|
||||
```
|
||||
|
||||
</details>
|
||||
|
||||
## 社区文章
|
||||
|
||||
- [哪吒探针 - Windows 客户端安装](https://nyko.me/2020/12/13/nezha-windows-client.html)
|
||||
- [哪吒面板,一个便携服务器状态监控面板搭建教程,不想拥有一个自己的探针吗?](https://haoduck.com/644.html)
|
||||
- [哪吒面板:小鸡们的最佳探针](https://www.zhujizixun.com/2843.html) *(已过时)*
|
||||
- [哪吒面板:小鸡们的最佳探针](https://www.zhujizixun.com/2843.html) _(已过时)_
|
||||
- [>>更多教程](https://www.google.com/search?q=%22%E5%93%AA%E5%90%92%E9%9D%A2%E6%9D%BF%22+%22%E6%95%99%E7%A8%8B%22) (Google)
|
||||
|
@ -13,7 +13,7 @@ import (
|
||||
pb "github.com/naiba/nezha/proto"
|
||||
)
|
||||
|
||||
var Version = "v0.4.4" // !!记得修改 README 重的 badge 版本!!
|
||||
var Version = "v0.4.5" // !!记得修改 README 重的 badge 版本!!
|
||||
|
||||
const (
|
||||
SnapshotDelay = 3
|
||||
|
Loading…
Reference in New Issue
Block a user