Module: check_mk
Branch: master
Commit: 27bc6eda8fa6352fc3de4ecaf9aa01e876dd7731
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=27bc6eda8fa635…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Jun 5 10:03:13 2014 +0200
Fixed exception with precompiled host checks when inline_snmp is enabled, but not compiled
for a host
---
modules/check_mk.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/modules/check_mk.py b/modules/check_mk.py
index 15b8206..54d2b99 100755
--- a/modules/check_mk.py
+++ b/modules/check_mk.py
@@ -3311,7 +3311,7 @@ no_inventory_possible = None
'piggyback_max_cachefile_age',
'simulation_mode', 'agent_simulator',
'aggregate_check_mk', 'debug_log',
'check_mk_perfdata_with_times',
'livestatus_unix_socket',
- 'has_inline_snmp', 'use_inline_snmp',
'record_inline_snmp_stats',
+ 'use_inline_snmp', 'record_inline_snmp_stats',
]:
output.write("%s = %r\n" % (var, globals()[var]))
@@ -3352,6 +3352,8 @@ no_inventory_possible = None
if has_inline_snmp and use_inline_snmp:
output.write(stripped_python_file(modules_dir +
"/inline_snmp.py"))
+ else:
+ output.write("has_inline_snmp = False\n")
if agent_simulator:
output.write(stripped_python_file(modules_dir +
"/agent_simulator.py"))