Linux System Monitoring Tool glances

Source: Internet
Author: User

Glances

Linux system comes with a lot of system performance monitoring tools, such as top,vmstat,iftop and so on, there is a monitoring tool glances, it can put a few other monitoring indicators in one. Glances is a relatively new system monitoring tool, written in Python, using the Psutil library to obtain information from the system. It can be used to monitor CPU, average load, memory, network interface, disk I/O, File system space utilization, mounted devices, all active processes, and the processes that consume the most resources. Glances has a lot of interesting options. One of its main features is the ability to set thresholds (careful caution, warning warning, critical fatal) in the configuration file, which then displays the information in different colors to indicate the bottleneck of the system.

Installing glances

Glances in the Epel source, so the installation is very simple, configure the Epel source can be installed using Yum.
Download Install Epel Source:

wget https://mirrors.aliyun.com/epel/6Server/x86_64/epel-release-6-8.noarch.rpmrpm -ivh epel-release-6-8.noarch.rpmyum makecache

Yum installation glances

yum install glances -y

Glances is a command-line tool that includes the following command options:

-B: Show Network connection speed byte/sec
-B @IP |host: Bind server-side IP address or host name
-C @IP |host: Connect glances server Side
-C File: Set profile default is/etc/glances/glances.conf
-D: Turn off the disk I/O module
-E: Display sensor temperature
-F file: Set output files (in HTML or CSV format)
-M: Close mounted disk module
-N: Shut down the network module
-P Port: Set the Run port by default is 61209
-p Password: setting client/server password
-S: Set glances run mode to server
-T sec: Sets the time interval for the screen refresh, in seconds, and the default value of 2 seconds, value License range: 1~32767
-H: Display Help information
-V: Display version information

Glances can allow remote connections to view monitoring information, and after the server is started, it is convenient to view it from a remote connection
Start the service side

[[email protected] ~]# glances -s -B 192.168.214.187 &[1] 1927[[email protected] ~]# Glances服务器启动了 192.168.214.187:61209

View the current host's system load status from another host

[[email protected] ~]# glances -c  192.168.214.187

The interface after the connection is as follows

You can also use shortcut keys to interact with each other and display them according to different performance.
Common shortcut keys

M: Sort process by memory footprint
P: Sort processes by Process name
C: Sort processes by CPU utilization
I: Sort processes by I/O frequency
A: Automatic sequencing process
D: Show/Hide disk I/O statistics
F: Show/Hide File system statistics
S: Show/Hide sensor statistics
Y: Show/Hide hard drive temperature statistics
L: Show/Hide Log
N: Show/Hide Network statistics
X: Delete warnings and critical logs
H: Show/Hide Help screen
Q: Exit
W: Delete warning record

Finally, a performance monitoring diagram that puts pressure on the host.

Different colors are displayed when the monitoring items reach different thresholds this is also explained in the help, press ' H ' into the help screen

Linux System Monitoring Tool glances

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.