Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ How Glances monitoring system on Ubuntu     - Linux / Unix: chroot command examples to explain (Linux)

- Ubuntu dual-card system configuration method (Server)

- Ubuntu 12.04 installation instructions under GAMIT10.40 (Linux)

- Analysis of memory mapping process in Linux x86-64 mode (Linux)

- How to deploy Icinga server (Server)

- Turning off the interface eth0: error: Disconnect the device 'eth0' (Linux)

- SecureCRT session buffer size settings (Linux)

- How to Disable Linux IPv6 (Linux)

- What is a logical partition management LVM, how to use in Ubuntu (Linux)

- Linux kernel likely and unlikely to resolve macro definitions (Linux)

- RHEL (RedHat) 6.3 using EPEL Yum source (Linux)

- Use ISO document production OpenStack used CoreOS mirror (Linux)

- Nginx server load balancing dual-system availability (Server)

- CentOS 6.4 Telecom ADSL dial-up network configuration (Linux)

- CentOS install Java 1.8 (Linux)

- installation of Piwik under Ubuntu (Programming)

- Linux iostat command example explanation (Linux)

- How to Start a Linux application running in the background using the terminal mode (Linux)

- BusyBox making the file system (Linux)

- JITwatch installation under Linux (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

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 192.168.1.10 is the IP address of the server.

glances -c -P 192.168.1.10
 

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.
     
         
         
         
  More:      
 
- Log4Net (Linux)
- Ubuntu and derivative users to install the system launcher SimDock 1.3 (Linux)
- Deploy Mono 4 and Jexus 5.6 on CentOS7 (Server)
- Deploy the project to the server from GitHub (Server)
- Ubuntu install the camera driver (Linux)
- Ubuntu install Eclipse can not find JAVA_HOME problem (Linux)
- Zabbix monitoring tool deployment under Ubuntu server (Server)
- SQL in the specific internal Oracle process (Database)
- CentOS 7 Change Hostname (Linux)
- C # DateTime structure common method (Programming)
- Upgrading to MySQL 5.7.9 MySQL 5.6.23 (Database)
- C ++ you can become a new scripting language (Programming)
- Java gets the current system time System.currentTimeMillis () (Programming)
- installation of Vim plugin YouCompleteMe under Ubuntu 15.04 (Linux)
- MySQL database under Linux to achieve automatic backup scheduled backup day (Database)
- Linux iptables firewall settings to use (Linux)
- ThinkPad X220 Ubuntu 14.10 installed on fingerprint recognition (Linux)
- RedHat Linux 7 build yum source server (Server)
- How to contribute code to the GNU Project (Linux)
- MySQL error: ERROR 1175: You are using safe update mode solution (Database)
     
           
     
  CopyRight 2002-2020 newfreesoft.com, All Rights Reserved.