Skip to content
Snippets Groups Projects
Commit e4e0966d authored by jurgenhaas's avatar jurgenhaas
Browse files

Reduce frequency of health checks

parent d3e82b55
No related branches found
No related tags found
No related merge requests found
......@@ -109,6 +109,9 @@ redirect: no
{% if item.redirect|default(false) %}
redirect: yes
{% endif %}
{% if item.interval is defined %}
update_every: {{ item.interval }}
{% endif %}
{% if item.timeout is defined %}
timeout: {{ item.timeout }}
{% endif %}
......@@ -128,6 +131,9 @@ redirect: no
{% if site.uptime.pollerParams|default(false) and site.uptime.pollerParams.body|default(false) %}
regex: {{ site.uptime.pollerParams.body|regex_escape() }}
{% endif %}
{% if site.uptime.interval is defined %}
update_every: {{ site.uptime.interval }}
{% endif %}
{% if site.uptime.timeout|default(false) %}
timeout: {{ site.uptime.timeout }}
{% endif %}
......@@ -147,6 +153,7 @@ redirect: no
{% if site.uptime.pollerParams|default(false) and site.uptime.pollerParams.body|default(false) %}
regex: {{ site.uptime.pollerParams.body|regex_escape() }}
{% endif %}
update_every: 5
{% if site.uptime.timeout|default(false) %}
timeout: {{ site.uptime.timeout }}
{% endif %}
......@@ -162,5 +169,6 @@ redirect: no
header:
Authorization: Basic {{ (site.ocs.username + ':' + site.ocs.password) | b64encode }}
regex: {{ '"status":"ok"'|regex_escape() }}
update_every: 1{{ loop.index }}
{% endif %}
{% endfor %}
update_every: 5
local:
name : "local"
url : "http://localhost/fpm-status.php?full&json"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment