Module: check_mk
Branch: master
Commit: 75958edff2fd65e36a5e1e119237606487db0df9
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=75958edff2fd65…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Jan 28 15:22:59 2011 +0100
WATO/automation: do not hickup on inventory errors
---
modules/check_mk.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/modules/check_mk.py b/modules/check_mk.py
index 208307b..f338a4e 100755
--- a/modules/check_mk.py
+++ b/modules/check_mk.py
@@ -1732,7 +1732,8 @@ def make_inventory(checkname, hostnamelist, check_only=False,
include_state=Fals
except Exception, e:
if opt_debug:
raise
- sys.stderr.write("%s: Invalid output from agent or invalid
configuration: %s\n" % (hostname, e))
+ if opt_verbose:
+ sys.stderr.write("%s: Invalid output from agent or invalid configuration:
%s\n" % (hostname, e))
continue
if not isinstance(inventory, list):