summaryrefslogtreecommitdiffstats
path: root/roles/lib_zabbix/tasks
diff options
context:
space:
mode:
authorMatt Woodson <mwoodson@redhat.com>2015-09-25 12:05:03 -0400
committerMatt Woodson <mwoodson@redhat.com>2015-09-25 12:05:03 -0400
commit19f91f7b7844ec3c89d8ee0e6a6c08655e897266 (patch)
tree0317414fdd391ad652413280aff86017d6a087c4 /roles/lib_zabbix/tasks
parent34465b6edd45ea34b98563cd772cb28eb2265bde (diff)
downloadopenshift-19f91f7b7844ec3c89d8ee0e6a6c08655e897266.tar.gz
openshift-19f91f7b7844ec3c89d8ee0e6a6c08655e897266.tar.bz2
openshift-19f91f7b7844ec3c89d8ee0e6a6c08655e897266.tar.xz
openshift-19f91f7b7844ec3c89d8ee0e6a6c08655e897266.zip
added support for dynaic keys and items. added dynamic filesystems to zabbix
Diffstat (limited to 'roles/lib_zabbix/tasks')
-rw-r--r--roles/lib_zabbix/tasks/create_template.yml28
1 files changed, 28 insertions, 0 deletions
diff --git a/roles/lib_zabbix/tasks/create_template.yml b/roles/lib_zabbix/tasks/create_template.yml
index fd0cdd46f..b4821bdc7 100644
--- a/roles/lib_zabbix/tasks/create_template.yml
+++ b/roles/lib_zabbix/tasks/create_template.yml
@@ -52,3 +52,31 @@
url: "{{ item.url | default(None, True) }}"
with_items: template.ztriggers
when: template.ztriggers is defined
+
+- name: Create Discoveryrules
+ zbx_discoveryrule:
+ zbx_server: "{{ server }}"
+ zbx_user: "{{ user }}"
+ zbx_password: "{{ password }}"
+ name: "{{ item.name }}"
+ key: "{{ item.key }}"
+ lifetime: "{{ item.lifetime }}"
+ template_name: "{{ template.name }}"
+ description: "{{ item.description | default('', True) }}"
+ with_items: template.zdiscoveryrules
+ when: template.zdiscoveryrules is defined
+
+- name: Create Item Prototype
+ zbx_itemprototype:
+ zbx_server: "{{ server }}"
+ zbx_user: "{{ user }}"
+ zbx_password: "{{ password }}"
+ name: "{{ item.name }}"
+ key: "{{ item.key }}"
+ discoveryrule_key: "{{ item.discoveryrule_key }}"
+ value_type: "{{ item.value_type }}"
+ template_name: "{{ template.name }}"
+ applications: "{{ item.applications }}"
+ description: "{{ item.description | default('', True) }}"
+ with_items: template.zitemprototypes
+ when: template.zitemprototypes is defined