Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ How Glances monitoring system on Ubuntu     - Python script file directory traversal examples (Programming)

- JQuery implements the same content merge cells (Programming)

- HA-Federation-HDFS + Yarn cluster deployment (Server)

- Unable to solve the official version of Android Studio online update problem (Linux)

- Docker study notes (Server)

- Linux system with a firewall to prevent the DOS attack (Linux)

- 10 Best Swift Tutorial examples (Programming)

- Oracle VirtualBox Problem Solving Case (Linux)

- To compile and install Redis Linux and master-slave replication configuration (Database)

- MySQL root password reset under CentOS (Database)

- Linux server remote user to obtain root privileges prevention (Linux)

- Phoenix agents use P2P WebRTC development (Programming)

- Hadoop 1 and 2.x installation notes (Server)

- Android custom ViewPager create kaleidoscopic image transition effects (Programming)

- C # using the HttpClient Note: Preheat the long connection (Programming)

- Simple to use multi-threaded programming under Linux mutex and condition variable (Programming)

- Java memory area and memory overflow exception (Programming)

- Ease of use "Explain Shell" script to understand Shell command (Linux)

- Ubuntu 14.10 / 14.04 / 12.04 virtual users to install the printing software Boomaga (Linux)

- Spring multi data source configuration (Programming)

 
         
  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:      
 
- Nagios (centreon) monitoring Linux Log (Server)
- How to install PlayOnLinux 4.2.5 under Ubuntu 14.04 / 12.04 (Linux)
- Linux --- process handle limit summary (Linux)
- GoldenGate for Oracle data consistency initializing (Database)
- OpenvSwitch 2.1.2 shell script to start and stop (Linux)
- Ansible module Know (Linux)
- Linux upgrade GCC 4.8.1 clear and concise tutorials (Ubuntu 12.04 64-bit version as an example) (Linux)
- Generators and iterators in Python (Programming)
- ORA-00020: No more process state objects available (Database)
- How to install Linux Kernel 4.4 on Ubuntu (Linux)
- 64-bit Ubuntu 15.10 How to compile the latest version of the 32 Wine 1.7.53 (Linux)
- Linux system file directory structure Introduction (Linux)
- Linux installation skynet issue summary (Linux)
- Java reflection by calling the class method (Programming)
- RHEL / CentOS / Fedora Install Nagios 4.0.1 (Linux)
- Install and configure GO 1.2.1 under CentOS 6.5 (Linux)
- Eclipse, Tomcat configuration JNDI connection Oracle data source example (Server)
- OpenSIPS offline messaging feature set (Server)
- Install the open source database PostgreSQL 9.4 and phpMyAdmin on Ubuntu (Database)
- Linux commands with browsing and downloading files (Linux)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.