Module: check_mk
Branch: master
Commit: c86be7a8fbbf8c5f36336b99e6ac135a50c5799a
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c86be7a8fbbf8c…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Mar 8 16:26:09 2012 +0100
FIX: inventory in WATO was broken if legacy checks exist
---
modules/automation.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/modules/automation.py b/modules/automation.py
index d143bfb..eeca56f 100644
--- a/modules/automation.py
+++ b/modules/automation.py
@@ -301,7 +301,10 @@ def automation_try_inventory_node(hostname):
output = "WAITING - Legacy check, cannot be done offline"
perfdata = []
- checkgroup = check_info[ct]["group"]
+ if ct == "legacy":
+ checkgroup = None
+ else:
+ checkgroup = check_info[ct]["group"]
table.append((state_type, ct, checkgroup, item, paramstring, params, descr,
exitcode, output, perfdata))
if not table and (tcp_error or snmp_error):