Update documentation

This commit is contained in:
Nicolargo 2015-01-02 23:23:47 +01:00
parent dfd2cf1c38
commit a0a3349e63
3 changed files with 26 additions and 3 deletions

View File

@ -70,6 +70,8 @@ critical=90
[fs]
# Default limits for free filesytem space in %
# Default values if not defined: 50/70/90
# It is also possible to define per mount point value
# Example: /_careful=40
careful=50
warning=70
critical=90

View File

@ -4,9 +4,9 @@ Glances
This manual describes *Glances* version 2.2.
Copyright © 2012-2014 Nicolas Hennion <nicolas@nicolargo.com>
Copyright © 2011-2015 Nicolas Hennion <nicolas@nicolargo.com>
December 2014
Junuary 2015
.. contents:: Table of Contents
@ -669,6 +669,26 @@ Each alert message displays the following information:
4. {min,avg,max} values or number of running processes for monitored
processes list alerts
Actions
-------
Glances can trigger actions on events.
By action, we mean all shell command line. For example, if you want to execute the foo.py script if the last 5 minutes load are critical then add the action line to the Glances configuration file:
[load]
critical=5.0
critical_action=python /path/to/foo.py
All the stats are usable in the command line by the use of the {{mustache}} syntax. Another example to create a log file containing used vs total disk space if a warning space trigger is reached:
[fs]
warning=70
warning_action=echo {{mnt_point}} {{used}}/{{size}} > /tmp/fs.alert
Note: You can use all the stats for the current plugin (see https://github.com/nicolargo/glances/wiki/The-Glances-2.x-API-How-to for the stats list)
Gateway to others services
==========================

View File

@ -67,7 +67,8 @@ setup(
'CHART': ['matplotlib'],
'BROWSER': ['zeroconf>=0.16', 'netifaces'],
'RAID': ['pymdstat'],
'EXPORT': ['influxdb', 'statsd']
'EXPORT': ['influxdb', 'statsd'],
'ACTION': ['pystache']
},
packages=['glances'],
include_package_data=True,