Skip to content
Permalink
Browse files

Disabled baking of agents during restart by default; added support fo…

…r manual baking
  • Loading branch information
LarsMichelsen committed Feb 23, 2015
1 parent a3dafed commit a134f14f6ea957d001ac554fc4b4e52a6270110d
Showing with 17 additions and 1 deletion.
  1. +5 −0 modules/automation.py
  2. +1 −1 modules/config.py
  3. +11 −0 web/htdocs/wato.py
@@ -46,6 +46,8 @@ def do_automation(cmd, args):
elif cmd == "update-dns-cache":
read_config_files(with_autochecks=False)
result = automation_update_dns_cache()
elif cmd == "bake-agents":
result = automation_bake_agents()
else:
read_config_files()
if cmd == "try-inventory":
@@ -1124,3 +1126,6 @@ def execute_check_plugin(commandline):
def automation_update_dns_cache():
return do_update_dns_cache()

def automation_bake_agents():
if "do_bake_agents" in globals():
return do_bake_agents()
@@ -167,4 +167,4 @@

# Rulesets for agent bakery
agent_config = {}
bake_agents_on_restart = True
bake_agents_on_restart = False
@@ -5043,6 +5043,10 @@ def log_pending(status, linkinfo, what, message, user_id = None):
log_audit(linkinfo, what, message, user_id)
need_sidebar_reload()

# On each change to the Check_MK configuration mark the agents to be rebuild
if 'need_to_bake_agents' in globals():
need_to_bake_agents()

if not is_distributed():
if status != SYNC:
log_entry(linkinfo, what, message, "pending.log", user_id)
# Global settings
use_new_descriptions_for = [ "df", "ps" ]

# Initial baking of agents (when bakery is available)
if 'bake_agents' in globals():
try:
bake_agents()
except:
pass # silently ignore building errors here

#.
# .--Pattern Editor------------------------------------------------------.
# | ____ _ _ _____ _ _ _ |

0 comments on commit a134f14

Please sign in to comment.
You can’t perform that action at this time.