0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-04-17 11:12:42 +00:00

Perform a host metadata update on reconnection ()

This commit is contained in:
Stelios Fragkakis 2022-01-14 11:14:30 +02:00 committed by GitHub
parent ff5bc93fd4
commit a3951ae82c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -363,6 +363,31 @@ static int rrdpush_receive(struct receiver_state *rpt)
}
netdata_mutex_unlock(&rpt->host->receiver_lock);
}
else {
rrd_wrlock();
rrdhost_update(
rpt->host,
rpt->hostname,
rpt->registry_hostname,
rpt->machine_guid,
rpt->os,
rpt->timezone,
rpt->abbrev_timezone,
rpt->utc_offset,
rpt->tags,
rpt->program_name,
rpt->program_version,
rpt->update_every,
history,
mode,
(unsigned int)(health_enabled != CONFIG_BOOLEAN_NO),
(unsigned int)(rrdpush_enabled && rrdpush_destination && *rrdpush_destination && rrdpush_api_key && *rrdpush_api_key),
rrdpush_destination,
rrdpush_api_key,
rrdpush_send_charts_matching,
rpt->system_info);
rrd_unlock();
}
#ifdef NETDATA_INTERNAL_CHECKS
int ssl = 0;