summaryrefslogtreecommitdiffstats
path: root/roles/os_zabbix
diff options
context:
space:
mode:
authorSten Turpin <sten@redhat.com>2015-10-08 14:20:37 -0500
committerSten Turpin <sten@redhat.com>2015-10-08 14:20:37 -0500
commit3766356b8d4349b187af5ca6b945c3f1efd0fc25 (patch)
treeaecc8af15661f4d7d9ffd022cfe1033fe388ef88 /roles/os_zabbix
parent3ffde7a596721b65ec82628b36fb53a69715a031 (diff)
downloadopenshift-3766356b8d4349b187af5ca6b945c3f1efd0fc25.tar.gz
openshift-3766356b8d4349b187af5ca6b945c3f1efd0fc25.tar.bz2
openshift-3766356b8d4349b187af5ca6b945c3f1efd0fc25.tar.xz
openshift-3766356b8d4349b187af5ca6b945c3f1efd0fc25.zip
added items + triggers for ovs tests
Diffstat (limited to 'roles/os_zabbix')
-rw-r--r--roles/os_zabbix/vars/template_openshift_master.yml22
1 files changed, 22 insertions, 0 deletions
diff --git a/roles/os_zabbix/vars/template_openshift_master.yml b/roles/os_zabbix/vars/template_openshift_master.yml
index 4ae918ec6..a49c7581a 100644
--- a/roles/os_zabbix/vars/template_openshift_master.yml
+++ b/roles/os_zabbix/vars/template_openshift_master.yml
@@ -25,6 +25,18 @@ g_template_openshift_master:
applications:
- Openshift Master
+ - key: openshift.master.ovs.ports.count
+ description: Shows number of OVS ports defined
+ type: int
+ applications:
+ - Openshift Master
+
+ - key: openshift.master.ovs.pids.count
+ description: Shows number of ovs process ids running
+ type: int
+ applications:
+ - Openshift Master
+
ztriggers:
- name: 'Application creation has failed on {HOST.NAME}'
expression: '{Template Openshift Master:create_app.last(#1)}=1 and {Template Openshift Master:create_app.last(#2)}=1'
@@ -46,3 +58,13 @@ g_template_openshift_master:
url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/openshift_master.asciidoc'
priority: info
+ - name: 'OVS may not be running on {HOST.NAME}'
+ expression: '{Template Openshift Master:openshift.master.ovs.pids.count.last()}!=4'
+ url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/openshift_master.asciidoc'
+ priority: high
+
+ - name: 'Number of OVS ports is 0 on {HOST.NAME}'
+ expression: '{Template Openshift Master:openshift.master.ovs.ports.count.last()}=0'
+ url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/openshift_master.asciidoc'
+ priority: high
+