diff options
author | Timotej S <6674623+underhood@users.noreply.github.com> | 2021-01-04 08:40:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-04 08:40:49 +0100 |
commit | 65f9efdcf9739a211e374b2f3a3bdb881202ff36 (patch) | |
tree | 0f65a24f8a68714316b5937f73f6ecd7a9a11cc9 | |
parent | e4b66ce474848b6b22171e0a7f51074ee81f9d7e (diff) |
ACLK use mguid instead of hostname (#10394)v1.27.0_0104103941
-rw-r--r-- | aclk/agent_cloud_link.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/aclk/agent_cloud_link.c b/aclk/agent_cloud_link.c index 3c28e1e98a..d5925d3953 100644 --- a/aclk/agent_cloud_link.c +++ b/aclk/agent_cloud_link.c @@ -576,7 +576,7 @@ void aclk_add_collector(RRDHOST *host, const char *plugin_name, const char *modu COLLECTOR_LOCK; - tmp_collector = _add_collector(host->hostname, plugin_name, module_name); + tmp_collector = _add_collector(host->machine_guid, plugin_name, module_name); if (unlikely(tmp_collector->count != 1)) { COLLECTOR_UNLOCK; @@ -609,7 +609,7 @@ void aclk_del_collector(RRDHOST *host, const char *plugin_name, const char *modu COLLECTOR_LOCK; - tmp_collector = _del_collector(host->hostname, plugin_name, module_name); + tmp_collector = _del_collector(host->machine_guid, plugin_name, module_name); if (unlikely(!tmp_collector || tmp_collector->count)) { COLLECTOR_UNLOCK; |