zbx_dc_sync_configuration(ZBX_DBSYNC_INIT, ZBX_SYNCED_NEW_CONFIG_NO, NULL, proxyconfig_args_in->config_vault,
#include "zbxcachehistory.h"
#include "zbxcommshigh.h"
#include "proxyconfigwrite/proxyconfig_write.h"
#include "zbx_rtc_constants.h"
#include "zbx_host_constants.h"
static void process_configuration_sync(size_t *data_size, zbx_synced_new_config_t *synced,
const zbx_thread_info_t *thread_info, zbx_thread_proxyconfig_args *args)
struct zbx_json_parse jp, jp_kvs_paths = {0};
char value[16], *error = NULL, *buffer = NULL;
size_t buffer_size, reserved;
zabbix_log(LOG_LEVEL_DEBUG, "In %s()", __func__);
zbx_json_addstring(&j, "request", ZBX_PROTO_VALUE_PROXY_CONFIG, ZBX_JSON_TYPE_STRING);
zbx_json_addstring(&j, "host", args->config_hostname, ZBX_JSON_TYPE_STRING);
zbx_json_addstring(&j, ZBX_PROTO_TAG_VERSION, ZABBIX_VERSION, ZBX_JSON_TYPE_STRING);
zbx_json_addstring(&j, ZBX_PROTO_TAG_SESSION, zbx_dc_get_session_token(), ZBX_JSON_TYPE_STRING);
zbx_json_adduint64(&j, ZBX_PROTO_TAG_CONFIG_REVISION, zbx_dc_get_received_revision());
if (SUCCEED != zbx_compress(j.buffer, j.buffer_size, &buffer, &buffer_size))
zabbix_log(LOG_LEVEL_ERR,"cannot compress data: %s", zbx_compress_strerror());