summaryrefslogtreecommitdiffstats
path: root/roles/lib_zabbix
diff options
context:
space:
mode:
authorJoel Diaz <jdiaz@redhat.com>2016-02-24 15:37:24 -0500
committerJoel Diaz <jdiaz@redhat.com>2016-02-24 15:37:24 -0500
commit72d7e9478812655d6034edcf7e41bec4129fc70b (patch)
treee28ddb2fde46028357a8bcf789b758cc198ecbfa /roles/lib_zabbix
parentdcb8bfae310e313761e5fc9cc9103650b3bd4011 (diff)
parent51b33151b6265d6049b9b39cbb25b6a4522ef7e5 (diff)
downloadopenshift-72d7e9478812655d6034edcf7e41bec4129fc70b.tar.gz
openshift-72d7e9478812655d6034edcf7e41bec4129fc70b.tar.bz2
openshift-72d7e9478812655d6034edcf7e41bec4129fc70b.tar.xz
openshift-72d7e9478812655d6034edcf7e41bec4129fc70b.zip
Merge pull request #1467 from joelddiaz/remote-heal-action
remote heal action for OVS down
Diffstat (limited to 'roles/lib_zabbix')
-rw-r--r--roles/lib_zabbix/tasks/create_template.yml14
1 files changed, 14 insertions, 0 deletions
diff --git a/roles/lib_zabbix/tasks/create_template.yml b/roles/lib_zabbix/tasks/create_template.yml
index 61344357a..783249c3a 100644
--- a/roles/lib_zabbix/tasks/create_template.yml
+++ b/roles/lib_zabbix/tasks/create_template.yml
@@ -61,6 +61,20 @@
with_items: template.ztriggers
when: template.ztriggers is defined
+- name: Create Actions
+ zbx_action:
+ zbx_server: "{{ server }}"
+ zbx_user: "{{ user }}"
+ zbx_password: "{{ password }}"
+ state: "{{ item.state | default('present', True) }}"
+ name: "{{ item.name }}"
+ status: "{{ item.status | default('enabled', True) }}"
+ escalation_time: "{{ item.escalation_time }}"
+ conditions_filter: "{{ item.conditions_filter }}"
+ operations: "{{ item.operations }}"
+ with_items: template.zactions
+ when: template.zactions is defined
+
- name: Create Discoveryrules
zbx_discoveryrule:
zbx_server: "{{ server }}"