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 use Glances Monitoring system on Ubuntu

2025-04-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

Today, the editor will share with you the relevant knowledge about how to use the Glances monitoring system on Ubuntu. The content is detailed and the logic is clear. I believe most people still know too much about this, so share this article for your reference. I hope you can get something after reading this article. Let's take a look at it.

Glances is a command-line tool written in python to monitor the system. You can use Glances to monitor CPU, average load, memory, network interface, disk I _ UGO, file system space utilization, mounted devices, all active processes, and the processes that consume the most resources.

The function of Glances

Average CPU load

The number of processes in different states (such as active, dormant)

All memory information, such as physical memory, swap space, free memory

CPU information

Uplink / downlink speed of network connection

Disk Iswap O read / write speed details

Disk usage of the current mount device

Processes that consume the most resources and their CPU/ memory usage

Install Glances

Glances is in Ubuntu's software repository, so installation is easy. Execute the following command to install Glances:

Sudo apt-get install glances

(LCTT Note: if it cannot be used properly after installation, consider using pip to install / upgrade glances:sudo pip install-- upgrade glances)

How to use Glances

After the installation is complete, you can start Glances by executing the following command:

Glances

You will see output similar to the following:

Glances monitor system output

To exit the Glances terminal, press ESC or Ctrl + C.

By default, the interval is 1 second, but you can customize the interval when you start Glances from the terminal.

To set the interval to 5 seconds, execute the following command:

Different color meanings in glances-t 5Glances

The meaning of different colors in Glances:

Green: normal (OK)

Blue: be careful (careful)

Purple: warning (warning)

Red: fatal (critical)

By default, the threshold setting for Glances is careful=50,warning=70,critical=90. You can customize these thresholds through the default configuration file glances.conf in the "/ etc/glances/" directory.

Options for Glances

Glances provides a number of keyboard shortcuts that can be used to find output information while it is running.

Here is a list of some common hotkeys:

M: sort processes by memory footprint

P: sort processes by process name

C: sort processes by CPU occupancy

I: sort processes by Imax O frequency

A: automatic sorting process

D: show / hide disk Iamp O statistics

F: show / hide file system statistics

S: show / hide sensor statistics

Y: show / hide hard disk temperature statistics

L: show / hide logs

N: show / hide network statistics

X: delete warnings and critical logs

H: show / hide the help interface

Q: exit

W: delete warning record

Using Glances to monitor remote system

You can also use Glances to monitor remote systems. To use it on a remote system, use the following command:

Glances-s

You will see output similar to the following:

Glances monitor remote system server

As you can see, Glances runs on port 61209.

Now, execute the following command on the remote machine to connect to the Glances server at the specified IP address. Suppose 192.168.1.10 is your Glances server IP address.

Glances-c-P 192.168.1.10

Glances is an indispensable tool for Linux system administrators, and it can be used to manage the system easily and efficiently.

These are all the contents of this article entitled "how to use Glances Monitoring system on Ubuntu". Thank you for reading! I believe you will gain a lot after reading this article. The editor will update different knowledge for you every day. If you want to learn more knowledge, please pay attention to 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

Development

Wechat

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

12
Report