Source
zbx_db_insert_prepare(&db_insert, "trigger_queue", "trigger_queueid", "objectid", "type", "clock", "ns", NULL);
/*
** Zabbix
** Copyright (C) 2001-2023 Zabbix SIA
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation; either version 2 of the License, or
** (at your option) any later version.
**
** 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 General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with this program; if not, write to the Free Software
** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
**/
extern int CONFIG_HISTSYNCER_FREQUENCY;
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)
{
int i;
zbx_vector_ptr_t persistent_timers;
zbx_db_insert_t db_insert;
zbx_vector_ptr_create(&persistent_timers);
zbx_dc_clear_timer_queue(&persistent_timers);