Module: check_mk
Branch: master
Commit: 7065e2a076ca71a33697235ba0363259679689aa
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=7065e2a076ca71…
Author: Sebastian Herbord <sh(a)mathias-kettner.de>
Date: Wed Apr 27 11:39:39 2016 +0200
fixed bug introduced in werk 3115 that kept logwatch from discovering in non-cluster mode
---
checks/logwatch | 2 ++
1 file changed, 2 insertions(+)
diff --git a/checks/logwatch b/checks/logwatch
index a250d3c..cb9f8ca 100644
--- a/checks/logwatch
+++ b/checks/logwatch
@@ -246,6 +246,8 @@ def check_logwatch(item, params, info):
cache_new = {}
def is_cache_new(node):
+ if node is None:
+ return True
if node not in cache_new:
path = cachefile_path(node)
if not os.path.exists(path):