]> granicus.if.org Git - icinga2/commitdiff
cluster: Update endpoints' features for heartbeat messages.
authorGunnar Beutner <gunnar.beutner@netways.de>
Thu, 12 Sep 2013 08:22:03 +0000 (10:22 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Thu, 12 Sep 2013 08:22:03 +0000 (10:22 +0200)
components/cluster/clustercomponent.cpp

index fbd4dff59deac7637267c38d9e39db6d7268cb74..be36ad6b84b990526feb43d3d96da5ca30c4db9c 100644 (file)
@@ -846,8 +846,10 @@ void ClusterComponent::MessageHandler(const Endpoint::Ptr& sender, const Diction
 
                Endpoint::Ptr endpoint = Endpoint::GetByName(identity);
 
-               if (endpoint)
+               if (endpoint) {
                        endpoint->SetSeen(Utility::GetTime());
+                       endpoint->SetFeatures(params->Get("features"));
+               }
        } else if (message->Get("method") == "cluster::CheckResult") {
                String svc = params->Get("service");