Home data center series deploys its own operation and maintenance monitoring system through wgcloud (Part 2): Functional part
This article was last updated 291 days ago. The information in it may have developed or changed. If it is invalid, please leave a message in the comment section.

Preface

In the previous article (Building), we successfully deployed the server and agent of wgcloud (see article:Home Data Center Series Deploy Your Own Operation and Maintenance Monitoring System Through wgcloud (Part 1): Construction)After a period of actual operation, I can finally summarize the functions and basic configuration of wgcloud. After all, operation and maintenance still need to see the actual effect, and we also adhere to the principle of practice makes perfect.

Monitoring function introduction

Monitoring Summary

image.png

Here you can see a summary of all monitoring items of wgcloud and an overall statistics of resource usage:
image.png

Resource Management

image.png

Resource management is the most important part. The monitoring targets we usually focus on are all under this project:
image.png

Host Management

Here you can see the detailed system information of all hosts where the agent is deployed, including CPU, memory, uplink and downlink speeds, number of connections, number of processes, etc., as shown below:

image.png

The host in the red box is my Tencent Cloud lightweight cloud host, which is added through the tailscale address. The system and chart in the red box on the right can show the detailed information of the monitored host in detail. The following is part of the system and chart.
system:
image.png

chart:
image.png

If the monitored host is a Linux device, you can directly perform web ssh under More on the right, which is very considerate, as shown below:
image.png

Note: Hosts in the host management cannot be added manually. They are all automatically registered and added by the agent, so it is necessary to ensure communication between the agent and the server.

Host abnormal process

Here you can see some processes on each host that consume more memory or CPU resources. For example, on my Tencent Cloud lightweight server, the Java process occupies 56.16% of CPU resources, so it is judged as an abnormal process:

image.png

However, this may be related to the judgment method, which may not be accurate. It still needs to be combined with the actual situation on the target host.

Process Monitoring

Here you can add the key processes you are concerned about on the hosts that already exist in the host management. Just click Add in the red box above, as shown below:

image.png

Enter the add interface and add a process as shown below:
image.png

For example, I added monitoring of two key processes, authserver and worldserver, on the World of Warcraft server:
image.png

Port Monitoring

Here you can add monitoring of specific ports on the host that already exists in the host management. In fact, if you only want to monitor some open ports, you can use solutions such as uptime-kuma to do it. However, the most important function of port monitoring on wgcloud is to monitor the ports on the localhost address on the host, which cannot be achieved through external monitoring.
Click "Add" in the red box above:

image.png

Add the port information according to the host where the port you need to monitor is located. For example, I use the port of warp proxy on Tencent Cloud lightweight server as an example:
image.png

After adding successfully, you can see the port status:
image.png

Log monitoring

Here you can specify to view the logs on a certain host and specify its alarm keywords. You need to have a certain understanding of the log file location and log content applied on the host. I will not demonstrate it here. There is no such need for the time being. Just take a look at the monitoring setting interface:

image.png

image.png

File tamper-proof

I won’t go into detail about this Chinese-style feature. It is similar to the log monitoring settings. You can understand it by looking at the interface:

image.png

image.png

Docker Monitoring

Here you can monitor the docker deployed on each host, still click the "Add" button in the red box above:

image.png

Then fill in the information of the docker that needs to be monitored as shown in the figure below:
image.png

The docker I actually monitor is:
image.png

Data Monitoring

The data monitoring part is for the database, among which data source management is for a specific "library", and data table monitoring is for a specific "table" in the "library":

image.png

Data Source Management

The configuration is very simple, just follow the picture tutorial below:

image.png

image.png

Actual effect display:
image.png

Data table management

This part is mainly to monitor the changes of a certain value in a table in a certain library. I don’t have any requirements, so I didn’t set it up. You can configure it according to your needs. The interface is as follows:

image.png

image.png

Service interface monitoring

This part can use the specified method to access the URL corresponding to the service and judge its health status based on the returned status code:

image.png

image.png

image.png

Display Board

image.png

image.png

Data communication monitoring

image.png

This part of the function is relatively simple, that is, monitoring equipment through two methods: ping and snmp:
image.png

PING monitoring

To monitor in this way, the monitored host needs to be able to respond to ICMP queries, and you may need to enable the firewall on the corresponding device. This method can only monitor whether the target is online. The addition method is similar to the previous one, so I will not repeat it, but just show the effect:

image.png

SNMP monitoring

This method monitors the target through the SNMP protocol. In addition to whether the host is online, it can also monitor the traffic, rate, CPU, memory, temperature, voltage, etc. of the device in and out. However, the monitored target needs to support the SNMP protocol, and different functions may need to support different SNMP versions (for example, if verification function is required, SNMP v3 is required).
The interface for adding monitoring targets is as follows:

image.png

image.png

The monitoring results are as follows:
image.png

FTP/SFTP Monitoring

This function is very simple, that is, monitoring FTP and SFTP servers. As before, you need to manually add the FTP/SFTP servers to be monitored. The final effect is as follows:

image.png

Middleware monitoring

This part can monitor the following types of content, but it requires a host that can access both the wgcloud server and the monitored content, and install a component similar to agent called "server-backup" as an auxiliary tool. I won't go into details here, so please research it yourself if you are interested.

image.png

Operation and maintenance function introduction

Inspection report

image.png

By default, wgcloud generates daily, weekly, and monthly inspection reports:
image.png

The content is relatively simple. Here is part of the daily report:
image.png

System Management

This part has two contents, system log and command delivery, as shown below:

image.png

The system log will show some alarms on each monitoring host:
image.png

The command can be sent through the agent to let the selected monitoring host run the command, such as database backup. The command can be run immediately or at a scheduled time (multiple times):
image.png

image.png

Alarm settings

This part is very simple and is divided into 3 parts. You will understand it by looking at the configuration pages of these 3 parts.

image.png

Email alert, set the email address to receive alerts:
image.png

Script alert:
image.png

Customize alarms, customize alarm items and thresholds for monitoring hosts:
image.png

image.png

asset Management

Provides simple asset management functions:

image.png

image.png

Device Account Management

Provides simple device account management functions:

image.png

image.png

Summarize

In general, wgcloud is still in line with the usage habits of Chinese people, and the functions provided by the personal free version are sufficient for ordinary people to use. The only regret is that the limit of 10 monitoring targets is slightly less.

In addition, 10 is the limit for each function item: for example, 10 monitoring hosts, 10 monitoring processes, and 10 monitoring dockers... If you only consider the key monitoring targets and make some plans, it is enough for ordinary people.

The content of the blog is original. Please indicate the source when reprinting! For more blog articles, you can go toSitemapUnderstand. The RSS address of the blog is:https://blog.tangwudi.com/feed, welcome to subscribe; if necessary, you can joinTelegram GroupDiscuss the problem together.
No Comments

Send Comment Edit Comment


				
|´・ω・)ノ
ヾ(≧∇≦*)ゝ
(☆ω☆)
(╯‵□′)╯︵┴─┴
 ̄﹃ ̄
(/ω\)
∠(ᐛ 」∠)_
(๑•̀ㅁ•́ฅ)
→_→
୧(๑•̀⌄•́๑)૭
٩(ˊᗜˋ*)و
(ノ°ο°)ノ
(´இ皿இ`)
⌇●﹏●⌇
(ฅ´ω`ฅ)
(╯°A°)╯︵○○○
φ( ̄∇ ̄o)
ヾ(´・ ・`。)ノ"
( ง ᵒ̌ᵒ̌)ง⁼³₌₃
(ó﹏ò。)
Σ(っ°Д °;)っ
( ,,´・ω・)ノ"(´っω・`。)
╮(╯▽╰)╭
o(*////▽////*)q
>﹏<
( ๑´•ω•) "(ㆆᴗㆆ)
😂
😀
😅
😊
🙂
🙃
😌
😍
😘
😜
😝
😏
😒
🙄
😳
😡
😔
😫
😱
😭
💩
👻
🙌
🖕
👍
👫
👬
👭
🌚
🌝
🙈
💊
😶
🙏
🍦
🍉
😣
Source: github.com/k4yt3x/flowerhd
Emoticons
Emoji
Little Dinosaur
flower!
Previous
Next
       
error:
en_US
Spring Festival
hapiness