Glances is one of the best lightweight monitoring tool for linux and BSD based machines. It was developed based on Python language. It  uses the libstatgrab library to get information from your system. This short tutorial explains you how to install glances on linux distribution.

python-statgrab contains Python bindings for libstatgrab library. libstatgrab is a library which provides an easy to use interface
 for accessing system statistics. Available statistics include CPU, Load, Memory, Swap, Disk I/O, and Network I/O.

Install glances on ubuntu linux

$ sudo add-apt-repository ppa:arnaud-hartmann/glances-stable
$ sudo apt-get update
$ sudo apt-get install glances

The PPA is available for Ubuntu version 9.10 to 12.04.

Install glances from source

In order to install glances from source you need to resolve some prerequisites. Glances need Python 2.6+, python-statgrab 0.5+.

First download the latest source using wget

$ wget https://github.com/downloads/nicolargo/glances/glances-1.3.7.tar.gz
$ tar zxvf glances-1.3.7.tar.gz
$ cd glances-1.3.7
$ ./configure
$ make
$ sudo make install

Install glances on Debian Squeeze

The Debian Squeeze repos only include the python-statgrab 0.4.You have to install the python-statgrab 0.5 using the following commands

$ sudo apt-get install libstatgrab-dev pkg-config python-dev make
$ wget http://ftp.uk.i-scream.org/sites/ftp.i-scream.org/pub/i-scream/pystatgrab/pystatgrab-0.5.tar.gz
$ tar zxvf pystatgrab-0.5.tar.gz
$ cd pystatgrab-0.5/
$ ./setup.py build
$ sudo ./setup.py install

After the installation is completed, you can run the glances by using the simple commad glances.py. This is the sample output of the glances.

flances, glances monitoring tool, linux monitoring tool, monitoring tool, bsd monitoring tool, glances for linux, install glances,

Glances shows the information about  CPU, Load, Memory, Swap, Disk I/O, and Network I/O.

For more about glances, visit https://github.com/nicolargo/glances

Related articles


Subscribe Our Free Newsletter

Delivered by FeedBurner. We Respect Your Privacy

Tagged with:
 

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>