Module: check_mk
Branch: master
Commit: 1dd47500198b576b5271e0b2141bc481913f302e
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=1dd47500198b57…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Tue Jun 10 12:07:45 2014 +0200
CPU utilization: increased maximum value to 10000
---
.werks/935 | 11 +++++++++++
ChangeLog | 1 +
web/plugins/wato/check_parameters.py | 8 ++++----
3 files changed, 16 insertions(+), 4 deletions(-)
diff --git a/.werks/935 b/.werks/935
new file mode 100644
index 0000000..a816503
--- /dev/null
+++ b/.werks/935
@@ -0,0 +1,11 @@
+Title: CPU utilization: increased maximum value to 10000
+Level: 1
+Component: wato
+Version: 1.2.5i4
+Date: 1402394358
+Class: fix
+
+The maximum value for the CPU utilization in the WATO rules "State and count of
processes"
+and "Process inventory" was set to 101 percent. There were some instances where
this value was higher than this limit.
+For example if an application used multiple CPUs or the utilization value was calculated
for a group of processes.
+
diff --git a/ChangeLog b/ChangeLog
index ab84049..45919e8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -17,6 +17,7 @@
WATO:
* 0987 New button for updating DNS cache...
* 0813 FIX: LDAP: Improved slightly missleading logging of LDAP sync actions...
+ * 0935 FIX: CPU utilization: increased maximum value to 10000...
Reporting & Availability:
* 0985 Availability: display phases of freqent state changes as "chaos"...
diff --git a/web/plugins/wato/check_parameters.py b/web/plugins/wato/check_parameters.py
index cef70c8..1a49d28 100644
--- a/web/plugins/wato/check_parameters.py
+++ b/web/plugins/wato/check_parameters.py
@@ -378,8 +378,8 @@ register_rule(group + '/' + subgroup_inventory,
Tuple(
title = _("Levels on CPU utilization"),
elements = [
- Percentage(title = _("Warning if above"), default_value =
90),
- Percentage(title = _("Critical if above"), default_value =
98),
+ Percentage(title = _("Warning if above"), default_value =
90, maxvalue = 10000),
+ Percentage(title = _("Critical if above"), default_value =
98, maxvalue = 10000),
],
)),
( "cpu_average",
@@ -5000,8 +5000,8 @@ register_check_parameters(
Tuple(
title = _("Levels on CPU utilization"),
elements = [
- Percentage(title = _("Warning if above"), default_value
= 90),
- Percentage(title = _("Critical if above"), default_value
= 98),
+ Percentage(title = _("Warning if above"), default_value
= 90, maxvalue = 10000),
+ Percentage(title = _("Critical if above"), default_value
= 98, maxvalue = 10000),
],
)),
( "cpu_average",