Source
zbx_rtc_subscribe(process_type, process_num, rtc_msgs, ARRSIZE(rtc_msgs), dbsyncer_args->config_timeout, &rtc);
/*
** Copyright (C) 2001-2025 Zabbix SIA
**
** This program is free software: you can redistribute it and/or modify it under the terms of
** the GNU Affero General Public License as published by the Free Software Foundation, version 3.
**
** This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
** without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
** See the GNU Affero General Public License for more details.
**
** You should have received a copy of the GNU Affero General Public License along with this program.
** If not, see <https://www.gnu.org/licenses/>.
**/
static sigset_t orig_mask;
static zbx_export_file_t *problems_export = NULL;
static zbx_export_file_t *get_problems_export(void)
{
return problems_export;
}
static zbx_export_file_t *history_export = NULL;
static zbx_export_file_t *get_history_export(void)
{
return history_export;
}
static zbx_export_file_t *trends_export = NULL;
static zbx_export_file_t *get_trends_export(void)
{
return trends_export;
}
/******************************************************************************
* *
* Purpose: flush timer queue to the database *
* *
******************************************************************************/
static void zbx_db_flush_timer_queue(void)
{
zbx_vector_trigger_timer_ptr_t persistent_timers;
zbx_db_insert_t db_insert;
zbx_vector_trigger_timer_ptr_create(&persistent_timers);
zbx_dc_clear_timer_queue(&persistent_timers);