diff options
author | Joel Diaz <jdiaz@redhat.com> | 2015-11-02 11:06:39 -0500 |
---|---|---|
committer | Joel Diaz <jdiaz@redhat.com> | 2015-11-02 12:36:55 -0500 |
commit | 44ea44a3738f961222d5656e965923ef847b1bec (patch) | |
tree | 25a442d281f2c2c9fa9684826513400e5df0ea1c /roles/os_zabbix | |
parent | 01ebae72262cdc978a1d7eb248d52a3260c18972 (diff) | |
download | openshift-44ea44a3738f961222d5656e965923ef847b1bec.tar.gz openshift-44ea44a3738f961222d5656e965923ef847b1bec.tar.bz2 openshift-44ea44a3738f961222d5656e965923ef847b1bec.tar.xz openshift-44ea44a3738f961222d5656e965923ef847b1bec.zip |
get zabbix ready to start tracking status of pcp
Diffstat (limited to 'roles/os_zabbix')
-rw-r--r-- | roles/os_zabbix/tasks/main.yml | 9 | ||||
-rw-r--r-- | roles/os_zabbix/vars/template_performance_copilot.yml | 14 |
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 |