Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ How Glances monitoring system on Ubuntu     - Apache Mina framework Practice (Programming)

- Permissions and attributes of files and directories under Linux (Linux)

- Intrusion analysis and prevention tools Knark under Linux platform (Linux)

- Oracle 12c users create (Database)

- Stucts2 values on the page and how the attribute values corresponding to the Action (Programming)

- Compiling source code Nginx module installation subs_filter (Server)

- VNC configuration detailed analysis under Linux (Linux)

- Specifies the open ports of the SUSE firewall settings (Linux)

- Upload the project to GitHub, synchronous remote repository Github (Linux)

- Practical Handbook: 130+ improve the efficiency of commonly used commands Vim (Linux)

- SecureCRT 7.0 Log Ubuntu 12.04 server via SSH service under Vmware (Server)

- CentOS 7 source code to compile and install Nginx process record (Server)

- How to use Git to upload code to GitHub project (Linux)

- How to install Ubuntu California - the calendar application (Linux)

- Xshell upload files to achieve Windows host Linux (Linux)

- Installing Linux and Windows 10 dual system (Linux)

- Use backup-manager system backup on Linux (Linux)

- Ubuntu configuration SVN and http mode access (Server)

- Advanced Linux security settings (Linux)

- Ten to improve the efficiency of the Linux bash tricks (Linux)

  How Glances monitoring system on Ubuntu
  Add Date : 2018-11-21      
  Glances is a cross-platform system for monitoring, line tool, text-based commands. It is written in Python, using psutil library to get information from the system. You can use it to monitor CPU, load average, memory, network interfaces, disk I / O, file system space utilization, equipment mounted, all active processes and the most resource-consuming process. Glances there are many interesting options. One of its main features is the threshold set in the configuration file (careful (careful), warning (warning), critical (fatal)), then it will use different colors to indicate the information bottleneck of the system.

Glances features

CPU load average
Different states (such as active, dormant) number of processes
All memory information, such as physical memory, swap space, free memory
CPU Information
The up-Fi / down speed
Disk I / O read / write speeds details
Device currently mounted disk usage
Consume the most resources processes and their CPU / memory usage

Installation Glances

He glances at the Ubuntu repositories, so installation is very simple. Run the following command to install Glances:

sudoapt-get install glances
(LCTT Annotation: If you can not work properly after installation, consider using pip install / upgrade glances: sudo pip install --upgrade glances)

Glances use

After installation is complete, you can execute the following command to start Glances:


glances monitor system output

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

By default, the time interval (LCTT Annotation: The data refresh interval) is 1 second, but you can customize the interval at startup Glances from the terminal.

Take the time interval is set to 5 seconds, and execute the following command:

glances -t 5

Glances meanings in different colors

Glances in different colors mean:

Green: Normal (OK)
Blue: Be careful (careful)
Purple: Warning (warning)
Red: fatal (critical)
Default settings, Glances threshold settings are: careful = 50, warning = 70, critical = 90. You can "/ etc / glances /" default configuration file directory glances.conf customize these thresholds.


Glances options

Glances offers many keyboard shortcuts that can be used to find information in the output when it runs.

Here are some common hotkey list:

m: Sort by memory usage process
p: sort by process name of the process
c: Sort by process CPU usage
i: Sort by I / O frequency process
a: automatic sorting process
d: Show / Hide disk I / O statistics
f: Show / Hide file system statistics
s: show / hide sensor Statistics
y: show / hide hard disk temperature statistics
l: Show / Hide Log
n: Show / Hide network statistics
x: remove the warning and critical log
h: Show / hide help screen
q: Quit
w: Delete Records Warning

Remote monitoring system using Glances

You can also use the remote monitoring system Glances. To use it on the remote system, use the following command:

glances -s

glances monitor remote system server

As you can see, Glances running on port 61209.

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

glances -c -P

in conclusion

For each Linux system administrators, Glances is a very useful tool. Use it, you can easily and efficiently monitor Linux system. If you have any questions, free to comment on it.
- How to use OpenVPN and PrivacyIDEA build two-factor authentication for remote access (Server)
- Linux System Getting Started Learning: The Linux command line burn ISO or NRG image to DVD (Linux)
- Linux Hard Disk Partition and file system management (Linux)
- Deploy the project to the server from GitHub (Server)
- C ++ 11 feature: decltype keywords (Programming)
- Oracle table space rename and delete table space (Database)
- MySQL fuzzy query: LIKE and REGEXP pattern mode (Database)
- Approach the next Linux shared interrupts (Linux)
- IDS Intrusion Detection System built (Linux) (Linux)
- Enterprise Hadoop cluster architecture - NFS installation (Server)
- Linux directory permissions to read and execute permissions difference (Linux)
- The correct way to open Xcode - Debugging (Programming)
- Linux how to prohibit the use of Ping command (Linux)
- Between the two to achieve the main MySQL database synchronization from (Database)
- Protect your files, modify the Linux value Umask (Linux)
- Linux pwd command learning experience (Linux)
- Linux administrator should command: sed and awk (Linux)
- Varnish achieve page jump (Server)
- CentOS installation of the ftp (Linux)
- Install Ubuntu Software Center App Grid (Linux)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.