Commit 4083d5e5 authored by Jürgen Haas's avatar Jürgen Haas
Browse files

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

parent 1b12d939
......@@ -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 %}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment