summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorKenny Woodson <kwoodson@redhat.com>2015-10-01 12:15:40 -0400
committerKenny Woodson <kwoodson@redhat.com>2015-10-01 12:15:40 -0400
commite2ad79c715ee494b28205fc4abd98a54e57e57e2 (patch)
treeb0875b6f80506ce772c6e4b4585815ef023d9433 /roles
parent6f5fff8a542d544916427ce625fe46ec31fa76d3 (diff)
parent2c37e6282bcd260119b654b23acdad3e6ca4340c (diff)
downloadopenshift-e2ad79c715ee494b28205fc4abd98a54e57e57e2.tar.gz
openshift-e2ad79c715ee494b28205fc4abd98a54e57e57e2.tar.bz2
openshift-e2ad79c715ee494b28205fc4abd98a54e57e57e2.tar.xz
openshift-e2ad79c715ee494b28205fc4abd98a54e57e57e2.zip
Merge pull request #643 from kwoodson/cputrig
Adding zabbix triggers for cpu idle
Diffstat (limited to 'roles')
-rw-r--r--roles/os_zabbix/vars/template_os_linux.yml15
1 files changed, 15 insertions, 0 deletions
diff --git a/roles/os_zabbix/vars/template_os_linux.yml b/roles/os_zabbix/vars/template_os_linux.yml
index 36c890da9..c81f39c58 100644
--- a/roles/os_zabbix/vars/template_os_linux.yml
+++ b/roles/os_zabbix/vars/template_os_linux.yml
@@ -259,3 +259,18 @@ g_template_os_linux:
url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/check_memory.asciidoc'
priority: warn
description: 'Alert on less than 30MegaBytes. This is 30 Million Bytes. 30000 KB x 1024'
+
+ # CPU Utilization #
+ - name: 'CPU idle less than 5% on {HOST.NAME}'
+ expression: '{Template OS Linux:kernel.all.cpu.idle.last()}<5 and {Template OS Linux:kernel.all.cpu.idle.last(#2)}<5'
+ url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/check_cpu_idle.asciidoc'
+ priority: high
+ description: 'CPU is less than 5% idle'
+
+ - name: 'CPU idle less than 10% on {HOST.NAME}'
+ expression: '{Template OS Linux:kernel.all.cpu.idle.last()}<10 and {Template OS Linux:kernel.all.cpu.idle.last(#2)}<10'
+ url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/check_cpu_idle.asciidoc'
+ priority: warn
+ description: 'CPU is less than 10% idle'
+ dependencies:
+ - 'CPU idle less than 5% on {HOST.NAME}'