Commit eddd1151 authored by Reed Essick's avatar Reed Essick

added in the option to set up a heartbeat response when automatically writing...

added in the option to set up a heartbeat response when automatically writing the lvalert INI file within laldetchar-idq-gdb-processor.py
Original: 4d2b7bcaad65607ec076af96cbcfded2991b9399
parent 1e9ccd46
......@@ -102,6 +102,12 @@ if args.command == 'start':
# lvalert_config_obj.set( node, "max_wait", config.getfloat(node, "max_wait") )
# lvalert_config_obj.set( node, "delay", config.getfloat(node, "delay") )
### add heartbeat response
if config.has_section('heartbeat'):
node = config.get('heartbeat', 'node')
lvalert_config_obj.add_section( node )
lvalert_config_obj.set( node, "executable", config.get('heartbeat', "executable") )
lvalert_config_file = open(lvalert_config, "w")
lvalert_config_obj.write(lvalert_config_file) ### write new config to disk
lvalert_config_file.close()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment