Module: check_mk
Branch: master
Commit: 0fa387256715d677d33b54452d31f18e8db8d8dc
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0fa387256715d6…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Mon Apr 8 17:28:13 2013 +0200
predictive levels: fixed bug when existing predictive levels get new options
(fixed horrible wording)
---
ChangeLog | 1 +
modules/prediction.py | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 36ead63..01155b5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -64,6 +64,7 @@
* windows_agent: check_mk.ini: new option "port" - specifies agent port
* winperf_processor: introduce averaging, support predictive levels
* cpu_util.include: fixed bug when params are set to None
+ * predictive levels: fixed bug when existing predictive levels get new options
Notifications:
* notify.py: unique spoolfiles name no longer created with uuid
diff --git a/modules/prediction.py b/modules/prediction.py
index 7817081..109a4f1 100644
--- a/modules/prediction.py
+++ b/modules/prediction.py
@@ -253,7 +253,7 @@ def get_predictive_levels(dsname, params, cf, levels_factor=1.0):
try:
last_info = eval(file(info_file).read())
for k, v in params.items():
- if last_info[k] != v:
+ if last_info.get(k) != v:
if opt_debug:
sys.stderr.write("Prediction parameters have changed.\n")
last_info = None