From 60280b0274e4a87323d2d34542c321524f2220bc Mon Sep 17 00:00:00 2001
From: Nicolas Hennion Packages exist for Debian (SID), Arch, Fedora, Redhat, FreeBSD... Check if the version is the latest one. PyPi is an official Python package manager. You first need to install pypi on your system. For example on Debian/Ubuntu: You first need to install PyPi on your system. For example on Debian/Ubuntu: Note: if you are behind an HTTP Proxy, you should use Note: if you are behind an HTTP Proxy, you should use instead: Arnaud Hartmann (thanks to him !) maintains a PPA with the latest Glances version: The PPA is available for Ubuntu version 9.10 to 12.04. To install the PPA just enter: Then install Glances: If you have the following error: Try to runs: then try to run: I need contributors to package Glances for Windows (for exemple using PyInstaller). I am looking for a contributor to package Glances for Windows (for exemple using PyInstaller). No configuration is needed to use Glances. Furthermore, the release 1.6 introduces a configuration file to setup limits. The default configuration file is under the /etc/glances/glances.conf file. Glances uses a XML/RPC server and can be used by another client software. In server mode, you can set the bind address (-B ADDRESS) and listenning 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 networks interfaces) and TCP port is 61209. In client/server mode, limits are set by the server side. The version 1.6 introduces a optionnal password to access to the server (-P password). By default, stats are refreshed every second, to change this setting, you can
@@ -204,10 +205,11 @@ use the -t option. For example to set the refresh rate to 5 seconds: When Glances is running, you can press: 'a' to set the automatic mode. The processes are sorted automatically IF CPU IoWait > 60% sort by process "IO read and write" If CPU > 70%, sort by process "CPU consumption" If MEM > 70%, sort by process "memory size"From PyPi (easy and cross platform way)
$ sudo apt-get update
$ sudo apt-get install python-pip build-essential python-dev
@@ -86,29 +88,12 @@ $ sudo apt-get install python-pip build-essential python-dev
-$ sudo pip install Glances
-$ sudo pip install --proxy=user:password@url:port Glances
From PPA (easy way for Ubuntu/Mint...)
-
-
-
-$ sudo add-apt-repository ppa:arnaud-hartmann/glances-stable
-$ sudo apt-get update
-
-
-$ sudo apt-get install glances
-
From Homebrew via PyPi (OS X)
+From Homebrew for Mac OS X
+$ brew install brew-pip
$ export PYTHONPATH=$(brew --prefix)/lib/python2.7/site-packages
@@ -118,11 +103,9 @@ $ brew pip Glances
-Error: Failed executing: pip install glances==1.X --install-option=--prefix=/usr/local/XXX/glances/1.X (.rb:)
-This link will help resolve the above errors:
-https://github.com/mxcl/homebrew/wiki/bug-fixing-checklist
-$ pip install glances==1.X --install-option=--prefix=/usr/local/XXX/glances/1.X
$ brew link Glances
@@ -139,7 +122,7 @@ $ brew link Glances
* Download the latest [Glances version](https://raw.github.com/nicolargo/glances/master/glances/glances.py)
From source
@@ -159,6 +142,14 @@ $ cd nicolargo-glances-*
$ sudo python setup.py install
Configuration
+
+Running
In standalone mode
@@ -186,6 +177,16 @@ $ sudo python setup.py install
User guide
-
'd' disable or enable the disk IO stats
'e' enable the sensors module (PySensors library is needed; Linux-only)
'f' disable or enable the file system stats
'h' to display a help message with the keys you can press and the limits
'i' sort the processes list by IO rate (need root account on some OS)
'l' disable or enable the logs
'm' sort the processes list by process MEM
'n' disable or enable the network interfaces stats
'x' delete finished warning and critical logs messages
'1' switch between global CPU and per core stats
'q' Exit
In server mode, you can set the bind address (-B ADDRESS) and listenning 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 (Glancess will listen on all the networks interfaces). - TCP port is 61209.
- -TIME+: Cumulative CPU time used
IO_R and IO_W: Per process IO read and write
IO_R and IO_W: Per process IO read and write rate (in byte per second)
NAME: Process name or command line