Module: check_mk
Branch: master
Commit: 482747a27978a9398ca129a41455ac4e5fd6b4ce
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=482747a27978a9…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Jan 27 09:26:29 2011 +0100
Fix SNMP scan bug with misc checks
---
ChangeLog | 1 +
modules/check_mk.py | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index c7c910c..64f540e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
1.1.9i6:
Core, Setup, etc.:
* cmk -D: show ip address of host
+ * Fix SNMP inventory find snmp misc checks inspite of negative scan function
Checks & Agents:
* megaraid_ldisks: remove debug output
diff --git a/modules/check_mk.py b/modules/check_mk.py
index 2a06e50..755bc6e 100755
--- a/modules/check_mk.py
+++ b/modules/check_mk.py
@@ -675,7 +675,7 @@ def snmp_scan(hostname, ipaddress):
# Now try all checks not having a scan function
for checktype in check_info.keys():
datatype = checktype.split('.')[0]
- if datatype not in snmp_info:
+ if not check_uses_snmp(datatype):
continue # no snmp check
if checktype not in snmp_scan_functions:
if opt_verbose: