当前位置:网站首页>Nezha monitoring - server status monitoring, SSL certificate change expiration, Ping monitoring and scheduled task reminder
Nezha monitoring - server status monitoring, SSL certificate change expiration, Ping monitoring and scheduled task reminder
2022-07-24 19:00:00 【User 9022575】
Nezha panel Is a similar to ServerStatus Server status monitor , however , Nezha panel is relatively more powerful , Nezha monitors Support server system status monitoring 、HTTP(SSL Certificate change 、 It's about to expire 、 expire )、TCP、Ping Monitoring and alarming , Command batch execution and scheduling tasks , It is a one-stop light monitoring light operation and maintenance system .
Nezha monitoring has four functions : Planning tasks : Backup scripts 、 Service to restart , And other regular operation and maintenance tasks . Use this function to combine restic、rclone Back up the server , Or periodically restart a service to reset the network connection . Alarm notice :CPU、 Memory 、 Hard disk 、 bandwidth 、 Traffic 、 Monthly flow real-time monitoring . Service monitoring :HTTP、SSL certificate 、ping、TCP Port, etc .
Nezha monitors Support custom code : Change LOGO、 Change tone 、 Add statistical code, etc , In general, this monitoring is very good , Suitable for having multiple servers to monitor , At the same time, it can also be applied to timed TCP、Ping monitor .
PS: Update record .
1、 Want pure IP SSL The certificate can be viewed : pure IP Address application and installation ZeroSSL free SSL certificate - Give Way IP Address implementation HTTPS Encrypted access .2022.5.4
One 、 Nezha monitoring installation preparation
Website :
- project :https://github.com/naiba/nezha
- spare :https://github.com/freehao123/nezha
- demonstration :https://ops.naibahq.com/
At least two VPS host . a VPS The host is used to display your monitoring results , another VPS Is the monitored object . About VPS Please refer to the article about the comparison experience of the host :VPS Host ranking list .
Two subdomains . A for user access , Be similar to tz.wzfou.com, Another one for VPS For communication between , Be similar to gg.wzfou.com. You can also use Free domain name .
First resolve your domain name displayed to users to your main server .
Another one for VPS The domain name of communication between should also be resolved to your main server .
Two 、 Nezha monitoring installation tutorial
2.1 establish OAuth Apps
open :https://github.com/settings/developers, And then click New OAuth App Button , This is mainly used for background login .
Then fill in your domain name displayed to the user URL,Callback fill http(s):// Domain name or IP/oauth2/callback. Here's the picture :
If you don't want to use anti substitution ( Here is how to reverse ), You can add ports 8008.
http:// Your domain name :8008 http:// Your domain name :8008/oauth2/callback
in addition :
About GitHub Oauth2 application : stay https://github.com/settings/developers establish , No need to audit ,Callback fill http(s):// Domain name or IP/oauth2/callback About Gitee Oauth2 application : stay https://gitee.com/oauth/applications establish , No need to audit ,Callback fill http(s):// Domain name or IP/oauth2/callback
Create good OAuth Apps Then you can check ID And generate a key .
2.2 Install Nezha monitoring
The installation command is as follows :
curl -L https://raw.githubusercontent.com/naiba/nezha/master/script/install.sh -o nezha.sh && chmod +x nezha.sh
sudo ./nezha.shDomestic image acceleration :
curl -L https://cdn.jsdelivr.net/gh/naiba/[email protected]/script/install.sh -o nezha.sh && chmod +x nezha.sh
CN=true sudo ./nezha.sh* Use WatchTower The panel can be updated automatically ,Windows The terminal can use nssm Configure self startup
Select the installation panel end .
2.3 Reverse domain name access
This deployment is optional , The default Nezha monitoring is to use the domain name url+8008 Port access , If we want to use the browser default 80 Port access , You need to use the reverse domain name .
Use Oneinstack perhaps LNMP One key package My friends use commands to add virtual machines or bind domain names , Then add the reverse generation @ The reason is . Reverse configuration method and Bitwarden Self built password storage system graphic tutorial binding domain name inversion similar .
Use the pagoda panel , Add a website directly in the background .
Then use the pagoda panel to apply SSL certificate .
Then click on the website , Add reverse , Set as follows :
Open the... Of the pagoda panel nginx The configuration file , You can see that the reverse code has been generated .
Now open your domain name and you can see that Nezha monitoring deployment is successful .
3、 ... and 、 Nezha monitoring tutorial
3.1 Log in to the background to add monitoring
First , Use Github Log in to your Nezha monitoring background .
Authorized login .
Now you can add your monitoring server .
Fill in the server name .
After completion , You can get the key .
3.2 Install the monitored end
Execute Nezha monitoring installation command , choice “ Installation monitoring Agent”, During the installation process, you will be asked to fill in the key .
Turn on your Nezha monitor , You can see the monitoring server you just added .
3.3 Add service monitoring
Service monitoring support :HTTP、SSL certificate 、ping、TCP Port monitoring , Get into /monitor Click new monitoring on the page .
The effect is as follows :
3.4 Add timing task
Nezha monitoring supports adding scheduled tasks , For example, regular visits 、Ping Wait for the operation .
You can choose the notification method .
Four 、 summary
Nezha monitors It also supports modifying themes , You can modify it according to your own domain name . Data is stored in /opt/nezha In the folder , Package this folder when migrating data , Unzip to the new environment . Then execute the one click script installation .
Use pagoda reverse or go up CDN, Suggest Agent To configure Follow Access the management panel Use different domain names , In this way, the domain name used by the management panel can be directly set CDN,Agent The configured domain name is the resolution management panel IP The use of , It is also convenient for the later management panel migration .
The article comes from : Excavation station no https://wzfou.com/nezha/, copyright . In addition to indicating the source of this article , They are all original articles of the author , Free to quote , But please indicate the source .
边栏推荐
- 2020-2021 new technology lecture course
- L4l7 load balancing
- 【TkInter】常用组件(一)
- Sequences, time series and prediction in tessorflow quizs on coursera (I)
- 2022杭电多校第一场Dragon slayer(dfs+状态压缩)
- Leetcode memory deep search / dynamic planning V2
- Generate publickey with der format public key and report an error
- matplotlib
- OpenGL learning (IV) glut 3D image rendering
- [Tkinter] layout management and event system
猜你喜欢

Make C #

Understand dynamic calculation diagram, requires_ grad、zero_ grad

Pam4 popular science

Principle and application of database

网络安全80端口—-PHP CGI参数注入执行漏洞

leetcode-记忆化深搜/动态规划v2

QT - animation frame

全国职业院校技能大赛网络安全竞赛——Apache安全配置详解

Sequences, time series and prediction in tessorflow quizs on coursera (I)
![[wechat applet development] custom tabbar case (custom message 99 + little hearts)](/img/49/354ecb448e91d9e15aaec4922a62e1.png)
[wechat applet development] custom tabbar case (custom message 99 + little hearts)
随机推荐
使用 tftp 无法向服务器上传文件问题解决
[Tkinter] common components (I)
杭电多校第一场第三题 Backpack(异或dp+bitset)
OpenGL learning (II) opengl rendering pipeline
Analysis of dropout principle in deep learning
【历史上的今天】7 月 24 日:Caldera 诉微软案;AMD 宣布收购 ATI;谷歌推出 Chromecast
Nftscan and port3 have reached strategic cooperation in the field of NFT data
Mysql数据库,子查询,union,limit篇
Reading notes of XXL job source code
asp. Net core, C # summary about path
Rookie colleagues cost me 2K. Did you recite the secret of salary increase? (collect it quickly!)
Principle and application of database
About core files
FPGA 20个例程篇:9.DDR3内存颗粒初始化写入并通过RS232读取(上)
Sequences, time series and prediction in tessorflow quizs on coursera (II)
全国职业院校技能大赛网络安全竞赛——Apache安全配置详解
Web
Equals() method of object class
理解动态计算图,requires_grad、zero_grad
leetcode-记忆化深搜/动态规划v2