Module: check_mk
Branch: master
Commit: b899713716e426fb156e0ee31299e80e07f38c39
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b899713716e426…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Apr 30 09:47:46 2013 +0200
Fix WATO inventory for piggy-only-hosts
---
modules/automation.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/modules/automation.py b/modules/automation.py
index 3a2ce91..fb52e11 100644
--- a/modules/automation.py
+++ b/modules/automation.py
@@ -205,7 +205,9 @@ def automation_try_inventory_node(hostname):
snmp_error = str(e)
tcp_error = None
- if is_tcp_host(hostname):
+ # Honor piggy_back data, even if host is not declared as TCP host
+ if is_tcp_host(hostname) or \
+ get_piggyback_info(hostname) or get_piggyback_info(ipaddress):
try:
for cn in inventorable_checktypes("tcp"):
found_services += make_inventory(cn, [hostname], True, True)