From d9c8b2d5fb936de188eca119fda3c8c8b5bd5547 Mon Sep 17 00:00:00 2001 From: p39718465 <569659537@qq.com> Date: Tue, 29 Aug 2023 10:47:17 +0800 Subject: [PATCH] ADD file via upload --- src/zabbix_server/server.h | 40 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 src/zabbix_server/server.h diff --git a/src/zabbix_server/server.h b/src/zabbix_server/server.h new file mode 100644 index 0000000..3652d87 --- /dev/null +++ b/src/zabbix_server/server.h @@ -0,0 +1,40 @@ +/* +** 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_SERVER_H +#define ZABBIX_SERVER_H +/* media type statuses */ +#define MEDIA_TYPE_STATUS_ACTIVE 0 +#define MEDIA_TYPE_STATUS_DISABLED 1 + +/* media statuses */ +#define MEDIA_STATUS_ACTIVE 0 +#define MEDIA_STATUS_DISABLED 1 + +/* normal and recovery operations */ +#define ZBX_OPERATION_MODE_NORMAL 0 +#define ZBX_OPERATION_MODE_RECOVERY 1 +#define ZBX_OPERATION_MODE_UPDATE 2 + +/* algorithms for service status calculation */ +#define ZBX_SERVICE_STATUS_CALC_SET_OK 0 +#define ZBX_SERVICE_STATUS_CALC_MOST_CRITICAL_ALL 1 +#define ZBX_SERVICE_STATUS_CALC_MOST_CRITICAL_ONE 2 + +#endif /*ZABBIX_SERVER_H*/