diff options
Diffstat (limited to 'registry/registry.c')
-rw-r--r-- | registry/registry.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/registry/registry.c b/registry/registry.c index 4b6cb2bd1a..1b0421bc5c 100644 --- a/registry/registry.c +++ b/registry/registry.c @@ -171,10 +171,10 @@ int registry_request_hello_json(RRDHOST *host, struct web_client *w) { buffer_json_member_add_object(w->response.data, "agent"); { - buffer_json_member_add_string(w->response.data, "machine_guid", localhost->machine_guid); + buffer_json_member_add_string(w->response.data, "machine_guid", rrdb.localhost->machine_guid); - if(localhost->node_id) - buffer_json_member_add_uuid(w->response.data, "node_id", localhost->node_id); + if(rrdb.localhost->node_id) + buffer_json_member_add_uuid(w->response.data, "node_id", rrdb.localhost->node_id); char *claim_id = get_agent_claimid(); if (claim_id) { @@ -195,7 +195,7 @@ int registry_request_hello_json(RRDHOST *host, struct web_client *w) { buffer_json_member_add_array(w->response.data, "nodes"); RRDHOST *h; - dfe_start_read(rrdhost_root_index, h) { + dfe_start_read(rrdb.rrdhost_root_index, h) { buffer_json_add_array_item_object(w->response.data); buffer_json_member_add_string(w->response.data, "machine_guid", h->machine_guid); @@ -456,7 +456,7 @@ void registry_statistics(void) { , "registry" , "stats" , 131000 - , localhost->rrd_update_every + , rrdb.localhost->update_every , RRDSET_TYPE_LINE ); @@ -480,7 +480,7 @@ void registry_statistics(void) { , "registry" , "stats" , 131100 - , localhost->rrd_update_every + , rrdb.localhost->update_every , RRDSET_TYPE_LINE ); @@ -510,7 +510,7 @@ void registry_statistics(void) { , "registry" , "stats" , 131300 - , localhost->rrd_update_every + , rrdb.localhost->update_every , RRDSET_TYPE_STACKED ); |