Glances version 2.1

This commit is contained in:
Nicolargo 2014-09-13 15:29:07 +02:00
parent 2f847a9fae
commit 6e33121b61
9 changed files with 202 additions and 83 deletions

View File

@ -123,9 +123,9 @@ td.option-group {
<div class="document" id="glances"> <div class="document" id="glances">
<h1 class="title">Glances</h1> <h1 class="title">Glances</h1>
<p>This manual describes <em>Glances</em> version 2.0.1.</p> <p>This manual describes <em>Glances</em> version 2.1.</p>
<p>Copyright © 2012-2014 Nicolas Hennion &lt;<a class="reference external" href="mailto:nicolas&#64;nicolargo.com">nicolas&#64;nicolargo.com</a>&gt;</p> <p>Copyright © 2012-2014 Nicolas Hennion &lt;<a class="reference external" href="mailto:nicolas&#64;nicolargo.com">nicolas&#64;nicolargo.com</a>&gt;</p>
<p>June 2014</p> <p>September 2014</p>
<div class="contents topic" id="table-of-contents"> <div class="contents topic" id="table-of-contents">
<p class="topic-title first">Table of Contents</p> <p class="topic-title first">Table of Contents</p>
<ul class="simple"> <ul class="simple">
@ -142,24 +142,25 @@ td.option-group {
</ul> </ul>
</li> </li>
<li><a class="reference internal" href="#configuration" id="id13">Configuration</a></li> <li><a class="reference internal" href="#configuration" id="id13">Configuration</a></li>
<li><a class="reference internal" href="#anatomy-of-the-application" id="id14">Anatomy Of The Application</a><ul> <li><a class="reference internal" href="#logs-and-debug-mode" id="id14">Logs and debug mode</a></li>
<li><a class="reference internal" href="#legend" id="id15">Legend</a></li> <li><a class="reference internal" href="#anatomy-of-the-application" id="id15">Anatomy Of The Application</a><ul>
<li><a class="reference internal" href="#header" id="id16">Header</a></li> <li><a class="reference internal" href="#legend" id="id16">Legend</a></li>
<li><a class="reference internal" href="#cpu" id="id17">CPU</a></li> <li><a class="reference internal" href="#header" id="id17">Header</a></li>
<li><a class="reference internal" href="#load" id="id18">Load</a></li> <li><a class="reference internal" href="#cpu" id="id18">CPU</a></li>
<li><a class="reference internal" href="#memory" id="id19">Memory</a></li> <li><a class="reference internal" href="#load" id="id19">Load</a></li>
<li><a class="reference internal" href="#network" id="id20">Network</a></li> <li><a class="reference internal" href="#memory" id="id20">Memory</a></li>
<li><a class="reference internal" href="#disk-i-o" id="id21">Disk I/O</a></li> <li><a class="reference internal" href="#network" id="id21">Network</a></li>
<li><a class="reference internal" href="#file-system" id="id22">File System</a></li> <li><a class="reference internal" href="#disk-i-o" id="id22">Disk I/O</a></li>
<li><a class="reference internal" href="#sensors" id="id23">Sensors</a></li> <li><a class="reference internal" href="#file-system" id="id23">File System</a></li>
<li><a class="reference internal" href="#processes-list" id="id24">Processes List</a></li> <li><a class="reference internal" href="#sensors" id="id24">Sensors</a></li>
<li><a class="reference internal" href="#monitored-processes-list" id="id25">Monitored Processes List</a></li> <li><a class="reference internal" href="#processes-list" id="id25">Processes List</a></li>
<li><a class="reference internal" href="#logs" id="id26">Logs</a></li> <li><a class="reference internal" href="#monitored-processes-list" id="id26">Monitored Processes List</a></li>
<li><a class="reference internal" href="#logs" id="id27">Logs</a></li>
</ul> </ul>
</li> </li>
<li><a class="reference internal" href="#other-outputs" id="id27">Other Outputs</a></li> <li><a class="reference internal" href="#other-outputs" id="id28">Other Outputs</a></li>
<li><a class="reference internal" href="#api-documentation" id="id28">API Documentation</a></li> <li><a class="reference internal" href="#apis-documentations" id="id29">APIs Documentations</a></li>
<li><a class="reference internal" href="#support" id="id29">Support</a></li> <li><a class="reference internal" href="#support" id="id30">Support</a></li>
</ul> </ul>
</div> </div>
<div class="section" id="introduction"> <div class="section" id="introduction">
@ -206,7 +207,7 @@ TCP port <tt class="docutils literal"><span class="pre">-p</span> PORT</tt>.</p>
<p>In client mode, you can set the TCP port of the server <tt class="docutils literal"><span class="pre">-p</span> PORT</tt>.</p> <p>In client mode, you can set the TCP port of the server <tt class="docutils literal"><span class="pre">-p</span> PORT</tt>.</p>
<p>You can also set a password to access to the server <tt class="docutils literal"><span class="pre">--password</span></tt>.</p> <p>You can also set a password to access to the server <tt class="docutils literal"><span class="pre">--password</span></tt>.</p>
<p>Default binding address is <tt class="docutils literal">0.0.0.0</tt> (Glances will listen on all the <p>Default binding address is <tt class="docutils literal">0.0.0.0</tt> (Glances will listen on all the
network interfaces) and TCP port is <tt class="docutils literal">61209</tt>.</p> available network interfaces) and TCP port is <tt class="docutils literal">61209</tt>.</p>
<p>In client/server mode, limits are set by the server side.</p> <p>In client/server mode, limits are set by the server side.</p>
<p>Glances is <tt class="docutils literal">IPv6</tt> compatible. Just use the <tt class="docutils literal"><span class="pre">-B</span> ::</tt> option to bind to <p>Glances is <tt class="docutils literal">IPv6</tt> compatible. Just use the <tt class="docutils literal"><span class="pre">-B</span> ::</tt> option to bind to
all IPv6 addresses.</p> all IPv6 addresses.</p>
@ -215,13 +216,12 @@ client, the latter will try to grab stats using the <tt class="docutils literal"
<pre class="code console literal-block"> <pre class="code console literal-block">
<span class="generic output">client$ glances -c &#64;snmpserver</span> <span class="generic output">client$ glances -c &#64;snmpserver</span>
</pre> </pre>
<p>Known issues: grab using SNMP is only validated for GNU/Linux with SNMP <p>Note: Stats grabbed by SNMP request are limited.</p>
v2/2c server.</p>
</div> </div>
<div class="section" id="web-server-mode"> <div class="section" id="web-server-mode">
<h2><a class="toc-backref" href="#id9">Web Server Mode</a></h2> <h2><a class="toc-backref" href="#id9">Web Server Mode</a></h2>
<p>If you want to remotely monitor a machine, called <tt class="docutils literal">server</tt>, from any <p>If you want to remotely monitor a machine, called <tt class="docutils literal">server</tt>, from any
device with a web browser, called <tt class="docutils literal">client</tt>, just run on the server:</p> device with a web browser, just run on the server:</p>
<pre class="code console literal-block"> <pre class="code console literal-block">
<span class="generic output">server$ glances -w</span> <span class="generic output">server$ glances -w</span>
</pre> </pre>
@ -239,6 +239,7 @@ http://&#64;server:61208
<h1><a class="toc-backref" href="#id10">Command Reference</a></h1> <h1><a class="toc-backref" href="#id10">Command Reference</a></h1>
<div class="section" id="command-line-options"> <div class="section" id="command-line-options">
<h2><a class="toc-backref" href="#id11">Command-Line Options</a></h2> <h2><a class="toc-backref" href="#id11">Command-Line Options</a></h2>
<blockquote>
<table class="docutils option-list" frame="void" rules="none"> <table class="docutils option-list" frame="void" rules="none">
<col class="option" /> <col class="option" />
<col class="description" /> <col class="description" />
@ -250,21 +251,16 @@ http://&#64;server:61208
<kbd><span class="option">-V</span>, <span class="option">--version</span></kbd></td> <kbd><span class="option">-V</span>, <span class="option">--version</span></kbd></td>
<td>show program's version number and exit</td></tr> <td>show program's version number and exit</td></tr>
<tr><td class="option-group"> <tr><td class="option-group">
<kbd><span class="option">-b</span>, <span class="option">--byte</span></kbd></td> <kbd><span class="option">-d</span>, <span class="option">--debug</span></kbd></td>
<td>display network rate in byte per second</td></tr> <td>Enable debug mode</td></tr>
<tr><td class="option-group" colspan="2">
<kbd><span class="option">-B <var>BIND_ADDRESS</var></span>, <span class="option">--bind <var>BIND_ADDRESS</var></span></kbd></td>
</tr>
<tr><td>&nbsp;</td><td>bind server to the given IPv4/IPv6 address or hostname</td></tr>
<tr><td class="option-group" colspan="2">
<kbd><span class="option">-c <var>CLIENT</var></span>, <span class="option">--client <var>CLIENT</var></span></kbd></td>
</tr>
<tr><td>&nbsp;</td><td>connect to a Glances server by IPv4/IPv6 address or
hostname</td></tr>
<tr><td class="option-group" colspan="2"> <tr><td class="option-group" colspan="2">
<kbd><span class="option">-C <var>CONF_FILE</var></span>, <span class="option">--config <var>CONF_FILE</var></span></kbd></td> <kbd><span class="option">-C <var>CONF_FILE</var></span>, <span class="option">--config <var>CONF_FILE</var></span></kbd></td>
</tr> </tr>
<tr><td>&nbsp;</td><td>path to the configuration file</td></tr> <tr><td>&nbsp;</td><td>path to the configuration file</td></tr>
<tr><td class="option-group" colspan="2">
<kbd><span class="option">--enable-history</span></kbd></td>
</tr>
<tr><td>&nbsp;</td><td>enable the history mode</td></tr>
<tr><td class="option-group"> <tr><td class="option-group">
<kbd><span class="option">--disable-bold</span></kbd></td> <kbd><span class="option">--disable-bold</span></kbd></td>
<td>disable bold mode in the terminal</td></tr> <td>disable bold mode in the terminal</td></tr>
@ -287,6 +283,10 @@ hostname</td></tr>
<kbd><span class="option">--disable-process</span></kbd></td> <kbd><span class="option">--disable-process</span></kbd></td>
</tr> </tr>
<tr><td>&nbsp;</td><td>disable process module</td></tr> <tr><td>&nbsp;</td><td>disable process module</td></tr>
<tr><td class="option-group" colspan="2">
<kbd><span class="option">--disable-process-extended</span></kbd></td>
</tr>
<tr><td>&nbsp;</td><td>disable extended stats on top process</td></tr>
<tr><td class="option-group"> <tr><td class="option-group">
<kbd><span class="option">--disable-log</span></kbd></td> <kbd><span class="option">--disable-log</span></kbd></td>
<td>disable log module</td></tr> <td>disable log module</td></tr>
@ -295,16 +295,29 @@ hostname</td></tr>
</tr> </tr>
<tr><td>&nbsp;</td><td>export stats to a CSV file</td></tr> <tr><td>&nbsp;</td><td>export stats to a CSV file</td></tr>
<tr><td class="option-group" colspan="2"> <tr><td class="option-group" colspan="2">
<kbd><span class="option">-c <var>CLIENT</var></span>, <span class="option">--client <var>CLIENT</var></span></kbd></td>
</tr>
<tr><td>&nbsp;</td><td>connect to a Glances server by IPv4/IPv6 address or
hostname</td></tr>
<tr><td class="option-group">
<kbd><span class="option">-s</span>, <span class="option">--server</span></kbd></td>
<td>run Glances in server mode</td></tr>
<tr><td class="option-group" colspan="2">
<kbd><span class="option">-p <var>PORT</var></span>, <span class="option">--port <var>PORT</var></span></kbd></td> <kbd><span class="option">-p <var>PORT</var></span>, <span class="option">--port <var>PORT</var></span></kbd></td>
</tr> </tr>
<tr><td>&nbsp;</td><td>define the client/server TCP port [default: 61209]</td></tr> <tr><td>&nbsp;</td><td>define the client/server TCP port [default: 61209]</td></tr>
<tr><td class="option-group" colspan="2">
<kbd><span class="option">-B <var>BIND_ADDRESS</var></span>, <span class="option">--bind <var>BIND_ADDRESS</var></span></kbd></td>
</tr>
<tr><td>&nbsp;</td><td>bind server to the given IPv4/IPv6 address or hostname</td></tr>
<tr><td class="option-group" colspan="2">
<kbd><span class="option">--password-badidea <var>PASSWORD_ARG</var></span></kbd></td>
</tr>
<tr><td>&nbsp;</td><td>define password from the command line</td></tr>
<tr><td class="option-group"> <tr><td class="option-group">
<kbd><span class="option">--password</span></kbd></td> <kbd><span class="option">--password</span></kbd></td>
<td>define a client/server password from the prompt or <td>define a client/server password from the prompt or
file</td></tr> file</td></tr>
<tr><td class="option-group">
<kbd><span class="option">-s</span>, <span class="option">--server</span></kbd></td>
<td>run Glances in server mode</td></tr>
<tr><td class="option-group" colspan="2"> <tr><td class="option-group" colspan="2">
<kbd><span class="option">--snmp-community <var>SNMP_COMMUNITY</var></span></kbd></td> <kbd><span class="option">--snmp-community <var>SNMP_COMMUNITY</var></span></kbd></td>
</tr> </tr>
@ -325,6 +338,9 @@ file</td></tr>
<kbd><span class="option">--snmp-auth <var>SNMP_AUTH</var></span></kbd></td> <kbd><span class="option">--snmp-auth <var>SNMP_AUTH</var></span></kbd></td>
</tr> </tr>
<tr><td>&nbsp;</td><td>SNMP authentication key (only for SNMPv3)</td></tr> <tr><td>&nbsp;</td><td>SNMP authentication key (only for SNMPv3)</td></tr>
<tr><td class="option-group">
<kbd><span class="option">--snmp-force</span></kbd></td>
<td>force SNMP mode</td></tr>
<tr><td class="option-group" colspan="2"> <tr><td class="option-group" colspan="2">
<kbd><span class="option">-t <var>TIME</var></span>, <span class="option">--time <var>TIME</var></span></kbd></td> <kbd><span class="option">-t <var>TIME</var></span>, <span class="option">--time <var>TIME</var></span></kbd></td>
</tr> </tr>
@ -332,17 +348,40 @@ file</td></tr>
<tr><td class="option-group" colspan="2"> <tr><td class="option-group" colspan="2">
<kbd><span class="option">-w</span>, <span class="option">--webserver</span></kbd></td> <kbd><span class="option">-w</span>, <span class="option">--webserver</span></kbd></td>
</tr> </tr>
<tr><td>&nbsp;</td><td>run Glances in Web server mode</td></tr> <tr><td>&nbsp;</td><td>run Glances in web server mode</td></tr>
<tr><td class="option-group" colspan="2">
<kbd><span class="option">-f <var>PROCESS_FILTER</var></span>, <span class="option">--process-filter <var>PROCESS_FILTER</var></span></kbd></td>
</tr>
<tr><td>&nbsp;</td><td>set the process filter patern (regular expression)</td></tr>
<tr><td class="option-group" colspan="2">
<kbd><span class="option">--process-short-name</span></kbd></td>
</tr>
<tr><td>&nbsp;</td><td>force short name for processes name</td></tr>
<tr><td class="option-group">
<kbd><span class="option">-b</span>, <span class="option">--byte</span></kbd></td>
<td>display network rate in byte per second</td></tr>
<tr><td class="option-group"> <tr><td class="option-group">
<kbd><span class="option">-1</span>, <span class="option">--percpu</span></kbd></td> <kbd><span class="option">-1</span>, <span class="option">--percpu</span></kbd></td>
<td>start Glances in per CPU mode</td></tr> <td>start Glances in per CPU mode</td></tr>
<tr><td class="option-group">
<kbd><span class="option">--theme-white</span></kbd></td>
<td>optimize display for white background</td></tr>
</tbody> </tbody>
</table> </table>
</blockquote>
</div> </div>
<div class="section" id="interactive-commands"> <div class="section" id="interactive-commands">
<h2><a class="toc-backref" href="#id12">Interactive Commands</a></h2> <h2><a class="toc-backref" href="#id12">Interactive Commands</a></h2>
<p>The following commands (key pressed) are supported while in Glances:</p> <p>The following commands (key pressed) are supported while in Glances:</p>
<dl class="docutils"> <dl class="docutils">
<dt><tt class="docutils literal">ENTER</tt></dt>
<dd><p class="first">Set the process filter
Filter is a regular expression pattern:</p>
<ul class="last simple">
<li>gnome: all processes starting with the gnome string</li>
<li>.*gnome.*: all processes containing the gnome string</li>
</ul>
</dd>
<dt><tt class="docutils literal">a</tt></dt> <dt><tt class="docutils literal">a</tt></dt>
<dd><p class="first">Sort process list automatically</p> <dd><p class="first">Sort process list automatically</p>
<ul class="last simple"> <ul class="last simple">
@ -357,8 +396,12 @@ file</td></tr>
<dd>Sort processes by CPU usage</dd> <dd>Sort processes by CPU usage</dd>
<dt><tt class="docutils literal">d</tt></dt> <dt><tt class="docutils literal">d</tt></dt>
<dd>Show/hide disk I/O stats</dd> <dd>Show/hide disk I/O stats</dd>
<dt><tt class="docutils literal">e</tt></dt>
<dd>Enable/disable top extended stats</dd>
<dt><tt class="docutils literal">f</tt></dt> <dt><tt class="docutils literal">f</tt></dt>
<dd>Show/hide file system stats</dd> <dd>Show/hide file system stats</dd>
<dt><tt class="docutils literal">g</tt></dt>
<dd>Generate hraphs for current history</dd>
<dt><tt class="docutils literal">h</tt></dt> <dt><tt class="docutils literal">h</tt></dt>
<dd>Show/hide the help screen</dd> <dd>Show/hide the help screen</dd>
<dt><tt class="docutils literal">i</tt></dt> <dt><tt class="docutils literal">i</tt></dt>
@ -373,6 +416,8 @@ file</td></tr>
<dd>Sort processes by name</dd> <dd>Sort processes by name</dd>
<dt><tt class="docutils literal">q</tt></dt> <dt><tt class="docutils literal">q</tt></dt>
<dd>Quit</dd> <dd>Quit</dd>
<dt><tt class="docutils literal">r</tt></dt>
<dd>Reset history</dd>
<dt><tt class="docutils literal">s</tt></dt> <dt><tt class="docutils literal">s</tt></dt>
<dd>Show/hide sensors stats</dd> <dd>Show/hide sensors stats</dd>
<dt><tt class="docutils literal">t</tt></dt> <dt><tt class="docutils literal">t</tt></dt>
@ -387,16 +432,17 @@ file</td></tr>
<dd>Show/hide processes stats</dd> <dd>Show/hide processes stats</dd>
<dt><tt class="docutils literal">1</tt></dt> <dt><tt class="docutils literal">1</tt></dt>
<dd>Switch between global CPU and per-CPU stats</dd> <dd>Switch between global CPU and per-CPU stats</dd>
<dt><tt class="docutils literal">/</tt></dt>
<dd>Switch between short name / command line (processes name)</dd>
</dl> </dl>
</div> </div>
</div> </div>
<div class="section" id="configuration"> <div class="section" id="configuration">
<h1><a class="toc-backref" href="#id13">Configuration</a></h1> <h1><a class="toc-backref" href="#id13">Configuration</a></h1>
<p><strong>Caution! Glances version 1.x configuration files are not compatible
with the version 2.x.</strong></p>
<p>No configuration file is mandatory to use Glances.</p> <p>No configuration file is mandatory to use Glances.</p>
<p>Furthermore a configuration file is needed to set up limits, disks or <p>Furthermore a configuration file is needed to set up limits, disks or
network interfaces to hide and/or monitored processes list.</p> network interfaces to hide and/or monitored processes list or to define
alias.</p>
<p>By default, the configuration file is under:</p> <p>By default, the configuration file is under:</p>
<table class="docutils field-list" frame="void" rules="none"> <table class="docutils field-list" frame="void" rules="none">
<col class="field-name" /> <col class="field-name" />
@ -417,6 +463,8 @@ C:\Documents and Settings\&lt;User&gt;\Application Data
<p>Since Windows Vista and newer versions:</p> <p>Since Windows Vista and newer versions:</p>
<pre class="literal-block"> <pre class="literal-block">
C:\Users\&lt;User&gt;\AppData\Roaming C:\Users\&lt;User&gt;\AppData\Roaming
or
%userprofile%\AppData\Roaming
</pre> </pre>
<p>You can override the default configuration, located in one of the above <p>You can override the default configuration, located in one of the above
directories on your system, except for Windows.</p> directories on your system, except for Windows.</p>
@ -429,10 +477,28 @@ cp /usr/share/doc/glances/glances.conf $XDG_CONFIG_HOME/glances/</span>
<p>On OS X, you should copy the configuration file to <p>On OS X, you should copy the configuration file to
<tt class="docutils literal">~/Library/Application Support/glances/</tt>.</p> <tt class="docutils literal">~/Library/Application Support/glances/</tt>.</p>
</div> </div>
<div class="section" id="logs-and-debug-mode">
<h1><a class="toc-backref" href="#id14">Logs and debug mode</a></h1>
<p>Glances logs all its internal messages to a log file. By default, only
INFO &amp; WARNING &amp; ERROR &amp;CRITICAL levels are logged, but DEBUG messages
can ben logged using the -d option on the command line.</p>
<p>By default, the configuration file is under:</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name" colspan="2">Linux, *BSD and OS X:</th></tr>
<tr class="field"><td>&nbsp;</td><td class="field-body"><tt class="docutils literal">/tmp/glances.conf</tt></td>
</tr>
<tr class="field"><th class="field-name">Windows:</th><td class="field-body"><tt class="docutils literal"><span class="pre">%APPDATA%\Local\temp\glances.conf</span></tt></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="anatomy-of-the-application"> <div class="section" id="anatomy-of-the-application">
<h1><a class="toc-backref" href="#id14">Anatomy Of The Application</a></h1> <h1><a class="toc-backref" href="#id15">Anatomy Of The Application</a></h1>
<div class="section" id="legend"> <div class="section" id="legend">
<h2><a class="toc-backref" href="#id15">Legend</a></h2> <h2><a class="toc-backref" href="#id16">Legend</a></h2>
<div class="line-block"> <div class="line-block">
<div class="line"><tt class="docutils literal">GREEN</tt> stat counter is <tt class="docutils literal">&quot;OK&quot;</tt></div> <div class="line"><tt class="docutils literal">GREEN</tt> stat counter is <tt class="docutils literal">&quot;OK&quot;</tt></div>
<div class="line"><tt class="docutils literal">BLUE</tt> stat counter is <tt class="docutils literal">&quot;CAREFUL&quot;</tt></div> <div class="line"><tt class="docutils literal">BLUE</tt> stat counter is <tt class="docutils literal">&quot;CAREFUL&quot;</tt></div>
@ -443,7 +509,7 @@ cp /usr/share/doc/glances/glances.conf $XDG_CONFIG_HOME/glances/</span>
view.</p> view.</p>
</div> </div>
<div class="section" id="header"> <div class="section" id="header">
<h2><a class="toc-backref" href="#id16">Header</a></h2> <h2><a class="toc-backref" href="#id17">Header</a></h2>
<img alt="images/header.png" src="images/header.png" /> <img alt="images/header.png" src="images/header.png" />
<p>The header shows the hostname, OS name, release version, platform <p>The header shows the hostname, OS name, release version, platform
architecture and system uptime (on the upper right corner). architecture and system uptime (on the upper right corner).
@ -455,7 +521,7 @@ Additionally, on GNU/Linux, it also shows the kernel version.</p>
<img alt="images/disconnected.png" src="images/disconnected.png" /> <img alt="images/disconnected.png" src="images/disconnected.png" />
</div> </div>
<div class="section" id="cpu"> <div class="section" id="cpu">
<h2><a class="toc-backref" href="#id17">CPU</a></h2> <h2><a class="toc-backref" href="#id18">CPU</a></h2>
<p>Short view:</p> <p>Short view:</p>
<img alt="images/cpu.png" src="images/cpu.png" /> <img alt="images/cpu.png" src="images/cpu.png" />
<p>If enough horizontal space is available, extended CPU information are <p>If enough horizontal space is available, extended CPU information are
@ -476,7 +542,7 @@ time. The total CPU usage is displayed on the first line.</p>
the <tt class="docutils literal">[cpu]</tt> and/or <tt class="docutils literal">[percpu]</tt> sections.</p> the <tt class="docutils literal">[cpu]</tt> and/or <tt class="docutils literal">[percpu]</tt> sections.</p>
</div> </div>
<div class="section" id="load"> <div class="section" id="load">
<h2><a class="toc-backref" href="#id18">Load</a></h2> <h2><a class="toc-backref" href="#id19">Load</a></h2>
<img alt="images/load.png" src="images/load.png" /> <img alt="images/load.png" src="images/load.png" />
<p>On the <em>No Sheep</em> blog, <em>Zachary Tirrell</em> defines the load average <a class="footnote-reference" href="#id3" id="id1">[1]</a>:</p> <p>On the <em>No Sheep</em> blog, <em>Zachary Tirrell</em> defines the load average <a class="footnote-reference" href="#id3" id="id1">[1]</a>:</p>
<blockquote> <blockquote>
@ -496,7 +562,7 @@ The first line also displays the number of CPU core.</p>
the <tt class="docutils literal">[load]</tt> section.</p> the <tt class="docutils literal">[load]</tt> section.</p>
</div> </div>
<div class="section" id="memory"> <div class="section" id="memory">
<h2><a class="toc-backref" href="#id19">Memory</a></h2> <h2><a class="toc-backref" href="#id20">Memory</a></h2>
<p>Glances uses two columns: one for the <tt class="docutils literal">RAM</tt> and one for the <tt class="docutils literal">SWAP</tt>.</p> <p>Glances uses two columns: one for the <tt class="docutils literal">RAM</tt> and one for the <tt class="docutils literal">SWAP</tt>.</p>
<img alt="images/mem.png" src="images/mem.png" /> <img alt="images/mem.png" src="images/mem.png" />
<p>If enough space is available, Glances displays extended information for <p>If enough space is available, Glances displays extended information for
@ -513,7 +579,7 @@ the <tt class="docutils literal">RAM</tt>:</p>
the <tt class="docutils literal">[memory]</tt> and/or <tt class="docutils literal">[memswap]</tt> sections.</p> the <tt class="docutils literal">[memory]</tt> and/or <tt class="docutils literal">[memswap]</tt> sections.</p>
</div> </div>
<div class="section" id="network"> <div class="section" id="network">
<h2><a class="toc-backref" href="#id20">Network</a></h2> <h2><a class="toc-backref" href="#id21">Network</a></h2>
<img alt="images/network.png" src="images/network.png" /> <img alt="images/network.png" src="images/network.png" />
<p>Glances displays the network interface bit rate. The unit is adapted <p>Glances displays the network interface bit rate. The unit is adapted
dynamically (bits per second, kbits per second, Mbits per second, etc).</p> dynamically (bits per second, kbits per second, Mbits per second, etc).</p>
@ -521,18 +587,18 @@ dynamically (bits per second, kbits per second, Mbits per second, etc).</p>
(see sample in the configuration file).</p> (see sample in the configuration file).</p>
<p><em>Note</em>: it is possibile to define a list of network interfaces to hide <p><em>Note</em>: it is possibile to define a list of network interfaces to hide
and per-interface limit values in the <tt class="docutils literal">[network]</tt> section of the and per-interface limit values in the <tt class="docutils literal">[network]</tt> section of the
configuration file.</p> configuration file and aliases for interface name.</p>
</div> </div>
<div class="section" id="disk-i-o"> <div class="section" id="disk-i-o">
<h2><a class="toc-backref" href="#id21">Disk I/O</a></h2> <h2><a class="toc-backref" href="#id22">Disk I/O</a></h2>
<img alt="images/diskio.png" src="images/diskio.png" /> <img alt="images/diskio.png" src="images/diskio.png" />
<p>Glances displays the disk I/O throughput. The unit is adapted dynamically.</p> <p>Glances displays the disk I/O throughput. The unit is adapted dynamically.</p>
<p>There is no alert on this information.</p> <p>There is no alert on this information.</p>
<p><em>Note</em>: it is possible to define a list of disks to hide under the <p><em>Note</em>: it is possible to define a list of disks to hide under the
<tt class="docutils literal">[diskio]</tt> section in the configuration file.</p> <tt class="docutils literal">[diskio]</tt> section in the configuration file and aliases for disk name.</p>
</div> </div>
<div class="section" id="file-system"> <div class="section" id="file-system">
<h2><a class="toc-backref" href="#id22">File System</a></h2> <h2><a class="toc-backref" href="#id23">File System</a></h2>
<img alt="images/fs.png" src="images/fs.png" /> <img alt="images/fs.png" src="images/fs.png" />
<p>Glances displays the used and total file system disk space. The unit is <p>Glances displays the used and total file system disk space. The unit is
adapted dynamically.</p> adapted dynamically.</p>
@ -547,7 +613,7 @@ adapted dynamically.</p>
the <tt class="docutils literal">[filesystem]</tt> section.</p> the <tt class="docutils literal">[filesystem]</tt> section.</p>
</div> </div>
<div class="section" id="sensors"> <div class="section" id="sensors">
<h2><a class="toc-backref" href="#id23">Sensors</a></h2> <h2><a class="toc-backref" href="#id24">Sensors</a></h2>
<p>Glances can displays the sensors information using <cite>lm-sensors</cite>, <p>Glances can displays the sensors information using <cite>lm-sensors</cite>,
<cite>hddtemp</cite> and <cite>batinfo</cite> <a class="footnote-reference" href="#id4" id="id2">[2]</a>.</p> <cite>hddtemp</cite> and <cite>batinfo</cite> <a class="footnote-reference" href="#id4" id="id2">[2]</a>.</p>
<p>All of the above libraries are available only on Linux.</p> <p>All of the above libraries are available only on Linux.</p>
@ -555,11 +621,11 @@ the <tt class="docutils literal">[filesystem]</tt> section.</p>
temperature only.</p> temperature only.</p>
<img alt="images/sensors.png" src="images/sensors.png" /> <img alt="images/sensors.png" src="images/sensors.png" />
<p>There is no alert on this information.</p> <p>There is no alert on this information.</p>
<p><em>Note</em>: limit values can be overwritten in the configuration file under <p><em>Note</em>: limit values and sensors alias names can be defined in the configuration
the <tt class="docutils literal">[sensors]</tt> section.</p> file under the <tt class="docutils literal">[sensors]</tt> section.</p>
</div> </div>
<div class="section" id="processes-list"> <div class="section" id="processes-list">
<h2><a class="toc-backref" href="#id24">Processes List</a></h2> <h2><a class="toc-backref" href="#id25">Processes List</a></h2>
<p>Compact view:</p> <p>Compact view:</p>
<img alt="images/processlist.png" src="images/processlist.png" /> <img alt="images/processlist.png" src="images/processlist.png" />
<p>Full view:</p> <p>Full view:</p>
@ -612,7 +678,8 @@ automatically sorted by:</p>
<dt><tt class="docutils literal">IOW/s</tt></dt> <dt><tt class="docutils literal">IOW/s</tt></dt>
<dd>Per process I/O write rate (in Byte/s)</dd> <dd>Per process I/O write rate (in Byte/s)</dd>
<dt><tt class="docutils literal">COMMAND</tt></dt> <dt><tt class="docutils literal">COMMAND</tt></dt>
<dd>Process command line (process name is highlighted)</dd> <dd>Process command line
User cans switch to the process name by pressing on the <tt class="docutils literal">/</tt> key</dd>
</dl> </dl>
<p>Process status legend:</p> <p>Process status legend:</p>
<dl class="docutils"> <dl class="docutils">
@ -627,11 +694,20 @@ automatically sorted by:</p>
<dt><tt class="docutils literal">Z</tt></dt> <dt><tt class="docutils literal">Z</tt></dt>
<dd>Zombie</dd> <dd>Zombie</dd>
</dl> </dl>
<p>In standalone mode, additionals informations are provided for the top process:</p>
<img alt="images/processlist-top.png" src="images/processlist-top.png" />
<ul class="simple">
<li>CPU affinity (number of cores used by the process)</li>
<li>Extended memory information (swap, shared, text, lib, data and dirty on Linux)</li>
<li>Openned threads, files and network sessions (TCP and UDP)</li>
<li>IO nice level</li>
</ul>
<p>The extended stats feature could be disabled using the --disable-process-extended option (command line) or the <tt class="docutils literal">e</tt> key (curses interface).</p>
<p><em>Note</em>: limit values can be overwritten in the configuration file under <p><em>Note</em>: limit values can be overwritten in the configuration file under
the <tt class="docutils literal">[process]</tt> section.</p> the <tt class="docutils literal">[process]</tt> section.</p>
</div> </div>
<div class="section" id="monitored-processes-list"> <div class="section" id="monitored-processes-list">
<h2><a class="toc-backref" href="#id25">Monitored Processes List</a></h2> <h2><a class="toc-backref" href="#id26">Monitored Processes List</a></h2>
<p>The monitored processes list allows user, through the configuration file, <p>The monitored processes list allows user, through the configuration file,
to group processes and quickly show if the number of running processes is to group processes and quickly show if the number of running processes is
not good.</p> not good.</p>
@ -683,7 +759,7 @@ get the JSON representation of the monitored processes list.</p>
</div> </div>
</div> </div>
<div class="section" id="logs"> <div class="section" id="logs">
<h2><a class="toc-backref" href="#id26">Logs</a></h2> <h2><a class="toc-backref" href="#id27">Logs</a></h2>
<img alt="images/logs.png" src="images/logs.png" /> <img alt="images/logs.png" src="images/logs.png" />
<p>A log messages list is displayed in the bottom of the screen if (and <p>A log messages list is displayed in the bottom of the screen if (and
only if):</p> only if):</p>
@ -703,7 +779,7 @@ processes list alerts</li>
</div> </div>
</div> </div>
<div class="section" id="other-outputs"> <div class="section" id="other-outputs">
<h1><a class="toc-backref" href="#id27">Other Outputs</a></h1> <h1><a class="toc-backref" href="#id28">Other Outputs</a></h1>
<p>It is possible to export statistics to CSV file.</p> <p>It is possible to export statistics to CSV file.</p>
<pre class="code console literal-block"> <pre class="code console literal-block">
<span class="generic prompt">$</span> glances --output-csv /tmp/glances.csv <span class="generic prompt">$</span> glances --output-csv /tmp/glances.csv
@ -714,14 +790,18 @@ processes list alerts</li>
<li>Stats (comma separated)</li> <li>Stats (comma separated)</li>
</ul> </ul>
</div> </div>
<div class="section" id="api-documentation"> <div class="section" id="apis-documentations">
<h1><a class="toc-backref" href="#id28">API Documentation</a></h1> <h1><a class="toc-backref" href="#id29">APIs Documentations</a></h1>
<p>Glances uses a <a class="reference external" href="http://docs.python.org/2/library/simplexmlrpcserver.html">XML-RPC server</a> and can be used by another client software.</p> <p>Glances includes a <a class="reference external" href="http://docs.python.org/2/library/simplexmlrpcserver.html">XML-RPC server</a> and a <a class="reference external" href="http://jsonapi.org/">RESTFULL-JSON</a> API which and can be used by another client software.</p>
<p>API documentation is available at <p>APIs documentations are available at:</p>
<a class="reference external" href="https://github.com/nicolargo/glances/wiki/The-Glances-2.x-API-How-to">https://github.com/nicolargo/glances/wiki/The-Glances-2.x-API-How-to</a>.</p> <ul class="simple">
<li>XML-RPC: <a class="reference external" href="https://github.com/nicolargo/glances/wiki/The-Glances-2.x-API-How-to">https://github.com/nicolargo/glances/wiki/The-Glances-2.x-API-How-to</a></li>
<li>RESTFULL-JSON: <a class="reference external" href="https://github.com/nicolargo/glances/wiki/The-Glances-RESTFULL-JSON-API">https://github.com/nicolargo/glances/wiki/The-Glances-RESTFULL-JSON-API</a></li>
</ul>
</div> </div>
<div class="section" id="support"> <div class="section" id="support">
<h1><a class="toc-backref" href="#id29">Support</a></h1> <h1><a class="toc-backref" href="#id30">Support</a></h1>
<p>To post a question about Glances use case, please post it to the offical Q&amp;A <a class="reference external" href="https://groups.google.com/forum/?hl=en#!forum/glances-users">forum</a>.</p>
<p>To report a bug or a feature request use the bug tracking system at <p>To report a bug or a feature request use the bug tracking system at
<a class="reference external" href="https://github.com/nicolargo/glances/issues">https://github.com/nicolargo/glances/issues</a>.</p> <a class="reference external" href="https://github.com/nicolargo/glances/issues">https://github.com/nicolargo/glances/issues</a>.</p>
<p>Feel free to contribute !</p> <p>Feel free to contribute !</p>

View File

@ -175,6 +175,12 @@ Interactive Commands
The following commands (key pressed) are supported while in Glances: The following commands (key pressed) are supported while in Glances:
``ENTER``
Set the process filter
Filter is a regular expression pattern:
- gnome: all processes starting with the gnome string
- .*gnome.*: all processes containing the gnome string
``a`` ``a``
Sort process list automatically Sort process list automatically
@ -528,11 +534,15 @@ Process status legend:
In standalone mode, additionals informations are provided for the top process: In standalone mode, additionals informations are provided for the top process:
.. image:: images/processlist-top.png
* CPU affinity (number of cores used by the process) * CPU affinity (number of cores used by the process)
* Extended memory information (swap, shared, text, lib, data and dirty on Linux) * Extended memory information (swap, shared, text, lib, data and dirty on Linux)
* Openned threads, files and network sessions (TCP and UDP) * Openned threads, files and network sessions (TCP and UDP)
* IO nice level * IO nice level
The extended stats feature could be disabled using the --disable-process-extended option (command line) or the ``e`` key (curses interface).
*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.

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 389 KiB

After

Width:  |  Height:  |  Size: 427 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 208 KiB

After

Width:  |  Height:  |  Size: 182 KiB

View File

@ -20,7 +20,7 @@
"""Init the Glances software.""" """Init the Glances software."""
__appname__ = 'glances' __appname__ = 'glances'
__version__ = '2.1_RC12' __version__ = '2.1'
__author__ = 'Nicolas Hennion <nicolas@nicolargo.com>' __author__ = 'Nicolas Hennion <nicolas@nicolargo.com>'
__license__ = 'LGPL' __license__ = 'LGPL'

View File

@ -475,6 +475,8 @@ class GlancesCurses(object):
self.new_column() self.new_column()
self.new_line() self.new_line()
self.display_plugin(stats_processcount) self.display_plugin(stats_processcount)
if glances_processes.get_process_filter() == None and cs_status == 'None':
# Do not display stats monitor list if a filter exist
self.new_line() self.new_line()
self.display_plugin(stats_monitor) self.display_plugin(stats_monitor)
self.new_line() self.new_line()

View File

@ -1,4 +1,4 @@
.TH glances 1 "June, 2014" "version 2.0.1" "USER COMMANDS" .TH glances 1 "September, 2014" "version 2.1" "USER COMMANDS"
.SH NAME .SH NAME
glances \- A cross-platform curses-based system monitoring tool glances \- A cross-platform curses-based system monitoring tool
.SH SYNOPSIS .SH SYNOPSIS
@ -25,18 +25,18 @@ display the help and exit
.B \-V, \-\-version .B \-V, \-\-version
show program's version number and exit show program's version number and exit
.TP .TP
.B \-d, \-\-debug
Enable debug mode (log file is /tmp/glances.log)
.TP
.B \-b, \-\-byte .B \-b, \-\-byte
display network rate in byte per second [default: bit per second] display network rate in byte per second [default: bit per second]
.TP .TP
.B \-B BIND_ADDRESS, \-\-bind BIND_ADDRESS
bind server to the given IPv4/IPv6 address or hostname
.TP
.B \-c CLIENT, \-\-client CLIENT
connect to a Glances server by IPv4/IPv6 address or hostname
.TP
.B \-C CONF_FILE, \-\-config CONF_FILE .B \-C CONF_FILE, \-\-config CONF_FILE
path to the configuration file path to the configuration file
.TP .TP
.B \-\-enable-history
enable the history mode
.TP
.B \-\-disable-bold .B \-\-disable-bold
disable bold mode in the terminal disable bold mode in the terminal
.TP .TP
@ -58,20 +58,29 @@ disable sensors module
.B \-\-disable-process .B \-\-disable-process
disable process module disable process module
.TP .TP
.B \-\-disable-process-extended
disable extended stats on top process
.TP
.B \-\-disable-log .B \-\-disable-log
disable log module disable log module
.TP .TP
.B \-\-output-csv OUTPUT_CSV .B \-\-output-csv OUTPUT_CSV
export stats to a CSV file export stats to a CSV file
.TP .TP
.B \-s, \-\-server
run Glances in server mode
.TP
.B \-c CLIENT, \-\-client CLIENT
connect to a Glances server by IPv4/IPv6 address or hostname
.TP
.B \-p PORT, \-\-port PORT .B \-p PORT, \-\-port PORT
define the client/server TCP port [default: 61209] define the client/server TCP port [default: 61209]
.TP .TP
.B \-\-password .B \-\-password
define a client/server password from the prompt or file define a client/server password from the prompt or file
.TP .TP
.B \-s, \-\-server .B \-B BIND_ADDRESS, \-\-bind BIND_ADDRESS
run Glances in server mode bind server to the given IPv4/IPv6 address or hostname
.TP .TP
.B \-\-snmp-community SNMP_COMMUNITY .B \-\-snmp-community SNMP_COMMUNITY
SNMP community SNMP community
@ -88,6 +97,9 @@ SNMP username (only for SNMPv3)
.B \-\-snmp-auth SNMP_AUTH .B \-\-snmp-auth SNMP_AUTH
SNMP authentication key (only for SNMPv3) SNMP authentication key (only for SNMPv3)
.TP .TP
.B \-\-snmp-force
Force the SNMP mode (do not try Glances server)
.TP
.B \-t TIME, \-\-time TIME .B \-t TIME, \-\-time TIME
set refresh time in seconds [default: 3 sec] set refresh time in seconds [default: 3 sec]
.TP .TP
@ -96,9 +108,18 @@ run Glances in Web server mode
.TP .TP
.B \-1, \-\-percpu .B \-1, \-\-percpu
start Glances in per CPU mode start Glances in per CPU mode
.TP
.B \-1, \-\-process-short-name
Force short name for processes name
.TP
.B \-1, \-\-theme-white
Optimize display for white background
.SH INTERACTIVE COMMANDS .SH INTERACTIVE COMMANDS
You can use the following keys while in Glances: You can use the following keys while in Glances:
.TP .TP
.B ENTER
Set the process filter patern (as a regular expression)
.TP
.B a .B a
Sort process list automatically Sort process list automatically
.TP .TP
@ -111,8 +132,13 @@ Sort processes by CPU usage
.B d .B d
Show/hide disk I/O stats Show/hide disk I/O stats
.TP .TP
.B e
Enable/disable top extended stats
.TP
.B f .B f
Show/hide file system stats Show/hide file system stats
.B g
Generate graphs for current history
.TP .TP
.B h .B h
Show/hide the help screen Show/hide the help screen
@ -135,6 +161,9 @@ Sort processes by name
.B q .B q
Quit Quit
.TP .TP
.B r
Reset history
.TP
.B s .B s
Show/hide sensors stats Show/hide sensors stats
.TP .TP

View File

@ -6,7 +6,6 @@ import sys
from setuptools import setup from setuptools import setup
def get_data_files(): def get_data_files():
data_files = [ data_files = [
('share/doc/glances', ['AUTHORS', 'COPYING', 'NEWS', 'README.rst', ('share/doc/glances', ['AUTHORS', 'COPYING', 'NEWS', 'README.rst',
@ -30,7 +29,6 @@ def get_data_files():
return data_files return data_files
def get_requires(): def get_requires():
requires = ['psutil>=2.0.0'] requires = ['psutil>=2.0.0']
if sys.platform.startswith('win'): if sys.platform.startswith('win'):
@ -42,13 +40,13 @@ def get_requires():
setup( setup(
name='Glances', name='Glances',
version='2.0.1', version='2.1',
description="A cross-platform curses-based monitoring tool", description="A cross-platform curses-based monitoring tool",
long_description=open('README.rst').read(), long_description=open('README.rst').read(),
author='Nicolas Hennion', author='Nicolas Hennion',
author_email='nicolas@nicolargo.com', author_email='nicolas@nicolargo.com',
url='https://github.com/nicolargo/glances', url='https://github.com/nicolargo/glances',
# download_url='https://s3.amazonaws.com/glances/glances-2.0.1.tar.gz', # download_url='https://s3.amazonaws.com/glances/glances-2.1.tar.gz',
license="LGPL", license="LGPL",
keywords="cli curses monitoring system", keywords="cli curses monitoring system",
install_requires=get_requires(), install_requires=get_requires(),