diff options
author | Kenny Woodson <kwoodson@redhat.com> | 2015-09-28 12:03:43 -0400 |
---|---|---|
committer | Kenny Woodson <kwoodson@redhat.com> | 2015-09-28 12:03:43 -0400 |
commit | 3a15b711e8d47e7365e361534533c28e234e87d3 (patch) | |
tree | 9ae8380f1bdf20627ebca997739c68d21b33cac9 /roles/lib_zabbix/tasks | |
parent | 30f055111898dc1743f73bd0f8a018a40e58cf6d (diff) | |
download | openshift-3a15b711e8d47e7365e361534533c28e234e87d3.tar.gz openshift-3a15b711e8d47e7365e361534533c28e234e87d3.tar.bz2 openshift-3a15b711e8d47e7365e361534533c28e234e87d3.tar.xz openshift-3a15b711e8d47e7365e361534533c28e234e87d3.zip |
Trigger prototype support
Diffstat (limited to 'roles/lib_zabbix/tasks')
-rw-r--r-- | roles/lib_zabbix/tasks/create_template.yml | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/roles/lib_zabbix/tasks/create_template.yml b/roles/lib_zabbix/tasks/create_template.yml index b4821bdc7..62259b680 100644 --- a/roles/lib_zabbix/tasks/create_template.yml +++ b/roles/lib_zabbix/tasks/create_template.yml @@ -66,7 +66,7 @@ with_items: template.zdiscoveryrules when: template.zdiscoveryrules is defined -- name: Create Item Prototype +- name: Create Item Prototypes zbx_itemprototype: zbx_server: "{{ server }}" zbx_user: "{{ user }}" @@ -80,3 +80,16 @@ description: "{{ item.description | default('', True) }}" with_items: template.zitemprototypes when: template.zitemprototypes is defined + +- name: Create Trigger Prototypes + zbx_triggerprototype: + zbx_server: "{{ server }}" + zbx_user: "{{ user }}" + zbx_password: "{{ password }}" + name: "{{ item.name }}" + expression: "{{ item.expression }}" + url: "{{ item.url | default('', True) }}" + priority: "{{ item.priority | default('average', True) }}" + description: "{{ item.description | default('', True) }}" + with_items: template.ztriggerprototypes + when: template.ztriggerprototypes is defined |