2016-03-02 15:29:19 +03:00
|
|
|
.. _folders:
|
|
|
|
|
|
|
|
Folders
|
|
|
|
=======
|
|
|
|
|
|
|
|
The folders plugin allows user, through the configuration file, to
|
|
|
|
monitor size of a predefined folders list.
|
|
|
|
|
|
|
|
.. image:: ../_static/folders.png
|
|
|
|
|
2016-03-29 12:29:13 +03:00
|
|
|
If the size cannot be computed, a ``'?'`` (non-existing folder) or a
|
|
|
|
``'!'`` (permission denied) is displayed.
|
2016-03-28 15:35:12 +03:00
|
|
|
|
2016-03-02 15:29:19 +03:00
|
|
|
Each item is defined by:
|
|
|
|
|
|
|
|
- ``path``: absolute path to monitor (mandatory)
|
|
|
|
- ``careful``: optional careful threshold (in MB)
|
|
|
|
- ``warning``: optional warning threshold (in MB)
|
|
|
|
- ``critical``: optional critical threshold (in MB)
|
2019-06-13 00:14:21 +03:00
|
|
|
- ``refresh``: interval in second between two refresh (default is 30 seconds)
|
2016-03-02 15:29:19 +03:00
|
|
|
|
|
|
|
Up to ``10`` items can be defined.
|
|
|
|
|
2019-06-13 00:14:21 +03:00
|
|
|
For example, if you want to monitor the ``/tmp`` folder every minute,
|
|
|
|
the following definition should do the job:
|
2016-03-02 15:29:19 +03:00
|
|
|
|
|
|
|
.. code-block:: ini
|
|
|
|
|
|
|
|
[folders]
|
|
|
|
folder_1_path=/tmp
|
|
|
|
folder_1_careful=2500
|
|
|
|
folder_1_warning=3000
|
|
|
|
folder_1_critical=3500
|
2019-06-13 00:14:21 +03:00
|
|
|
folder_1_refresh=60
|
2016-03-02 15:29:19 +03:00
|
|
|
|
|
|
|
In client/server mode, the list is defined on the ``server`` side.
|
|
|
|
|
|
|
|
.. warning::
|
2019-06-13 00:14:21 +03:00
|
|
|
Do **NOT** define folders containing lot of files and subfolders or use an
|
|
|
|
huge refresh time...
|