ACLK use mguid instead of hostname (#10394)

This commit is contained in:
Timotej S 2021-01-04 08:40:49 +01:00 committed by GitHub
parent e4b66ce474
commit 65f9efdcf9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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;