Use glances free open source tool to monitor VPS host – CPU, memory, traffic, load and other parameters

888u

Last update at :2024-07-06,Edit by888u

Especially for users who have multiple VPS/servers or even multiple websites, because our personal energy is limited and we cannot know the operating status of the website or server 24/7, we need to have Such a tool can monitor the running status of the website. Once an abnormality occurs, it can be fed back to us and we can handle it in a timely manner. Snail has made many spam websites before, some of which we haven’t visited for several months. But when we actually visited them, the host provider ran away, and our own stupid domain name pointed to an empty page.

Snail has also shared some monitoring tools in his blog before, such as Monitoring Bao, NodeQuery, as well as Baidu Cloud Observation, Alibaba Cloud Monitoring, 360 Monitoring and other tools that we may have used in daily life.

4 Free Mainland China Online Website Monitoring Tools

10 free foreign website online monitoring service tools

Today Snail continues to toss another open source Linux system monitoring tool called glances from abroad, which is developed in Python language. We can use it to monitor the server's memory, load, disk IO performance, network traffic monitoring, and system temperature, etc. Comprehensive information.

First, the installation process of glances monitoring tool

curl -L http://bit.ly/glances | /bin/bash

Use the above script to install with one click. This script is officially provided and is the latest version of glances tool. The Snail test here is demonstrated on Centos 6 32bit system. Therefore, when using quick installation, you need to pay attention to a problem here. If there is an error message -bash: pip: command not found, it means that the pip environment is not installed in our system. We need to install it first before we can execute the one-click glances script above.

yum install python-setuptools

You must run this script first to solve the pip error prompt problem. After running the one-click installation, we can see a result like this, which means the installation is successful.

Second, commonly used commands and methods of glances monitoring tools

We have completed the installation of glances above. If we need to test it in a formal website environment, we must first complete the demonstration and then put it into the formal work, otherwise there may be unexpected \\"effects\ \", or our website data needs to be backed up first.

A – Enter glances

The glances command can directly display the CPU, memory, SWAP and other system parameters of the entire machine.

B – glances -w

By executing this command, we can see the given WEB port, and then we can use the IP:port method to see the monitoring situation in WEB mode.

http://IP address:61208

It is more straightforward to view it via the web. You must enter a command before you can open it with WEB.

Third, parameters of commonly used glances

-m: Close the mounted disk module -n: Close the network module -p PORT: Set the running port. The default is 61209-P password: Set the client/server password -s: Set glances. The running mode is server -t sec : Set the time interval for screen refresh, in seconds, the default value is 2 seconds, the value range is: 1~32767-h: Display help information -v: Display version information -b: Display network connection speed Byte/second -B @ IP|host: Bind the server-side IP address or host name -c @IP|host: Connect to glances Server-side -C file: Set the configuration file. The default is /etc/glances/glances.conf -d: Turn off the disk I/O module -e: Display sensor temperature -f file: Set output file (format is HTML or CSV)

If we want to get more information, we can go to the official website of glances: https://github.com/nicolargo/glances

In summary, using glances to monitor server status is relatively comprehensive, and it basically does not occupy system resources. You can view the monitoring situation through WEB and SSH. If necessary, we can also export the data to CSV or HTML format for local analysis.

Recommended site search: dynamic ip dialer, icp website registration free agent ip address, domain name space agent, latest qq agent ip, free domain name space, Chinese international domain name, American virtual host, Taiwan host, website space provider,

Use glances free open source tool to monitor VPS host – CPU, memory, traffic, load and other parameters

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