Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ How Glances monitoring system on Ubuntu     - Linux Mint brightness adjustment --xrandr command learning (Linux)

- Linux modify the system time (Linux)

- Tmux Crash Course: Tips and adjustment (Linux)

- Spark build standalone version cluster (Server)

- Linux dynamic libraries and Guide (Programming)

- MySQL 5.6 use GTIDs build the master database (Database)

- Linux operating system buffer overflow attacks Countermeasures (Linux)

- Protection Docker container Notice (Server)

- CentOS 6 adds disk quota limit (Linux)

- Simple and fast sorting (Programming)

- How to make GRub instead of the default Ubuntu software center (Linux)

- Linux System Getting Started Learning: Linux common log file (Linux)

- Compile and install Ubuntu Linux 4.0.5 kernel, network and fix vmware kernel module compilation error (Linux)

- How to enable curl command HTTP2 support (Linux)

- Linux environment password security settings (Linux)

- Linux excellent text editor (Markdown, LaTeX, MathJax) (Linux)

- Linux daemon (Linux)

- OpenJDK7 source compiler installation on CentOS 6.5 (Linux)

- ORA-600 [kcbz_check_objd_typ] Error Handling (Database)

- Ubuntu 15.10 install the latest Arduino IDE 1.6.7 (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:      
 
- Docker use Dockerfile created since the launch of the service support SSH container mirror (Server)
- PLSQL Developer synchronization table tools (Database)
- MySQL view (Database)
- Circular list of Java programming (Programming)
- Android Studio interface-related settings (Linux)
- About the replication of JavaScript (Programming)
- How to force Linux users to change the initial password the first time you log in (Linux)
- Search Linux commands and files - which, whereis, locate, find (Linux)
- Linux security settings (Linux)
- iOS9 new feature - stacked view UIStackView (Programming)
- How to use the ps command to monitor progress in the implementation of Linux commands (Linux)
- Oracle 11g R2 RAC RMAN backup script example (Database)
- Red Hat Enterprise Linux configuration VNC multi-user access methods (Linux)
- ORA-12154: TNS: could not resolve the connect identifier specified solve (Database)
- Linux Proc File System Experiment (Linux)
- Ora-00439: feature not enabled: managed standby (Database)
- Fedora 21 setting boot script (Linux)
- Install JDK 1.7 + Eclipse in CentOS 6.4 in (Linux)
- How to manage KVM virtual environments with command-line tools in Linux (Server)
- Git uses Details (Linux)
     
           
     
  CopyRight 2002-2020 newfreesoft.com, All Rights Reserved.