Nezha Monitoring: Simple, powerful and easy to configure VPS monitoring

888u

Last update at :2024-02-15,Edit by888u

Nezha Monitoring: an open source, lightweight server and website monitoring, operation and maintenance tool. Supports monitoring the system status of multiple servers at the same time, supports monitoring web pages, ports, and SSL certificate status; supports status alarms such as faults and traffic, and supports multiple notification methods (Telegram, email, WeChat, etc.). Supports online SSH, supports traffic cycle monitoring, supports setting scheduled tasks, server batch execution tasks, supports one-click script installation panel and monitoring services, easy to use; Linux, Windows, MacOS, OpenWRT and other mainstream systems are supported

Official website: https://nezhahq.github.io/

During installation, it is divided into a control terminal and a controlled terminal. The control terminal is one host, and the controlled terminals can be multiple.

1. The installation of the control terminal is stable and highly secure

1. Have a domain name and resolve it to the control host IP 2. The control host needs to open ports 8008 and 5555. 3. A Github account (or: Gitlab, Jihulab, Gitee)

Get the Client ID and key of Github/Jihulab# Nezha Monitoring is connected to Github, Gitlab, Jihulab, and Gitee as the backend administrator account

First we need to create a new verification application, taking Github as an example. After logging in to Github, open https://github.com/settings/developers and select "OAuth Apps" - "New OAuth App" Application name – fill in whatever you want Homepage URL – fill in the access domain name of the panel, such as: "http://ping.example.com" Authorization callback URL – fill in the callback address, such as: "http://ping.example.com/oauth2/callback" Click “Register application” Save the Client ID on the page, and then click "Generate a new client secret" to create a new Client Secret. The newly created secret will only be displayed once, please save it properly

JihuLab’s application creation entrance is: https://jihulab.com/-/profile/applications The callback address should be filled in the Redirect URL Check read_user and read_api in the scope below After creation, save the application ID and password

4. Install the control panel on the control host

In the panel server, run the installation script:

curl -L https://raw.githubusercontent.com/naiba/nezha/master/script/install.sh -o nezha.sh && chmod +x nezha.sh && sudo ./nezha.sh

If your panel server is located in mainland China, you can use mirroring:

curl -L https://jihulab.com/nezha/nezha/-/raw/master/script/install.sh -o nezha.sh && chmod +x nezha.sh && sudo CN=true ./nezha.sh

After Docker is installed, enter the following values: OAuth provider – choose one among Github, Gitlab, Jihulab, Gitee Client ID – previously saved Client ID Client Secret – previously saved secret Username – Username in the OAuth provider Site Title – Customize the site title Access port – public access port, customizable, default 8008 Agent’s communication port – the communication port between Agent and Dashboard, default 5555

After the input is completed, wait for the image to be pulled. After the installation is complete, if everything is normal, you can access the domain name + port number, such as "http://ping.example.com:8008" to view the panel

If you need to run the script again in the future, you can run:

./nezha.sh

To open the management script

5. After configuring the reverse proxy, remember to change the reverse code in the configuration file to the following code: 127.0.0.1 is your control host IP

#PROXY-START/ location/{ proxy_pass http://127.0.0.1:8008; proxy_set_header Host $http_host; proxy_set_header Upgrade $http_upgrade; } location ~ ^/(ws|terminal/.+)$ { proxy_pass http://127.0.0.1:8008; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "Upgrade"; proxy_set_header Host $http_host; } #PROXY-END/

5. Database changes If you need to modify data in the database, please stop the panel container first and then modify it. The database type is sqlite3, located at /opt/nezha/dashboard/data/sqlite.db. Please back up before modifying

2. Installation of the controlled terminal

1. After setting the domain name on the control terminal, the one-click installation code will be displayed after adding the host

2. Execute the above one-click code on the controlled terminal.

Demo: http://ping.kx.al/

Recommended plan for bricklayers

Warm reminder: If you have difficulty choosing, just choose the CN2 GIA-E plan in the middle. The quarterly payment is $49.99, and you can switch between up to 12 computer rooms at will. plan Memory CPU harddisk Traffic/month bandwidth engine room price Buy Banwagonhost Discount Code: BWH3HYATVBJW The latest 2022 graphic tutorial for purchasing Banwagonhost VPS
CN2 (cheapest) 1GB 1 core 20GB 1TB 1Gbps DC3 CN2 DC8 ZNET $49.99/year Direct
CN2 2GB 1 core 40GB 2TB 1Gbps $52.99/half year $99.99/year Direct
CN2 GIA-E (Most recommended) 1GB 2 cores 20GB 1TB 2.5Gbps DC6 CN2 GIA-E DC9 CN2 GIA Japan SoftBank JPOS_1 Netherlands EUNL_9 $49.99/quarter $169.99/year Direct
CN2 GIA-E 2GB 3 core 40GB 2TB 2.5Gbps $89.99/quarter $299.99/year Direct
HK 2GB 2 cores 40GB 0.5TB 1Gbps Hong Kong, China CN2 GIA $89.99/month $899.99/year Direct
HK 4GB 4 core 80GB 1TB 1Gbps $155.99/month $1559.99/year Direct
TOKYO 2GB 2 cores 40GB 0.5TB 1.2Gbps Tokyo, Japan CN2 GIA $89.99/month $899.99/year Direct
TOKYO 4GB 4 core 80GB 1TB 1.2Gbps $155.99/month $1559.99/year Direct

Recommended site search: Hong Kong host high defense, mainland China free IP address, io domain name registration, Jiangsu high defense server, same IP site query, proxy IP purchase website, vps server, foreign virtual host, virtual host rental, free domain name Register for 0 yuan,

Nezha Monitoring: Simple, powerful and easy to configure VPS monitoring

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码