Module: check_mk
Branch: master
Commit: a25634d1c2161e044fa5816a4a387d67b492eb41
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a25634d1c2161e…
Author: Moritz Kiemer <mo(a)mathias-kettner.de>
Date: Mon Jul 23 08:22:16 2018 +0200
cpu: discovery returns tuple now
Change-Id: Ia8b7467f4e3fbf6c144a866c353d4174e3710c1c
---
checks/cpu | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/checks/cpu b/checks/cpu
index fbdd07b..6ca4f3a 100644
--- a/checks/cpu
+++ b/checks/cpu
@@ -47,7 +47,7 @@ def inventory_cpu_load(info):
def check_cpu_load(item, params, info):
if not info:
- return
+ return None
if len(info[0]) >= 6:
# There have been broken AIX agents for a long time which produced data like
follows.
@@ -94,7 +94,7 @@ threads_default_levels = (2000, 4000)
def inventory_cpu_threads(info):
if len(info) == 1 and len(info[0]) >= 5:
- return [(None, "", "threads_default_levels")]
+ return [(None, "threads_default_levels")]
def check_cpu_threads(item, params, info):
try: