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 #ifndef ZABBIX_ZBXCONF_H
21 #define ZABBIX_ZBXCONF_H
22 
23 extern char	*CONFIG_HOSTS_ALLOWED;
24 extern char	*CONFIG_HOSTNAME;
25 extern char	*CONFIG_HOSTNAME_ITEM;
26 extern char	*CONFIG_HOST_METADATA;
27 extern char	*CONFIG_HOST_METADATA_ITEM;
28 extern int	CONFIG_ENABLE_REMOTE_COMMANDS;
29 extern int	CONFIG_UNSAFE_USER_PARAMETERS;
30 extern int	CONFIG_LISTEN_PORT;
31 extern int	CONFIG_REFRESH_ACTIVE_CHECKS;
32 extern char	*CONFIG_LISTEN_IP;
33 extern int	CONFIG_LOG_LEVEL;
34 extern int	CONFIG_MAX_LINES_PER_SECOND;
35 extern char	**CONFIG_ALIASES;
36 extern char	**CONFIG_USER_PARAMETERS;
37 extern char	*CONFIG_LOAD_MODULE_PATH;
38 extern char	**CONFIG_LOAD_MODULE;
39 #ifdef _WINDOWS
40 extern char	**CONFIG_PERF_COUNTERS;
41 #endif
42 extern char	*CONFIG_USER;
43 
44 extern unsigned int	configured_tls_connect_mode;
45 extern unsigned int	configured_tls_accept_modes;
46 
47 extern char	*CONFIG_TLS_CONNECT;
48 extern char	*CONFIG_TLS_ACCEPT;
49 extern char	*CONFIG_TLS_CA_FILE;
50 extern char	*CONFIG_TLS_CRL_FILE;
51 extern char	*CONFIG_TLS_SERVER_CERT_ISSUER;
52 extern char	*CONFIG_TLS_SERVER_CERT_SUBJECT;
53 extern char	*CONFIG_TLS_CERT_FILE;
54 extern char	*CONFIG_TLS_KEY_FILE;
55 extern char	*CONFIG_TLS_PSK_IDENTITY;
56 extern char	*CONFIG_TLS_PSK_FILE;
57 
58 void	load_aliases(char **lines);
59 void	load_user_parameters(char **lines);
60 #ifdef _WINDOWS
61 void	load_perf_counters(const char **lines);
62 #endif
63 
64 #ifdef _AIX
65 void	tl_version();
66 #endif
67 
68 #endif /* ZABBIX_ZBXCONF_H */
69