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

ansible-inventories/arocom#2969 Add support optional custom alarms

parent 1b12d939
No related branches found
No related tags found
No related merge requests found
......@@ -29,7 +29,7 @@
chdir: /opt/{{ netdata_local_archive|default('netdata') }}
when: netdata_clone.changed or netdata_extract.changed
- name: Install Custom Alert Templates
- name: Install Alert Templates
template:
src: health.d/{{ item }}.conf
dest: /etc/netdata/health.d/my_{{ item }}.conf
......@@ -40,6 +40,14 @@
notify:
- Restart NetData
- name: Install Custom Alarms
template:
src: health.d/alarms.conf
dest: /etc/netdata/health.d/my_alarms.conf
when: netdata_custom_notifications is defined
notify:
- Restart NetData
- name: Check if this host has a claimed cloud ID
stat:
path: /var/lib/netdata/cloud.d/claimed_id
......
{% for alarm in netdata_custom_notifications|default([]) %}
{% for key in alarm %}
{{ key }}: {{ alarm[key] }}
{% endfor %}
{% 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