Module: check_mk
Branch: master
Commit: 6eff2082b9ce70fb2602f044f820d5c6fc337da8
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=6eff2082b9ce70…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Fri Oct 9 08:58:18 2015 +0200
fixed inventory function in ucd_mem check
---
checks/ucd_mem | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/checks/ucd_mem b/checks/ucd_mem
index 06d9b83..8ef9902 100644
--- a/checks/ucd_mem
+++ b/checks/ucd_mem
@@ -35,11 +35,10 @@ factory_settings["ucd_mem_default_levels"] = {
def inventory_ucd_mem(info):
- if len(info[0]) > 1:
+ if info and len(info[0]) > 1:
for line in info[0]:
if line == "":
return []
-
return [ ("", {}) ]