#include "agent_conf/agent_conf.h"
#include "zbx_rtc_constants.h"
#include "zbxbincommon.h"
static char *config_pid_file = NULL;
static char *zbx_config_hosts_allowed = NULL;
ZBX_GET_CONFIG_VAR2(char *, const char *, zbx_config_hostnames, NULL)
static char *config_hostname_item = NULL;
ZBX_GET_CONFIG_VAR2(char *, const char *, zbx_config_host_metadata, NULL)
ZBX_GET_CONFIG_VAR2(char *, const char *, zbx_config_host_metadata_item, NULL)
static char *zbx_config_host_interface = NULL;
static char *zbx_config_host_interface_item = NULL;
ZBX_GET_CONFIG_VAR2(ZBX_THREAD_LOCAL char *, const char *, zbx_config_hostname, NULL)
ZBX_GET_CONFIG_VAR(int, zbx_config_enable_remote_commands, 1)
ZBX_GET_CONFIG_VAR(int, zbx_config_log_remote_commands, 0)
ZBX_GET_CONFIG_VAR(int, zbx_config_unsafe_user_parameters, 0)
static int zbx_config_listen_port = ZBX_DEFAULT_AGENT_PORT;
static char *zbx_config_listen_ip = NULL;
static int zbx_config_refresh_active_checks = 5;
ZBX_GET_CONFIG_VAR2(char*, const char *, zbx_config_source_ip, NULL)
static int config_log_level = LOG_LEVEL_WARNING;
static int zbx_config_buffer_size = 100;
static int zbx_config_buffer_send = 5;
static int zbx_config_max_lines_per_second = 20;
static int zbx_config_eventlog_max_lines_per_second = 20;
static char *config_load_module_path = NULL;
static char **config_aliases = NULL;
static char **config_load_module = NULL;
static char **config_user_parameters = NULL;
static char *config_user_parameter_dir = NULL;
static char **config_perf_counters = NULL;
static char **config_perf_counters_en = NULL;
#define ZBX_SERVICE_NAME_LEN 64
char zabbix_service_name[ZBX_SERVICE_NAME_LEN] = APPLICATION_NAME;
static const char *get_zbx_service_name(void)
return zabbix_service_name;
char zabbix_event_source[ZBX_SERVICE_NAME_LEN] = APPLICATION_NAME;
static const char *get_zbx_event_source(void)
return zabbix_event_source;
#undef ZBX_SERVICE_NAME_LEN
static char *config_user = NULL;
static zbx_config_tls_t *zbx_config_tls = NULL;
static int config_tcp_max_backlog_size = SOMAXCONN;
int zbx_config_heartbeat_frequency = 60;
# include "../libs/zbxnix/control.h"