From b8269ed214e372d3fa2b16279ab2c3794159b31d Mon Sep 17 00:00:00 2001 From: Gabor Burges Date: Wed, 7 Oct 2015 12:41:02 +0200 Subject: [PATCH 1/2] Update template_openshift_master.yml --- roles/os_zabbix/vars/template_openshift_master.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/roles/os_zabbix/vars/template_openshift_master.yml b/roles/os_zabbix/vars/template_openshift_master.yml index c71e079100b..4210b025024 100644 --- a/roles/os_zabbix/vars/template_openshift_master.yml +++ b/roles/os_zabbix/vars/template_openshift_master.yml @@ -12,6 +12,12 @@ g_template_openshift_master: type: int applications: - Openshift Master + + key: openshift.master.project.count ++ description: Shows number of projects in a cluster ++ type: int ++ applications: ++ - Openshift Master ztriggers: - name: 'Application creation has failed on {HOST.NAME}' @@ -28,3 +34,8 @@ g_template_openshift_master: expression: '{Template Openshift Master:openshift.master.process.count.min(#3)}>1' url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/openshift_master.asciidoc' priority: high + + - name: 'Number of projects for Openshift Master on {HOST.NAME}' ++ expression: '{Template Openshift Master:openshift.master.project.count.last()}=0' ++ url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/openshift_master.asciidoc' ++ priority: info From 9f1fdce9024553e7a1d28e5cdfc3c904771095a7 Mon Sep 17 00:00:00 2001 From: Gabor Burges Date: Wed, 7 Oct 2015 12:46:35 +0200 Subject: [PATCH 2/2] Update template_openshift_master.yml --- roles/os_zabbix/vars/template_openshift_master.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/os_zabbix/vars/template_openshift_master.yml b/roles/os_zabbix/vars/template_openshift_master.yml index 4210b025024..3bfc166692f 100644 --- a/roles/os_zabbix/vars/template_openshift_master.yml +++ b/roles/os_zabbix/vars/template_openshift_master.yml @@ -13,7 +13,7 @@ g_template_openshift_master: applications: - Openshift Master - key: openshift.master.project.count + - key: openshift.master.project.count + description: Shows number of projects in a cluster + type: int + applications: