Module: check_mk
Branch: master
Commit: 568ed1584d09dda92b9f6045daa46752d469ccfe
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=568ed1584d09dd…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Mar 12 16:13:00 2015 +0100
Fix failed in inventory when one of the extra sections is missing
---
modules/discovery.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/modules/discovery.py b/modules/discovery.py
index 9f87fb7..9e70635 100644
--- a/modules/discovery.py
+++ b/modules/discovery.py
@@ -230,10 +230,15 @@ def get_info_for_discovery(hostname, ipaddress, section_name,
use_caches):
with_node_info = add_nodeinfo(bare_info, es)
parsed = apply_parse_function(with_node_info, es)
info.append(parsed)
+
+ except MKAgentError:
+ info.append(None)
+
except:
if opt_debug:
raise
info.append(None)
+
return info
#.