From 9a88fb7b3f1882917a6dd6995df20e5626966e62 Mon Sep 17 00:00:00 2001 From: p39718465 <569659537@qq.com> Date: Tue, 29 Aug 2023 10:49:46 +0800 Subject: [PATCH] ADD file via upload --- src/zabbix_server/db_lengths.h | 45 ++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 src/zabbix_server/db_lengths.h diff --git a/src/zabbix_server/db_lengths.h b/src/zabbix_server/db_lengths.h new file mode 100644 index 0000000..6e59537 --- /dev/null +++ b/src/zabbix_server/db_lengths.h @@ -0,0 +1,45 @@ +/* +** 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. +**/ + +#ifndef ZABBIX_DB_LENGTHS_H +#define ZABBIX_DB_LENGTHS_H + +#define TRIGGER_OPDATA_LEN 255 +#define TRIGGER_URL_LEN 2048 +#define TRIGGER_URL_NAME_LEN 64 +#define TRIGGER_DESCRIPTION_LEN 255 +#if defined(HAVE_ORACLE) +# define TRIGGER_COMMENTS_LEN 2048 +#else +# define TRIGGER_COMMENTS_LEN 65535 +#endif +#define TRIGGER_EVENT_NAME_LEN 2048 + +#define ZBX_DB_TAG_NAME_LEN 255 +#define ZBX_DB_TAG_VALUE_LEN 255 + +#define GROUP_NAME_LEN 255 + +#define ALERT_ERROR_LEN 2048 +#define ALERT_ERROR_LEN_MAX (ALERT_ERROR_LEN + 1) + +#define EVENT_NAME_LEN 2048 + +#define REPORT_ERROR_LEN 2048 +#endif /* ZABBIX_DB_LENGTHS_H */