glances/README

85 lines
2.2 KiB
Plaintext
Raw Normal View History

2011-12-05 16:24:49 +04:00
Glances -- Eye on your system
=============================
## Description
2011-12-06 14:47:38 +04:00
Glances is a CLI curses based monitoring tool for both GNU/Linux and BSD.
2011-12-05 16:24:49 +04:00
2011-12-05 18:25:00 +04:00
Glances uses the libstatgrab library to get information from your system.
Glances is developed in Python and uses the python-statgrab lib.
2011-12-05 16:24:49 +04:00
![screenshot](https://github.com/nicolargo/glances/raw/master/screenshot.png)
## Installation
2011-12-06 15:03:24 +04:00
Get the latest version:
2011-12-17 19:43:10 +04:00
$ wget https://github.com/downloads/nicolargo/glances/glances-1.3.2.tar.gz
2011-12-06 15:03:24 +04:00
2011-12-05 16:24:49 +04:00
Glances use a standard GNU style installer:
2011-12-17 19:43:10 +04:00
$ tar zxvf glances-1.3.2.tar.gz
$ cd glances-1.3.2
2011-12-05 16:24:49 +04:00
$ ./configure
$ make
$ sudo make install
Pre-requisites:
2011-12-06 16:58:25 +04:00
* Python 2.6+ (not tested with Python 3+)
* python-statgrab 0.5+ (did not work with python-statgrab 0.4)
2011-12-05 16:24:49 +04:00
Notes: The Debian Squeeze repos only include the python-statgrab 0.4.
You had to install the version 0.5 using the following commands:
2011-12-11 01:44:49 +04:00
$ sudo apt-get install libstatgrab-dev pkg-config python-dev make
2011-12-05 16:24:49 +04:00
$ 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
Notes: Ubuntu 10.04 and 10.10.
The instruction to install the version 0.5 are here: https://github.com/nicolargo/glances/issues/5#issuecomment-3033194
2011-12-06 16:58:25 +04:00
2011-12-05 16:24:49 +04:00
## Running
Easy:
$ glances.py
## User guide
By default, stats are refrsh every second, to change this setting, you can
use the -t option. For exemple to set the refrech rate to 5 seconds:
$ glances.py -t 5
Importants stats are colored:
* GREEN: stat counter is < 50%
* BLUE: stat counter is > 50% and < 70%
* MAGENTA: stat counter is > 70% and < 90%
* RED: stat counter is > 90%
When Glances is running, you can press:
* 'a' to set the automatic mode. The process list is sorted automatically
If CPU > 70%, sort by process CPU consomption
If MEM > 70%, sort by process size
2011-12-15 07:26:01 +04:00
* 'c' the processes list is sorted by CPU consumption
2011-12-05 16:24:49 +04:00
* 'm' the processes list is sorted by process size
* 'q' Exit
## Todo
You are welcome to contribute to this software.
* Packaging for Debian, Ubuntu, Fedora, Redhat, BSD...
* Check the needed Python library in the configure.ac
* Add file system stats when the python-statgrab is corrected
* Add a user guide window