提交 adb13fef 编写于 作者: N Nicolargo

Update user documentation for Glances 2.1

上级 e67fb54e
...@@ -2,11 +2,11 @@ ...@@ -2,11 +2,11 @@
Glances Glances
======= =======
This manual describes *Glances* version 2.0.1. This manual describes *Glances* version 2.1.
Copyright © 2012-2014 Nicolas Hennion <nicolas@nicolargo.com> Copyright © 2012-2014 Nicolas Hennion <nicolas@nicolargo.com>
June 2014 September 2014
.. contents:: Table of Contents .. contents:: Table of Contents
...@@ -75,7 +75,7 @@ In client mode, you can set the TCP port of the server ``-p PORT``. ...@@ -75,7 +75,7 @@ In client mode, you can set the TCP port of the server ``-p PORT``.
You can also set a password to access to the server ``--password``. You can also set a password to access to the server ``--password``.
Default binding address is ``0.0.0.0`` (Glances will listen on all the Default binding address is ``0.0.0.0`` (Glances will listen on all the
network interfaces) and TCP port is ``61209``. available network interfaces) and TCP port is ``61209``.
In client/server mode, limits are set by the server side. In client/server mode, limits are set by the server side.
...@@ -89,14 +89,13 @@ client, the latter will try to grab stats using the ``SNMP`` protocol: ...@@ -89,14 +89,13 @@ client, the latter will try to grab stats using the ``SNMP`` protocol:
client$ glances -c @snmpserver client$ glances -c @snmpserver
Known issues: grab using SNMP is only validated for GNU/Linux with SNMP Note: Stats grabbed by SNMP request are limited.
v2/2c server.
Web Server Mode Web Server Mode
--------------- ---------------
If you want to remotely monitor a machine, called ``server``, from any If you want to remotely monitor a machine, called ``server``, from any
device with a web browser, called ``client``, just run on the server: device with a web browser, just run on the server:
.. code-block:: console .. code-block:: console
...@@ -192,7 +191,7 @@ The following commands (key pressed) are supported while in Glances: ...@@ -192,7 +191,7 @@ The following commands (key pressed) are supported while in Glances:
Enable/disable top extended stats Enable/disable top extended stats
``f`` ``f``
Show/hide file system stats Show/hide file system stats
``f`` ``g``
Generate hraphs for current history Generate hraphs for current history
``h`` ``h``
Show/hide the help screen Show/hide the help screen
...@@ -230,13 +229,11 @@ The following commands (key pressed) are supported while in Glances: ...@@ -230,13 +229,11 @@ The following commands (key pressed) are supported while in Glances:
Configuration Configuration
============= =============
**Caution! Glances version 1.x configuration files are not compatible
with the version 2.x.**
No configuration file is mandatory to use Glances. No configuration file is mandatory to use Glances.
Furthermore a configuration file is needed to set up limits, disks or Furthermore a configuration file is needed to set up limits, disks or
network interfaces to hide and/or monitored processes list. network interfaces to hide and/or monitored processes list or to define
alias.
By default, the configuration file is under: By default, the configuration file is under:
...@@ -255,6 +252,8 @@ Since Windows Vista and newer versions: ...@@ -255,6 +252,8 @@ Since Windows Vista and newer versions:
:: ::
C:\Users\<User>\AppData\Roaming C:\Users\<User>\AppData\Roaming
or
%userprofile%\AppData\Roaming
You can override the default configuration, located in one of the above You can override the default configuration, located in one of the above
directories on your system, except for Windows. directories on your system, except for Windows.
...@@ -270,6 +269,18 @@ e.g., on Linux: ...@@ -270,6 +269,18 @@ e.g., on Linux:
On OS X, you should copy the configuration file to On OS X, you should copy the configuration file to
``~/Library/Application Support/glances/``. ``~/Library/Application Support/glances/``.
Logs and debug mode
===================
Glances logs all its internal messages to a log file. By default, only
INFO & WARNING & ERROR &CRITICAL levels are logged, but DEBUG messages
can ben logged using the -d option on the command line.
By default, the configuration file is under:
:Linux, \*BSD and OS X: ``/tmp/glances.conf``
:Windows: ``%APPDATA%\Local\temp\glances.conf``
Anatomy Of The Application Anatomy Of The Application
========================== ==========================
...@@ -390,7 +401,7 @@ Alerts are only set if the maximum speed per network interface is available ...@@ -390,7 +401,7 @@ Alerts are only set if the maximum speed per network interface is available
*Note*: it is possibile to define a list of network interfaces to hide *Note*: it is possibile to define a list of network interfaces to hide
and per-interface limit values in the ``[network]`` section of the and per-interface limit values in the ``[network]`` section of the
configuration file. configuration file and aliases for interface name.
Disk I/O Disk I/O
-------- --------
...@@ -402,7 +413,7 @@ Glances displays the disk I/O throughput. The unit is adapted dynamically. ...@@ -402,7 +413,7 @@ Glances displays the disk I/O throughput. The unit is adapted dynamically.
There is no alert on this information. There is no alert on this information.
*Note*: it is possible to define a list of disks to hide under the *Note*: it is possible to define a list of disks to hide under the
``[diskio]`` section in the configuration file. ``[diskio]`` section in the configuration file and aliases for disk name.
File System File System
----------- -----------
...@@ -437,8 +448,8 @@ temperature only. ...@@ -437,8 +448,8 @@ temperature only.
There is no alert on this information. There is no alert on this information.
*Note*: limit values can be overwritten in the configuration file under *Note*: limit values and sensors alias names can be defined in the configuration
the ``[sensors]`` section. file under the ``[sensors]`` section.
Processes List Processes List
-------------- --------------
...@@ -499,7 +510,8 @@ The number of processes in the list is adapted to the screen size. ...@@ -499,7 +510,8 @@ The number of processes in the list is adapted to the screen size.
``IOW/s`` ``IOW/s``
Per process I/O write rate (in Byte/s) Per process I/O write rate (in Byte/s)
``COMMAND`` ``COMMAND``
Process command line (process name is highlighted) Process command line
User cans switch to the process name by pressing on the ``/`` key
Process status legend: Process status legend:
...@@ -514,6 +526,13 @@ Process status legend: ...@@ -514,6 +526,13 @@ Process status legend:
``Z`` ``Z``
Zombie Zombie
In standalone mode, additionals informations are provided for the top process:
* CPU affinity (number of cores used by the process)
* Extended memory information (swap, shared, text, lib, data and dirty on Linux)
* Openned threads, files and network sessions (TCP and UDP)
* IO nice level
*Note*: limit values can be overwritten in the configuration file under *Note*: limit values can be overwritten in the configuration file under
the ``[process]`` section. the ``[process]`` section.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册