Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install the system monitoring tool glances

2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article shows you how to install the system monitoring tool glances, which is concise and easy to understand, which will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.

As an operator, you not only need to monitor the system from time to time, but also need to install 13 gracefully. When others are still typing the top command in the small black box of the command to check the system performance, we will take you to use the web side to monitor the system performance.

Glances is a monitoring tool developed in Python language. It is most similar to top in Linux commands, but more complete than top commands.

Mainly used to monitor:

CPU usage rate

Memory usage

Kernel statistics and run queue information;

Disk I / O speed,

Transmission and read / write ratio

Free space in the file system

Disk adapter

Network I / O speed,

Transmission and read / write ratio

Page space and page speed

Processes that consume the most resources

Computer information and system resources.

Let's first install glances, which is very simple:

# pip install glances

In this way, the installation can be successful

After the command is executed, you will see the following illustration, which is similar to the top command, but more comprehensive than top (except that the font is gray, just change the background color to another color)

To increase readability, glance represents different states in different colors

Green: indicates good performance

Purple: it means that measures should be taken to call the police.

Red: indicates that the performance problem is serious. You can see that my disk usage is red and there is not enough space left.

Like top, glance is an interactive tool because we can use commands to control the results we want to see.

Common commands:

H: show help information

Q: leave the program and exit

C: sort system processes according to CPU real-time load

M: sort system processes according to memory usage

I: sort system processes by I / O usage

P: sort by process name

D: show or hide disk read and write status

F: show or hide file system information

1: display the usage of each CPU separately.

If it can only be checked like this, what's the difference between it and salted fish?

Our ultimate goal is to use web-side queries:

Bottle is not based on any extended class library. Just download the bottle.py file to your project directory and you can use it.

List four installation methods: (just choose one of them.)

$wget http://bottlepy.org/bottle.py

$sudo pip install bottle # recommended$ sudo easy_install bottle # alternative without pip$ sudo apt-get install python-bottle # works for debian, ubuntu,...

Execute glances-w after installation

At this point, you can use the web port to access the .IP + port number. Where can I find the port number? As soon as the glances-w command is executed, the port number will appear. Just write it down.

The above content is how to install the system monitoring tool glances, have you learned the knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report