summaryrefslogtreecommitdiffstats
path: root/docs/aoa
diff options
context:
space:
mode:
authornicolargo <nicolas@nicolargo.com>2022-09-25 10:13:57 +0200
committernicolargo <nicolas@nicolargo.com>2022-09-25 10:13:57 +0200
commit28c65892809cfa75891a22e73c8ff53467892aa6 (patch)
treeb7475298ee3ec9851f9a1ee2ff15a7df3b13ab8c /docs/aoa
parent068a7daac91bd24cff29bca59a8ea3238be4bc41 (diff)
Correct issue with the regexp filter (use fullmatch instead of match)
Diffstat (limited to 'docs/aoa')
-rw-r--r--docs/aoa/actions.rst13
-rw-r--r--docs/aoa/fs.rst2
2 files changed, 8 insertions, 7 deletions
diff --git a/docs/aoa/actions.rst b/docs/aoa/actions.rst
index 3ee6779e..aaa4fc64 100644
--- a/docs/aoa/actions.rst
+++ b/docs/aoa/actions.rst
@@ -16,7 +16,7 @@ then add the ``_action`` line to the Glances configuration file:
critical_action=python /path/to/foo.py
All the stats are available in the command line through the use of the
-`{{mustache}}`_ syntax. `Chevron`_ is required to render the mustache's template syntax.
+`Mustache`_ syntax. `Chevron`_ is required to render the mustache's template syntax.
Another example would be to create a log file
containing used vs total disk space if a space trigger warning is
@@ -27,11 +27,11 @@ reached:
[fs]
warning=70
warning_action=echo {{mnt_point}} {{used}}/{{size}} > /tmp/fs.alert
-
-A last example would be to create a log file containing the total user disk
-space usage for a device and notify by email each time a space trigger
+
+A last example would be to create a log file containing the total user disk
+space usage for a device and notify by email each time a space trigger
critical is reached:
-
+
.. code-block:: ini
[fs]
@@ -61,6 +61,7 @@ Within ``/etc/glances/actions.d/fs-critical.py``:
subprocess.call(['mail', '-s', 'CRITICAL: disk usage above 90%', '-r', 'postmaster@example.com', 'glances@example.com'], stdin=ps.stdout)
.. note::
+
You can use all the stats for the current plugin. See
https://github.com/nicolargo/glances/wiki/The-Glances-RESTFULL-JSON-API
for the stats list.
@@ -75,5 +76,5 @@ use with caution:
critical=5.0
critical_action_repeat=/home/myhome/bin/bipper.sh
-.. _{{mustache}}: https://mustache.github.io/
+.. _Mustache: https://mustache.github.io/
.. _Chevron: https://github.com/noahmorrison/chevron
diff --git a/docs/aoa/fs.rst b/docs/aoa/fs.rst
index 1b3b7155..8123bf1d 100644
--- a/docs/aoa/fs.rst
+++ b/docs/aoa/fs.rst
@@ -46,7 +46,7 @@ To hide all mount points starting with /boot and /snap:
Filtering are also applied on device name (Glances 3.1.4 or higher).
-It is also possible to configure a white list of devices to display:
+It is also possible to configure a white list of devices to display.
Example to only show /dev/sdb mount points:
.. code-block:: ini