Module: check_mk
Branch: master
Commit: 828fd1fa2bf6394a7264dd8a4a56427dc6b8a533
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=828fd1fa2bf639…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Sep 7 08:46:14 2016 +0200
3849 FIX check_cpu_peaks: Fixed broken active check
---
.werks/3849 | 9 +++++++++
ChangeLog | 1 +
doc/treasures/active_checks/check_cpu_peaks | 5 +++--
3 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/.werks/3849 b/.werks/3849
new file mode 100644
index 0000000..e1c4d7b
--- /dev/null
+++ b/.werks/3849
@@ -0,0 +1,9 @@
+Title: check_cpu_peaks: Fixed broken active check
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.4.0i1
+Date: 1473230761
+Class: fix
+
+
diff --git a/ChangeLog b/ChangeLog
index d6abff0..fa3c871 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -375,6 +375,7 @@
* 3798 FIX: Clusters: Fixed invalid timestamp of last cached agent data...
* 3836 FIX: Fixed perfometer in kentix multisensor rack...
* 3848 FIX: megaraid_pdisks: Handle "rebuild" state as WARNING instead of
UNKNOWN
+ * 3849 FIX: check_cpu_peaks: Fixed broken active check
Multisite:
* 3187 notification view: new filter for log command via regex
diff --git a/doc/treasures/active_checks/check_cpu_peaks
b/doc/treasures/active_checks/check_cpu_peaks
index 8635645..a757699 100755
--- a/doc/treasures/active_checks/check_cpu_peaks
+++ b/doc/treasures/active_checks/check_cpu_peaks
@@ -35,8 +35,9 @@ class MKGeneralException(Exception):
# Note: This check only works in an OMD environment!
sys.path.append(os.path.expanduser("~/share/check_mk/modules"))
-execfile(os.path.expanduser("~/etc/check_mk/defaults"), globals())
-execfile(os.path.expanduser("~/share/check_mk/modules/prediction.py"),
globals())
+execfile(os.path.expanduser("~/etc/check_mk/defaults"))
+execfile(os.path.expanduser("~/share/check_mk/modules/prediction.py"))
+execfile(os.path.expanduser("~/share/check_mk/modules/check_mk_base.py"))
rrdcached_socket = None
def usage():