]> granicus.if.org Git - icinga2/commitdiff
Agent health check must not have zone attribute
authorGunnar Beutner <gunnar.beutner@netways.de>
Fri, 31 Oct 2014 05:27:22 +0000 (06:27 +0100)
committerGunnar Beutner <gunnar.beutner@netways.de>
Fri, 31 Oct 2014 05:27:22 +0000 (06:27 +0100)
fixes #7519

lib/cli/agentupdateconfigcommand.cpp

index 7a1e8553c2f64d706fbfaee32ebdf0c04a5304c8..10c909fc394b119d93ff5b2b742d66c49c114626 100644 (file)
@@ -103,7 +103,6 @@ int AgentUpdateConfigCommand::Run(const boost::program_options::variables_map& v
                host_attrs->Set("__name", zone);
                host_attrs->Set("name", zone);
                host_attrs->Set("check_command", "cluster-zone");
-               host_attrs->Set("zone", zone);
                Array::Ptr host_imports = make_shared<Array>();
                host_imports->Add("agent-host"); //default host agent template
                host_attrs->Set("import", host_imports);