Module: check_mk
Branch: master
Commit: 8484be9ad8a942b8e34a70499e36649ba8ed63ea
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=8484be9ad8a942…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Thu Feb 1 12:21:06 2018 +0100
Fixed discovery of snmp inventory plugins if snmp_info is defined in related check plugin
Change-Id: I11d75477766441c4bcab62229dbd5a1646937ac8
---
cmk_base/inventory_plugins.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/cmk_base/inventory_plugins.py b/cmk_base/inventory_plugins.py
index c80e0ae..75cebe9 100644
--- a/cmk_base/inventory_plugins.py
+++ b/cmk_base/inventory_plugins.py
@@ -130,7 +130,8 @@ def load_plugin_includes(check_file_path, plugin_context):
def is_snmp_plugin(plugin_type):
section_name = checks.section_name_of(plugin_type)
- return "snmp_info" in inv_info.get(section_name, {})
+ return "snmp_info" in inv_info.get(section_name, {}) \
+ or checks.is_snmp_check(plugin_type)
#.