1 /* 2 ** Zabbix 3 ** Copyright (C) 2001-2021 Zabbix SIA 4 ** 5 ** This program is free software; you can redistribute it and/or modify 6 ** it under the terms of the GNU General Public License as published by 7 ** the Free Software Foundation; either version 2 of the License, or 8 ** (at your option) any later version. 9 ** 10 ** This program is distributed in the hope that it will be useful, 11 ** but WITHOUT ANY WARRANTY; without even the implied warranty of 12 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 ** GNU General Public License for more details. 14 ** 15 ** You should have received a copy of the GNU General Public License 16 ** along with this program; if not, write to the Free Software 17 ** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 18 **/ 19 20 21 #ifndef ZABBIX_ZBXDIAG_H 22 #define ZABBIX_ZBXDIAG_H 23 24 #include "common.h" 25 #include "zbxjson.h" 26 27 typedef enum 28 { 29 ZBX_DIAGINFO_UNDEFINED = -1, 30 ZBX_DIAGINFO_ALL, 31 ZBX_DIAGINFO_HISTORYCACHE, 32 ZBX_DIAGINFO_VALUECACHE, 33 ZBX_DIAGINFO_PREPROCESSING, 34 ZBX_DIAGINFO_LLD, 35 ZBX_DIAGINFO_ALERTING, 36 ZBX_DIAGINFO_LOCKS 37 } 38 zbx_diaginfo_section_t; 39 40 #define ZBX_DIAG_HISTORYCACHE "historycache" 41 #define ZBX_DIAG_VALUECACHE "valuecache" 42 #define ZBX_DIAG_PREPROCESSING "preprocessing" 43 #define ZBX_DIAG_LLD "lld" 44 #define ZBX_DIAG_ALERTING "alerting" 45 #define ZBX_DIAG_LOCKS "locks" 46 47 int zbx_diag_get_info(const struct zbx_json_parse *jp, char **info); 48 void zbx_diag_log_info(unsigned int flags); 49 50 #endif 51