Source
zbx_uint64_t DBadd_host(char *server, int port, int status, int useip, char *ip, int disable_until, int available);
/*
** Zabbix
** Copyright (C) 2001-2022 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 char *CONFIG_DBHOST;
extern char *CONFIG_DBNAME;
extern char *CONFIG_DBSCHEMA;
extern char *CONFIG_DBUSER;
extern char *CONFIG_DBPASSWORD;
extern char *CONFIG_DBSOCKET;
extern char *CONFIG_DB_TLS_CONNECT;
extern char *CONFIG_DB_TLS_CERT_FILE;
extern char *CONFIG_DB_TLS_KEY_FILE;
extern char *CONFIG_DB_TLS_CA_FILE;
extern char *CONFIG_DB_TLS_CIPHER;
extern char *CONFIG_DB_TLS_CIPHER_13;
extern int CONFIG_DBPORT;
extern int CONFIG_HISTSYNCER_FORKS;
extern int CONFIG_UNAVAILABLE_DELAY;
typedef enum
{
GRAPH_TYPE_NORMAL = 0,
GRAPH_TYPE_STACKED = 1
}
zbx_graph_types;
typedef enum
{
CALC_FNC_MIN = 1,
CALC_FNC_AVG = 2,
CALC_FNC_MAX = 4,
CALC_FNC_ALL = 7
}
zbx_graph_item_calc_function;
typedef enum
{
GRAPH_ITEM_SIMPLE = 0,
GRAPH_ITEM_AGGREGATED = 1