Module: check_mk
Branch: master
Commit: 848c87b65da0dca21e8511f4281724a789a72c47
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=848c87b65da0dc…
Author: Konstantin Büttner <kb(a)mathias-kettner.de>
Date: Fri Jan 19 15:33:49 2018 +0100
kernel.util: Remove dysfunctional default levels variable
This particular combination of passing an empty dict at discovery,
declaring a default_levels_variable in check_info but not using
factory_settings does not work. Any value this variable might be set
to would simply be ignored.
Change-Id: Iee7748ace8480e64a7482e99bc10622465c7da91
---
checks/kernel | 2 --
1 file changed, 2 deletions(-)
diff --git a/checks/kernel b/checks/kernel
index 6a9e2f8..f4f5e9c 100644
--- a/checks/kernel
+++ b/checks/kernel
@@ -106,7 +106,6 @@ check_info["kernel"] = {
# | Check system/user/io-wait |
# '----------------------------------------------------------------------'
-kernel_util_default_levels = None
def inventory_cpu_utilization(info):
for x in info:
@@ -160,7 +159,6 @@ check_info["kernel.util"] = {
'inventory_function': inventory_cpu_utilization,
'service_description': 'CPU utilization',
'has_perfdata': True,
- 'default_levels_variable': 'kernel_util_default_levels',
'group': 'cpu_iowait',
'includes': ['cpu_util.include'],
}