summaryrefslogtreecommitdiffstats
path: root/roles/lib_zabbix
diff options
context:
space:
mode:
authorMatt Woodson <mwoodson@gmail.com>2015-11-24 16:25:05 -0500
committerMatt Woodson <mwoodson@gmail.com>2015-11-24 16:25:05 -0500
commite728f3aa7238afeddcc6dbf7d11cb5ea2a51c22f (patch)
treeb3d5215246e580a1c26440a855dd1b5ed1262ae7 /roles/lib_zabbix
parent89c20890323f2693fdc3174c4cd3d19e7addc817 (diff)
parentf2c27c2e8cf1dfd1d0e0f73f0a30a79435f33ecb (diff)
downloadopenshift-e728f3aa7238afeddcc6dbf7d11cb5ea2a51c22f.tar.gz
openshift-e728f3aa7238afeddcc6dbf7d11cb5ea2a51c22f.tar.bz2
openshift-e728f3aa7238afeddcc6dbf7d11cb5ea2a51c22f.tar.xz
openshift-e728f3aa7238afeddcc6dbf7d11cb5ea2a51c22f.zip
Merge pull request #977 from mwoodson/graphs
added graphs for openshift master and network in zabbix
Diffstat (limited to 'roles/lib_zabbix')
-rw-r--r--roles/lib_zabbix/tasks/create_template.yml24
1 files changed, 24 insertions, 0 deletions
diff --git a/roles/lib_zabbix/tasks/create_template.yml b/roles/lib_zabbix/tasks/create_template.yml
index 2992505bf..47749389e 100644
--- a/roles/lib_zabbix/tasks/create_template.yml
+++ b/roles/lib_zabbix/tasks/create_template.yml
@@ -105,3 +105,27 @@
description: "{{ item.description | default('', True) }}"
with_items: template.ztriggerprototypes
when: template.ztriggerprototypes is defined
+
+- name: Create Graphs
+ zbx_graph:
+ zbx_server: "{{ server }}"
+ zbx_user: "{{ user }}"
+ zbx_password: "{{ password }}"
+ name: "{{ item.name }}"
+ height: "{{ item.height }}"
+ width: "{{ item.width }}"
+ graph_items: "{{ item.graph_items }}"
+ with_items: template.zgraphs
+ when: template.zgraphs is defined
+
+- name: Create Graph Prototypes
+ zbx_graphprototype:
+ zbx_server: "{{ server }}"
+ zbx_user: "{{ user }}"
+ zbx_password: "{{ password }}"
+ name: "{{ item.name }}"
+ height: "{{ item.height }}"
+ width: "{{ item.width }}"
+ graph_items: "{{ item.graph_items }}"
+ with_items: template.zgraphprototypes
+ when: template.zgraphprototypes is defined