Keep An Eye On Your System With Glances Monitor

I recently came across an interesting tool called Glances which allows you to monitor your Linux systems resources such as CPU/Memory usage, Swap, Disk I/O, Network and many more. Glances is a free software (licensed under LGPL) to monitor your GNU/Linux or BSD operating system from a text interface. Glances uses the library libstatgrab to retrieve information from your system and it is developed in Python.

On CentOS/RHEL 6.5

– Open terminal console and run following command:

[code language=”js”]# yum install glances[/code]

glances-01

On Ubuntu/Debian 13:10

– Open terminal console and run the following command:

[code language=”js”]

$ sudo apt-get install python-pip build-essential python-dev

$ sudo pip install Glances

$ sudo pip install PySensors

[/code]

glances-02

To start Glances, simply type “glances” in terminal

CentOS 6.5

glances-03

Ubuntu 13:10

glances-04

By default the color code means:

<span style="color: #00ff00;">GREEN</span>: the statistic is “<span style="color: #00ff00;">OK</span>”
<span style="color: #0000ff;">BLUE</span> : the statistic is “<span style="color: #0000ff;">CAREFUL</span>” (to watch)
<span style="color: #842dce;">VIOLET</span> : the statistic is “<span style="color: #842dce;">WARNING</span>” (alert)
<span style="color: #ff0000;">RED</span> : the statistic is “<span style="color: #ff0000;">CRITICAL</span>” (critical)

When Glances is running, you can press some special keys to give commands to it:

c: Sort processes by CPU%  
m: Sort processes by MEM%  
p: Sort processes by name  
i: Sort processes by IO Rate  
d: Show/hide disk I/O stats  
f: Show/hide file system stats  
n: Show/hide network stats  
s: Show/hide sensors stats  
b: Bit/s or Byte/s for network IO  
w: Delete warning logs  
x: Delete warning and critical logs  
1: Global CPU or Per Core stats  
h: Show/hide this help message  
q: Quit (Esc and Ctrl-C also work)  
l: Show/hide log messages
 
comments powered by Disqus