summaryrefslogtreecommitdiffstats
path: root/roles/os_zabbix
diff options
context:
space:
mode:
authorMax Whittingham <mwhittingham@redhat.com>2015-09-30 08:39:15 -0500
committerMax Whittingham <mwhittingham@redhat.com>2015-09-30 08:39:15 -0500
commite97fb3cb60863dc2733df71cdea3c2f3fb8ba76d (patch)
tree721918784265c29f773ba7dadd893ba9949a4df0 /roles/os_zabbix
parent7754d298916e3e5722b664acf489ed0662b47155 (diff)
downloadopenshift-e97fb3cb60863dc2733df71cdea3c2f3fb8ba76d.tar.gz
openshift-e97fb3cb60863dc2733df71cdea3c2f3fb8ba76d.tar.bz2
openshift-e97fb3cb60863dc2733df71cdea3c2f3fb8ba76d.tar.xz
openshift-e97fb3cb60863dc2733df71cdea3c2f3fb8ba76d.zip
Zabbix check and trigger for user count
Diffstat (limited to 'roles/os_zabbix')
-rw-r--r--roles/os_zabbix/vars/template_openshift_master.yml12
1 files changed, 12 insertions, 0 deletions
diff --git a/roles/os_zabbix/vars/template_openshift_master.yml b/roles/os_zabbix/vars/template_openshift_master.yml
index c71e07910..f82771d59 100644
--- a/roles/os_zabbix/vars/template_openshift_master.yml
+++ b/roles/os_zabbix/vars/template_openshift_master.yml
@@ -13,6 +13,12 @@ g_template_openshift_master:
applications:
- Openshift Master
+ - key: openshift.master.user.count
+ description: Shows number of users in a cluster
+ 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'
@@ -28,3 +34,9 @@ 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 users for Openshift Master on {HOST.NAME}'
+ expression: '{Template Openshift Master:openshift.master.user.count.last(,3)}>0'
+ url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/openshift_master.asciidoc'
+ priority: info
+