Module: check_mk
Branch: master
Commit: 659af1d05c558fae0be403a1c9a2aea57e689b79
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=659af1d05c558f…
Author: Sebastian Herbord <sh(a)mathias-kettner.de>
Date: Tue May 10 10:23:39 2016 +0200
fixed exception in discovery check
---
modules/discovery.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/discovery.py b/modules/discovery.py
index c223f14..9d0a18b 100644
--- a/modules/discovery.py
+++ b/modules/discovery.py
@@ -309,7 +309,8 @@ def check_discovery(hostname, ipaddress=None):
affected_check_types.setdefault(check_type, 0)
affected_check_types[check_type] += 1
- if not unfiltered and item_filters(hostname, check_type, item):
+ if not unfiltered and\
+ (item_filters is None or item_filters(hostname, check_type,
item)):
unfiltered = True
long_infotexts.append("%s: %s: %s" % (title, check_type,
service_description(hostname, check_type, item)))