LinTut

Glances – Real Time System Monitoring Tool for Linux

Glances monitoring tool

Glances monitoring tool

Glances is a cross-platform curses-based command line monitoring tool writen in Python which use the psutil library to grab informations from the system. Glance monitoring CPULoad AverageMemoryNetwork InterfacesDisk I/OProcessesand File System spaces utilization.

Glances can adapt dynamically the displayed information depending on the terminal siwrize. It can also work in a client/server mode for remote monitoring.

Glances Features

Requirements

Install Glances

Actually, packages exist for Arch Linux, Fedora / CentOS / RHEL, Debian (Sid/Testing) and Ubuntu (13.04+), so you should be able to install it using your favorite package manager.


In Ubuntu:
#sudo apt-get install glances -y

In Centos:

# yum install glances -y
Glances

Usage

Standalone mode
Simply run:

$ glances

Client/Server mode
If you want to remotely monitor a machine, called server, from another one, called client, just run on the server:
server$ glances -s
and on the client:

client$ glances -c @server

where @server is the IP address or hostname of the server.
In server mode, you can set the bind address -B ADDRESS and listening TCP port -p PORT.
In client mode, you can set the TCP port of the server -p PORT.
Default binding address is 0.0.0.0 (Glances will listen on all the network interfaces) and TCP port is 61209.
In client/server mode, limits are set by the server side.
You can also set a password to access to the server -P password.
Glances is IPv6 compatible. Just use the -B :: option to bind to all IPv6 addresses.

Glances Color Codes

Meaning of Glances color code:

  1. GREEN: OK (everything is fine)
  2. BLUE: CAREFUL (need attention)
  3. VIOLET: WARNING (alert)
  4. RED: CRITICAL (critical)

We can set thresholds in configuration file. By default thresholds set is (careful=50,warning=70 and critical=90), we can customized as per our needs. The default configuration file is located at ‘/etc/glances/glances.conf’.
More information on glances website

Exit mobile version