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

ansible-roles/nextcloud#12 Add OCS monitoring for NextCloud instances

parent c692ad66
No related branches found
No related tags found
No related merge requests found
......@@ -154,4 +154,13 @@ redirect: no
header: {{ site.uptime.header|to_json }}
{% endif %}
{% endif %}
{% if site.ocs is defined %}
{{ site.domain|to_uuid }}:
name: NextCloud OCS {{ site.id }}
url: {{ site.protocol|default('https') }}://{{ site.domain }}/ocs/v2.php/apps/serverinfo/api/v1/info?format=json
header:
Authorization: Basic {{ (site.ocs.username + ':' + site.ocs.password) | b64encode }}
regex: {{ '"status":"ok"'|regex_escape() }}
{% endif %}
{% endfor %}
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