15 lines
535 B
Plaintext
15 lines
535 B
Plaintext
|
# This file was generated by Ansible.
|
||
|
# Any changes made to this file will be lost.
|
||
|
|
||
|
{% for i in monit_filesystems %}
|
||
|
check filesystem {{ i.name }} with path {{ i.path }}
|
||
|
{% for w in i.when %}
|
||
|
{% if w.alert == true %}
|
||
|
if space usage {{ w.usage }} for {{ w.tries }} times within {{ w.cycles }} cycles then alert
|
||
|
{% elif w.exec != '' %}
|
||
|
if space usage {{ w.usage }} for {{ w.tries }} times within {{ w.cycles }} cycles then exec {{ w.exec }}
|
||
|
else if succeeded then exec {{ w.exec }}
|
||
|
{% endif %}
|
||
|
{% endfor %}
|
||
|
{% endfor %}
|