summaryrefslogtreecommitdiffstats
path: root/roles/os_zabbix
diff options
context:
space:
mode:
authorJoel Diaz <jdiaz@redhat.com>2015-11-02 12:51:40 -0500
committerJoel Diaz <jdiaz@redhat.com>2015-11-02 12:51:40 -0500
commita4d5e59c413746cb1715b15a9e158be3f3a94a54 (patch)
treec76e4eedb5d1826b1254d57dcc71ca7c9e8f3eeb /roles/os_zabbix
parent719ab11adadbcd2b608bef09f11512d746debb4c (diff)
parent44ea44a3738f961222d5656e965923ef847b1bec (diff)
downloadopenshift-a4d5e59c413746cb1715b15a9e158be3f3a94a54.tar.gz
openshift-a4d5e59c413746cb1715b15a9e158be3f3a94a54.tar.bz2
openshift-a4d5e59c413746cb1715b15a9e158be3f3a94a54.tar.xz
openshift-a4d5e59c413746cb1715b15a9e158be3f3a94a54.zip
Merge pull request #785 from joelddiaz/pcp-zabbix-status
get zabbix ready to start tracking status of pcp
Diffstat (limited to 'roles/os_zabbix')
-rw-r--r--roles/os_zabbix/tasks/main.yml9
-rw-r--r--roles/os_zabbix/vars/template_performance_copilot.yml14
2 files changed, 23 insertions, 0 deletions
diff --git a/roles/os_zabbix/tasks/main.yml b/roles/os_zabbix/tasks/main.yml
index a503b24d7..82bf78b57 100644
--- a/roles/os_zabbix/tasks/main.yml
+++ b/roles/os_zabbix/tasks/main.yml
@@ -15,6 +15,7 @@
- include_vars: template_ops_tools.yml
- include_vars: template_app_zabbix_server.yml
- include_vars: template_app_zabbix_agent.yml
+- include_vars: template_performance_copilot.yml
- name: Include Template Heartbeat
include: ../../lib_zabbix/tasks/create_template.yml
@@ -79,3 +80,11 @@
server: "{{ ozb_server }}"
user: "{{ ozb_user }}"
password: "{{ ozb_password }}"
+
+- name: Include Template Performance Copilot
+ include: ../../lib_zabbix/tasks/create_template.yml
+ vars:
+ template: "{{ g_template_performance_copilot }}"
+ server: "{{ ozb_server }}"
+ user: "{{ ozb_user }}"
+ password: "{{ ozb_password }}"
diff --git a/roles/os_zabbix/vars/template_performance_copilot.yml b/roles/os_zabbix/vars/template_performance_copilot.yml
new file mode 100644
index 000000000..b62fa0228
--- /dev/null
+++ b/roles/os_zabbix/vars/template_performance_copilot.yml
@@ -0,0 +1,14 @@
+---
+g_template_performance_copilot:
+ name: Template Performance Copilot
+ zitems:
+ - key: pcp.ping
+ applications:
+ - Performance Copilot
+ value_type: int
+
+ ztriggers:
+ - name: 'pcp.ping failed on {HOST.NAME}'
+ expression: '{Template Performance Copilot:pcp.ping.max(#3)}<1'
+ url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/check_pcp_ping.asciidoc'
+ priority: average