Module: check_mk
Branch: master
Commit: fc14870177f6cd1ee98f5a18f150677150900fe2
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=fc14870177f6cd…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed May 13 09:47:07 2015 +0200
Fix calling wrong scan function for checks without scan function
---
modules/discovery.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/discovery.py b/modules/discovery.py
index 26399e4..81682ff 100644
--- a/modules/discovery.py
+++ b/modules/discovery.py
@@ -357,6 +357,8 @@ def snmp_scan(hostname, ipaddress, for_inv=False):
scan_function = snmp_scan_functions[basename]
elif basename in inv_info:
scan_function = inv_info[basename].get("snmp_scan_function")
+ else:
+ scan_function = None
if scan_function:
try: