summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorMatt Woodson <mwoodson@gmail.com>2015-11-02 12:28:32 -0500
committerMatt Woodson <mwoodson@gmail.com>2015-11-02 12:28:32 -0500
commit63b19e964fcc09e60562fd253d725edcc2ec4aef (patch)
treeaaaa4997ba9da249ef09f2f509b4b1a25500993c /roles
parentc5a6928d8bffdc858ef94e99021ac1f5e3a03125 (diff)
parent4eb8cd34bef062b3b9e0f86d221f85d9c69bfcd3 (diff)
downloadopenshift-63b19e964fcc09e60562fd253d725edcc2ec4aef.tar.gz
openshift-63b19e964fcc09e60562fd253d725edcc2ec4aef.tar.bz2
openshift-63b19e964fcc09e60562fd253d725edcc2ec4aef.tar.xz
openshift-63b19e964fcc09e60562fd253d725edcc2ec4aef.zip
Merge pull request #786 from mwoodson/cpu_alert
changed the cpu alert to only alert if cpu idle more than 5x.
Diffstat (limited to 'roles')
-rw-r--r--roles/os_zabbix/vars/template_os_linux.yml6
1 files changed, 3 insertions, 3 deletions
diff --git a/roles/os_zabbix/vars/template_os_linux.yml b/roles/os_zabbix/vars/template_os_linux.yml
index 3ae1500bc..aeeec4b8d 100644
--- a/roles/os_zabbix/vars/template_os_linux.yml
+++ b/roles/os_zabbix/vars/template_os_linux.yml
@@ -246,15 +246,15 @@ g_template_os_linux:
# 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'
+ expression: '{Template OS Linux:kernel.all.cpu.idle.max(#5)}<5'
url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/check_cpu_idle.asciidoc'
priority: average
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'
+ expression: '{Template OS Linux:kernel.all.cpu.idle.max(#5)}<10'
url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/check_cpu_idle.asciidoc'
- priority: warn
+ priority: average
description: 'CPU is less than 10% idle'
dependencies:
- 'CPU idle less than 5% on {HOST.NAME}'