diff --git a/templates/httpcheck.conf b/templates/httpcheck.conf index d53f3fbf185d883b807e372e9136f6de8a92a708..87bc1ac13ea8d1be6a18883ebfcaf7fb2658733b 100644 --- a/templates/httpcheck.conf +++ b/templates/httpcheck.conf @@ -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 %} diff --git a/templates/phpfpm.conf b/templates/phpfpm.conf index f30bd8e1eb9dfd2a9d4a75b49dd0e5afc9ddd298..763e711bb9fda52b2a9f0f5b4f2c9ce7aeef27b1 100644 --- a/templates/phpfpm.conf +++ b/templates/phpfpm.conf @@ -1,3 +1,5 @@ +update_every: 5 + local: name : "local" url : "http://localhost/fpm-status.php?full&json"