mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2024-11-22 07:43:47 +01:00
Added Elasticsearch feature
This commit is contained in:
parent
e5b94d728b
commit
4355caab21
4
.env_srv
4
.env_srv
@ -1,6 +1,6 @@
|
||||
# ZBX_LISTENIP=
|
||||
# ZBX_HISTORYSTORAGEURL= # Available since 3.4.0
|
||||
# ZBX_HISTORYSTORAGETYPES=uint,dbl,str,log,text # Available since 3.4.0
|
||||
# ZBX_HISTORYSTORAGEURL=http://elasticsearch:9200/ # Available since 3.4.5
|
||||
# ZBX_HISTORYSTORAGETYPES=uint,dbl,str,log,text # Available since 3.4.5
|
||||
# ZBX_DEBUGLEVEL=3
|
||||
# ZBX_STARTPOLLERS=5
|
||||
# ZBX_IPMIPOLLERS=0
|
||||
|
2
.env_web
2
.env_web
@ -1,6 +1,8 @@
|
||||
# ZBX_SERVER_HOST=zabbix-server
|
||||
# ZBX_SERVER_PORT=10051
|
||||
ZBX_SERVER_NAME=Composed installation
|
||||
# ZBX_HISTORYSTORAGEURL=http://elasticsearch:9200/ # Available since 3.4.5
|
||||
# ZBX_HISTORYSTORAGETYPES=['uint', 'dbl', 'str', 'text', 'log'] # Available since 3.4.5
|
||||
# ZBX_MAXEXECUTIONTIME=600
|
||||
# ZBX_MEMORYLIMIT=128M
|
||||
# ZBX_POSTMAXSIZE=16M
|
||||
|
@ -842,6 +842,8 @@ prepare_zbx_web_config() {
|
||||
server_name=$(escape_spec_char "${ZBX_SERVER_NAME}")
|
||||
server_user=$(escape_spec_char "${DB_SERVER_ZBX_USER}")
|
||||
server_pass=$(escape_spec_char "${DB_SERVER_ZBX_PASS}")
|
||||
history_storage_url=$(escape_spec_char "${ZBX_HISTORYSTORAGEURL}")
|
||||
history_storage_types=$(escape_spec_char "${ZBX_HISTORYSTORAGETYPES}")
|
||||
|
||||
sed -i \
|
||||
-e "s/{DB_SERVER_HOST}/${DB_SERVER_HOST}/g" \
|
||||
@ -852,6 +854,8 @@ prepare_zbx_web_config() {
|
||||
-e "s/{ZBX_SERVER_HOST}/${ZBX_SERVER_HOST}/g" \
|
||||
-e "s/{ZBX_SERVER_PORT}/${ZBX_SERVER_PORT}/g" \
|
||||
-e "s/{ZBX_SERVER_NAME}/$server_name/g" \
|
||||
-e "s/{ZBX_HISTORYSTORAGEURL}/$history_storage_url/g" \
|
||||
-e "s/{ZBX_HISTORYSTORAGETYPES}/$history_storage_types/g" \
|
||||
"$ZBX_WEB_CONFIG"
|
||||
|
||||
[ "$db_type" = "postgresql" ] && sed -i "s/MYSQL/POSTGRESQL/g" "$ZBX_WEB_CONFIG"
|
||||
|
@ -842,6 +842,8 @@ prepare_zbx_web_config() {
|
||||
server_name=$(escape_spec_char "${ZBX_SERVER_NAME}")
|
||||
server_user=$(escape_spec_char "${DB_SERVER_ZBX_USER}")
|
||||
server_pass=$(escape_spec_char "${DB_SERVER_ZBX_PASS}")
|
||||
history_storage_url=$(escape_spec_char "${ZBX_HISTORYSTORAGEURL}")
|
||||
history_storage_types=$(escape_spec_char "${ZBX_HISTORYSTORAGETYPES}")
|
||||
|
||||
sed -i \
|
||||
-e "s/{DB_SERVER_HOST}/${DB_SERVER_HOST}/g" \
|
||||
@ -852,6 +854,8 @@ prepare_zbx_web_config() {
|
||||
-e "s/{ZBX_SERVER_HOST}/${ZBX_SERVER_HOST}/g" \
|
||||
-e "s/{ZBX_SERVER_PORT}/${ZBX_SERVER_PORT}/g" \
|
||||
-e "s/{ZBX_SERVER_NAME}/$server_name/g" \
|
||||
-e "s/{ZBX_HISTORYSTORAGEURL}/$history_storage_url/g" \
|
||||
-e "s/{ZBX_HISTORYSTORAGETYPES}/$history_storage_types/g" \
|
||||
"$ZBX_WEB_CONFIG"
|
||||
|
||||
[ "$db_type" = "postgresql" ] && sed -i "s/MYSQL/POSTGRESQL/g" "$ZBX_WEB_CONFIG"
|
||||
|
@ -842,6 +842,8 @@ prepare_zbx_web_config() {
|
||||
server_name=$(escape_spec_char "${ZBX_SERVER_NAME}")
|
||||
server_user=$(escape_spec_char "${DB_SERVER_ZBX_USER}")
|
||||
server_pass=$(escape_spec_char "${DB_SERVER_ZBX_PASS}")
|
||||
history_storage_url=$(escape_spec_char "${ZBX_HISTORYSTORAGEURL}")
|
||||
history_storage_types=$(escape_spec_char "${ZBX_HISTORYSTORAGETYPES}")
|
||||
|
||||
sed -i \
|
||||
-e "s/{DB_SERVER_HOST}/${DB_SERVER_HOST}/g" \
|
||||
@ -852,6 +854,8 @@ prepare_zbx_web_config() {
|
||||
-e "s/{ZBX_SERVER_HOST}/${ZBX_SERVER_HOST}/g" \
|
||||
-e "s/{ZBX_SERVER_PORT}/${ZBX_SERVER_PORT}/g" \
|
||||
-e "s/{ZBX_SERVER_NAME}/$server_name/g" \
|
||||
-e "s/{ZBX_HISTORYSTORAGEURL}/$history_storage_url/g" \
|
||||
-e "s/{ZBX_HISTORYSTORAGETYPES}/$history_storage_types/g" \
|
||||
"$ZBX_WEB_CONFIG"
|
||||
|
||||
[ "$db_type" = "postgresql" ] && sed -i "s/MYSQL/POSTGRESQL/g" "$ZBX_WEB_CONFIG"
|
||||
|
@ -382,6 +382,16 @@ services:
|
||||
volumes:
|
||||
- ./zbx_env/var/lib/mysql:/var/lib/mysql:rw
|
||||
|
||||
# elasticsearch:
|
||||
# image: elasticsearch
|
||||
# environment:
|
||||
# - transport.host=0.0.0.0
|
||||
# - discovery.zen.minimum_master_nodes=1
|
||||
# networks:
|
||||
# zbx_net_backend:
|
||||
# aliases:
|
||||
# - elasticsearch
|
||||
|
||||
networks:
|
||||
zbx_net_frontend:
|
||||
driver: bridge
|
||||
|
@ -414,6 +414,16 @@ services:
|
||||
volumes:
|
||||
- ./zbx_env/var/lib/mysql:/var/lib/mysql:rw
|
||||
|
||||
# elasticsearch:
|
||||
# image: elasticsearch
|
||||
# environment:
|
||||
# - transport.host=0.0.0.0
|
||||
# - discovery.zen.minimum_master_nodes=1
|
||||
# networks:
|
||||
# zbx_net_backend:
|
||||
# aliases:
|
||||
# - elasticsearch
|
||||
|
||||
networks:
|
||||
zbx_net_frontend:
|
||||
driver: bridge
|
||||
|
@ -402,6 +402,16 @@ services:
|
||||
volumes:
|
||||
- ./zbx_env/var/lib/postgresql/data:/var/lib/postgresql/data:rw
|
||||
|
||||
# elasticsearch:
|
||||
# image: elasticsearch
|
||||
# environment:
|
||||
# - transport.host=0.0.0.0
|
||||
# - discovery.zen.minimum_master_nodes=1
|
||||
# networks:
|
||||
# zbx_net_backend:
|
||||
# aliases:
|
||||
# - elasticsearch
|
||||
|
||||
networks:
|
||||
zbx_net_frontend:
|
||||
driver: bridge
|
||||
|
@ -435,6 +435,16 @@ services:
|
||||
volumes:
|
||||
- ./zbx_env/var/lib/postgresql/data:/var/lib/postgresql/data:rw
|
||||
|
||||
# elasticsearch:
|
||||
# image: elasticsearch
|
||||
# environment:
|
||||
# - transport.host=0.0.0.0
|
||||
# - discovery.zen.minimum_master_nodes=1
|
||||
# networks:
|
||||
# zbx_net_backend:
|
||||
# aliases:
|
||||
# - elasticsearch
|
||||
|
||||
networks:
|
||||
zbx_net_frontend:
|
||||
driver: bridge
|
||||
|
@ -382,6 +382,16 @@ services:
|
||||
volumes:
|
||||
- ./zbx_env/var/lib/mysql:/var/lib/mysql:rw
|
||||
|
||||
# elasticsearch:
|
||||
# image: elasticsearch
|
||||
# environment:
|
||||
# - transport.host=0.0.0.0
|
||||
# - discovery.zen.minimum_master_nodes=1
|
||||
# networks:
|
||||
# zbx_net_backend:
|
||||
# aliases:
|
||||
# - elasticsearch
|
||||
|
||||
networks:
|
||||
zbx_net_frontend:
|
||||
driver: bridge
|
||||
|
@ -414,6 +414,16 @@ services:
|
||||
volumes:
|
||||
- ./zbx_env/var/lib/mysql:/var/lib/mysql:rw
|
||||
|
||||
# elasticsearch:
|
||||
# image: elasticsearch
|
||||
# environment:
|
||||
# - transport.host=0.0.0.0
|
||||
# - discovery.zen.minimum_master_nodes=1
|
||||
# networks:
|
||||
# zbx_net_backend:
|
||||
# aliases:
|
||||
# - elasticsearch
|
||||
|
||||
networks:
|
||||
zbx_net_frontend:
|
||||
driver: bridge
|
||||
|
@ -402,6 +402,16 @@ services:
|
||||
volumes:
|
||||
- ./zbx_env/var/lib/postgresql/data:/var/lib/postgresql/data:rw
|
||||
|
||||
# elasticsearch:
|
||||
# image: elasticsearch
|
||||
# environment:
|
||||
# - transport.host=0.0.0.0
|
||||
# - discovery.zen.minimum_master_nodes=1
|
||||
# networks:
|
||||
# zbx_net_backend:
|
||||
# aliases:
|
||||
# - elasticsearch
|
||||
|
||||
networks:
|
||||
zbx_net_frontend:
|
||||
driver: bridge
|
||||
|
@ -414,6 +414,16 @@ services:
|
||||
volumes:
|
||||
- ./zbx_env/var/lib/postgresql/data:/var/lib/postgresql/data:rw
|
||||
|
||||
# elasticsearch:
|
||||
# image: elasticsearch
|
||||
# environment:
|
||||
# - transport.host=0.0.0.0
|
||||
# - discovery.zen.minimum_master_nodes=1
|
||||
# networks:
|
||||
# zbx_net_backend:
|
||||
# aliases:
|
||||
# - elasticsearch
|
||||
|
||||
networks:
|
||||
zbx_net_frontend:
|
||||
driver: bridge
|
||||
|
@ -382,6 +382,16 @@ services:
|
||||
volumes:
|
||||
- ./zbx_env/var/lib/mysql:/var/lib/mysql:rw
|
||||
|
||||
# elasticsearch:
|
||||
# image: elasticsearch
|
||||
# environment:
|
||||
# - transport.host=0.0.0.0
|
||||
# - discovery.zen.minimum_master_nodes=1
|
||||
# networks:
|
||||
# zbx_net_backend:
|
||||
# aliases:
|
||||
# - elasticsearch
|
||||
|
||||
networks:
|
||||
zbx_net_frontend:
|
||||
driver: bridge
|
||||
|
@ -414,6 +414,16 @@ services:
|
||||
volumes:
|
||||
- ./zbx_env/var/lib/mysql:/var/lib/mysql:rw
|
||||
|
||||
# elasticsearch:
|
||||
# image: elasticsearch
|
||||
# environment:
|
||||
# - transport.host=0.0.0.0
|
||||
# - discovery.zen.minimum_master_nodes=1
|
||||
# networks:
|
||||
# zbx_net_backend:
|
||||
# aliases:
|
||||
# - elasticsearch
|
||||
|
||||
networks:
|
||||
zbx_net_frontend:
|
||||
driver: bridge
|
||||
|
@ -402,6 +402,16 @@ services:
|
||||
volumes:
|
||||
- ./zbx_env/var/lib/postgresql/data:/var/lib/postgresql/data:rw
|
||||
|
||||
# elasticsearch:
|
||||
# image: elasticsearch
|
||||
# environment:
|
||||
# - transport.host=0.0.0.0
|
||||
# - discovery.zen.minimum_master_nodes=1
|
||||
# networks:
|
||||
# zbx_net_backend:
|
||||
# aliases:
|
||||
# - elasticsearch
|
||||
|
||||
networks:
|
||||
zbx_net_frontend:
|
||||
driver: bridge
|
||||
|
@ -411,6 +411,16 @@ services:
|
||||
volumes:
|
||||
- ./zbx_env/var/lib/postgresql/data:/var/lib/postgresql/data:rw
|
||||
|
||||
# elasticsearch:
|
||||
# image: elasticsearch
|
||||
# environment:
|
||||
# - transport.host=0.0.0.0
|
||||
# - discovery.zen.minimum_master_nodes=1
|
||||
# networks:
|
||||
# zbx_net_backend:
|
||||
# aliases:
|
||||
# - elasticsearch
|
||||
|
||||
networks:
|
||||
zbx_net_frontend:
|
||||
driver: bridge
|
||||
|
@ -842,6 +842,8 @@ prepare_zbx_web_config() {
|
||||
server_name=$(escape_spec_char "${ZBX_SERVER_NAME}")
|
||||
server_user=$(escape_spec_char "${DB_SERVER_ZBX_USER}")
|
||||
server_pass=$(escape_spec_char "${DB_SERVER_ZBX_PASS}")
|
||||
history_storage_url=$(escape_spec_char "${ZBX_HISTORYSTORAGEURL}")
|
||||
history_storage_types=$(escape_spec_char "${ZBX_HISTORYSTORAGETYPES}")
|
||||
|
||||
sed -i \
|
||||
-e "s/{DB_SERVER_HOST}/${DB_SERVER_HOST}/g" \
|
||||
@ -852,6 +854,8 @@ prepare_zbx_web_config() {
|
||||
-e "s/{ZBX_SERVER_HOST}/${ZBX_SERVER_HOST}/g" \
|
||||
-e "s/{ZBX_SERVER_PORT}/${ZBX_SERVER_PORT}/g" \
|
||||
-e "s/{ZBX_SERVER_NAME}/$server_name/g" \
|
||||
-e "s/{ZBX_HISTORYSTORAGEURL}/$history_storage_url/g" \
|
||||
-e "s/{ZBX_HISTORYSTORAGETYPES}/$history_storage_types/g" \
|
||||
"$ZBX_WEB_CONFIG"
|
||||
|
||||
[ "$db_type" = "postgresql" ] && sed -i "s/MYSQL/POSTGRESQL/g" "$ZBX_WEB_CONFIG"
|
||||
|
@ -842,6 +842,8 @@ prepare_zbx_web_config() {
|
||||
server_name=$(escape_spec_char "${ZBX_SERVER_NAME}")
|
||||
server_user=$(escape_spec_char "${DB_SERVER_ZBX_USER}")
|
||||
server_pass=$(escape_spec_char "${DB_SERVER_ZBX_PASS}")
|
||||
history_storage_url=$(escape_spec_char "${ZBX_HISTORYSTORAGEURL}")
|
||||
history_storage_types=$(escape_spec_char "${ZBX_HISTORYSTORAGETYPES}")
|
||||
|
||||
sed -i \
|
||||
-e "s/{DB_SERVER_HOST}/${DB_SERVER_HOST}/g" \
|
||||
@ -852,6 +854,8 @@ prepare_zbx_web_config() {
|
||||
-e "s/{ZBX_SERVER_HOST}/${ZBX_SERVER_HOST}/g" \
|
||||
-e "s/{ZBX_SERVER_PORT}/${ZBX_SERVER_PORT}/g" \
|
||||
-e "s/{ZBX_SERVER_NAME}/$server_name/g" \
|
||||
-e "s/{ZBX_HISTORYSTORAGEURL}/$history_storage_url/g" \
|
||||
-e "s/{ZBX_HISTORYSTORAGETYPES}/$history_storage_types/g" \
|
||||
"$ZBX_WEB_CONFIG"
|
||||
|
||||
[ "$db_type" = "postgresql" ] && sed -i "s/MYSQL/POSTGRESQL/g" "$ZBX_WEB_CONFIG"
|
||||
|
@ -842,6 +842,8 @@ prepare_zbx_web_config() {
|
||||
server_name=$(escape_spec_char "${ZBX_SERVER_NAME}")
|
||||
server_user=$(escape_spec_char "${DB_SERVER_ZBX_USER}")
|
||||
server_pass=$(escape_spec_char "${DB_SERVER_ZBX_PASS}")
|
||||
history_storage_url=$(escape_spec_char "${ZBX_HISTORYSTORAGEURL}")
|
||||
history_storage_types=$(escape_spec_char "${ZBX_HISTORYSTORAGETYPES}")
|
||||
|
||||
sed -i \
|
||||
-e "s/{DB_SERVER_HOST}/${DB_SERVER_HOST}/g" \
|
||||
@ -852,6 +854,8 @@ prepare_zbx_web_config() {
|
||||
-e "s/{ZBX_SERVER_HOST}/${ZBX_SERVER_HOST}/g" \
|
||||
-e "s/{ZBX_SERVER_PORT}/${ZBX_SERVER_PORT}/g" \
|
||||
-e "s/{ZBX_SERVER_NAME}/$server_name/g" \
|
||||
-e "s/{ZBX_HISTORYSTORAGEURL}/$history_storage_url/g" \
|
||||
-e "s/{ZBX_HISTORYSTORAGETYPES}/$history_storage_types/g" \
|
||||
"$ZBX_WEB_CONFIG"
|
||||
|
||||
[ "$db_type" = "postgresql" ] && sed -i "s/MYSQL/POSTGRESQL/g" "$ZBX_WEB_CONFIG"
|
||||
|
@ -842,6 +842,8 @@ prepare_zbx_web_config() {
|
||||
server_name=$(escape_spec_char "${ZBX_SERVER_NAME}")
|
||||
server_user=$(escape_spec_char "${DB_SERVER_ZBX_USER}")
|
||||
server_pass=$(escape_spec_char "${DB_SERVER_ZBX_PASS}")
|
||||
history_storage_url=$(escape_spec_char "${ZBX_HISTORYSTORAGEURL}")
|
||||
history_storage_types=$(escape_spec_char "${ZBX_HISTORYSTORAGETYPES}")
|
||||
|
||||
sed -i \
|
||||
-e "s/{DB_SERVER_HOST}/${DB_SERVER_HOST}/g" \
|
||||
@ -852,6 +854,8 @@ prepare_zbx_web_config() {
|
||||
-e "s/{ZBX_SERVER_HOST}/${ZBX_SERVER_HOST}/g" \
|
||||
-e "s/{ZBX_SERVER_PORT}/${ZBX_SERVER_PORT}/g" \
|
||||
-e "s/{ZBX_SERVER_NAME}/$server_name/g" \
|
||||
-e "s/{ZBX_HISTORYSTORAGEURL}/$history_storage_url/g" \
|
||||
-e "s/{ZBX_HISTORYSTORAGETYPES}/$history_storage_types/g" \
|
||||
"$ZBX_WEB_CONFIG"
|
||||
|
||||
[ "$db_type" = "postgresql" ] && sed -i "s/MYSQL/POSTGRESQL/g" "$ZBX_WEB_CONFIG"
|
||||
|
@ -842,6 +842,8 @@ prepare_zbx_web_config() {
|
||||
server_name=$(escape_spec_char "${ZBX_SERVER_NAME}")
|
||||
server_user=$(escape_spec_char "${DB_SERVER_ZBX_USER}")
|
||||
server_pass=$(escape_spec_char "${DB_SERVER_ZBX_PASS}")
|
||||
history_storage_url=$(escape_spec_char "${ZBX_HISTORYSTORAGEURL}")
|
||||
history_storage_types=$(escape_spec_char "${ZBX_HISTORYSTORAGETYPES}")
|
||||
|
||||
sed -i \
|
||||
-e "s/{DB_SERVER_HOST}/${DB_SERVER_HOST}/g" \
|
||||
@ -852,6 +854,8 @@ prepare_zbx_web_config() {
|
||||
-e "s/{ZBX_SERVER_HOST}/${ZBX_SERVER_HOST}/g" \
|
||||
-e "s/{ZBX_SERVER_PORT}/${ZBX_SERVER_PORT}/g" \
|
||||
-e "s/{ZBX_SERVER_NAME}/$server_name/g" \
|
||||
-e "s/{ZBX_HISTORYSTORAGEURL}/$history_storage_url/g" \
|
||||
-e "s/{ZBX_HISTORYSTORAGETYPES}/$history_storage_types/g" \
|
||||
"$ZBX_WEB_CONFIG"
|
||||
|
||||
[ "$db_type" = "postgresql" ] && sed -i "s/MYSQL/POSTGRESQL/g" "$ZBX_WEB_CONFIG"
|
||||
|
@ -842,6 +842,8 @@ prepare_zbx_web_config() {
|
||||
server_name=$(escape_spec_char "${ZBX_SERVER_NAME}")
|
||||
server_user=$(escape_spec_char "${DB_SERVER_ZBX_USER}")
|
||||
server_pass=$(escape_spec_char "${DB_SERVER_ZBX_PASS}")
|
||||
history_storage_url=$(escape_spec_char "${ZBX_HISTORYSTORAGEURL}")
|
||||
history_storage_types=$(escape_spec_char "${ZBX_HISTORYSTORAGETYPES}")
|
||||
|
||||
sed -i \
|
||||
-e "s/{DB_SERVER_HOST}/${DB_SERVER_HOST}/g" \
|
||||
@ -852,6 +854,8 @@ prepare_zbx_web_config() {
|
||||
-e "s/{ZBX_SERVER_HOST}/${ZBX_SERVER_HOST}/g" \
|
||||
-e "s/{ZBX_SERVER_PORT}/${ZBX_SERVER_PORT}/g" \
|
||||
-e "s/{ZBX_SERVER_NAME}/$server_name/g" \
|
||||
-e "s/{ZBX_HISTORYSTORAGEURL}/$history_storage_url/g" \
|
||||
-e "s/{ZBX_HISTORYSTORAGETYPES}/$history_storage_types/g" \
|
||||
"$ZBX_WEB_CONFIG"
|
||||
|
||||
[ "$db_type" = "postgresql" ] && sed -i "s/MYSQL/POSTGRESQL/g" "$ZBX_WEB_CONFIG"
|
||||
|
@ -842,6 +842,8 @@ prepare_zbx_web_config() {
|
||||
server_name=$(escape_spec_char "${ZBX_SERVER_NAME}")
|
||||
server_user=$(escape_spec_char "${DB_SERVER_ZBX_USER}")
|
||||
server_pass=$(escape_spec_char "${DB_SERVER_ZBX_PASS}")
|
||||
history_storage_url=$(escape_spec_char "${ZBX_HISTORYSTORAGEURL}")
|
||||
history_storage_types=$(escape_spec_char "${ZBX_HISTORYSTORAGETYPES}")
|
||||
|
||||
sed -i \
|
||||
-e "s/{DB_SERVER_HOST}/${DB_SERVER_HOST}/g" \
|
||||
@ -852,6 +854,8 @@ prepare_zbx_web_config() {
|
||||
-e "s/{ZBX_SERVER_HOST}/${ZBX_SERVER_HOST}/g" \
|
||||
-e "s/{ZBX_SERVER_PORT}/${ZBX_SERVER_PORT}/g" \
|
||||
-e "s/{ZBX_SERVER_NAME}/$server_name/g" \
|
||||
-e "s/{ZBX_HISTORYSTORAGEURL}/$history_storage_url/g" \
|
||||
-e "s/{ZBX_HISTORYSTORAGETYPES}/$history_storage_types/g" \
|
||||
"$ZBX_WEB_CONFIG"
|
||||
|
||||
[ "$db_type" = "postgresql" ] && sed -i "s/MYSQL/POSTGRESQL/g" "$ZBX_WEB_CONFIG"
|
||||
|
@ -842,6 +842,8 @@ prepare_zbx_web_config() {
|
||||
server_name=$(escape_spec_char "${ZBX_SERVER_NAME}")
|
||||
server_user=$(escape_spec_char "${DB_SERVER_ZBX_USER}")
|
||||
server_pass=$(escape_spec_char "${DB_SERVER_ZBX_PASS}")
|
||||
history_storage_url=$(escape_spec_char "${ZBX_HISTORYSTORAGEURL}")
|
||||
history_storage_types=$(escape_spec_char "${ZBX_HISTORYSTORAGETYPES}")
|
||||
|
||||
sed -i \
|
||||
-e "s/{DB_SERVER_HOST}/${DB_SERVER_HOST}/g" \
|
||||
@ -852,6 +854,8 @@ prepare_zbx_web_config() {
|
||||
-e "s/{ZBX_SERVER_HOST}/${ZBX_SERVER_HOST}/g" \
|
||||
-e "s/{ZBX_SERVER_PORT}/${ZBX_SERVER_PORT}/g" \
|
||||
-e "s/{ZBX_SERVER_NAME}/$server_name/g" \
|
||||
-e "s/{ZBX_HISTORYSTORAGEURL}/$history_storage_url/g" \
|
||||
-e "s/{ZBX_HISTORYSTORAGETYPES}/$history_storage_types/g" \
|
||||
"$ZBX_WEB_CONFIG"
|
||||
|
||||
[ "$db_type" = "postgresql" ] && sed -i "s/MYSQL/POSTGRESQL/g" "$ZBX_WEB_CONFIG"
|
||||
|
@ -842,6 +842,8 @@ prepare_zbx_web_config() {
|
||||
server_name=$(escape_spec_char "${ZBX_SERVER_NAME}")
|
||||
server_user=$(escape_spec_char "${DB_SERVER_ZBX_USER}")
|
||||
server_pass=$(escape_spec_char "${DB_SERVER_ZBX_PASS}")
|
||||
history_storage_url=$(escape_spec_char "${ZBX_HISTORYSTORAGEURL}")
|
||||
history_storage_types=$(escape_spec_char "${ZBX_HISTORYSTORAGETYPES}")
|
||||
|
||||
sed -i \
|
||||
-e "s/{DB_SERVER_HOST}/${DB_SERVER_HOST}/g" \
|
||||
@ -852,6 +854,8 @@ prepare_zbx_web_config() {
|
||||
-e "s/{ZBX_SERVER_HOST}/${ZBX_SERVER_HOST}/g" \
|
||||
-e "s/{ZBX_SERVER_PORT}/${ZBX_SERVER_PORT}/g" \
|
||||
-e "s/{ZBX_SERVER_NAME}/$server_name/g" \
|
||||
-e "s/{ZBX_HISTORYSTORAGEURL}/$history_storage_url/g" \
|
||||
-e "s/{ZBX_HISTORYSTORAGETYPES}/$history_storage_types/g" \
|
||||
"$ZBX_WEB_CONFIG"
|
||||
|
||||
[ "$db_type" = "postgresql" ] && sed -i "s/MYSQL/POSTGRESQL/g" "$ZBX_WEB_CONFIG"
|
||||
|
@ -842,6 +842,8 @@ prepare_zbx_web_config() {
|
||||
server_name=$(escape_spec_char "${ZBX_SERVER_NAME}")
|
||||
server_user=$(escape_spec_char "${DB_SERVER_ZBX_USER}")
|
||||
server_pass=$(escape_spec_char "${DB_SERVER_ZBX_PASS}")
|
||||
history_storage_url=$(escape_spec_char "${ZBX_HISTORYSTORAGEURL}")
|
||||
history_storage_types=$(escape_spec_char "${ZBX_HISTORYSTORAGETYPES}")
|
||||
|
||||
sed -i \
|
||||
-e "s/{DB_SERVER_HOST}/${DB_SERVER_HOST}/g" \
|
||||
@ -852,6 +854,8 @@ prepare_zbx_web_config() {
|
||||
-e "s/{ZBX_SERVER_HOST}/${ZBX_SERVER_HOST}/g" \
|
||||
-e "s/{ZBX_SERVER_PORT}/${ZBX_SERVER_PORT}/g" \
|
||||
-e "s/{ZBX_SERVER_NAME}/$server_name/g" \
|
||||
-e "s/{ZBX_HISTORYSTORAGEURL}/$history_storage_url/g" \
|
||||
-e "s/{ZBX_HISTORYSTORAGETYPES}/$history_storage_types/g" \
|
||||
"$ZBX_WEB_CONFIG"
|
||||
|
||||
[ "$db_type" = "postgresql" ] && sed -i "s/MYSQL/POSTGRESQL/g" "$ZBX_WEB_CONFIG"
|
||||
|
@ -842,6 +842,8 @@ prepare_zbx_web_config() {
|
||||
server_name=$(escape_spec_char "${ZBX_SERVER_NAME}")
|
||||
server_user=$(escape_spec_char "${DB_SERVER_ZBX_USER}")
|
||||
server_pass=$(escape_spec_char "${DB_SERVER_ZBX_PASS}")
|
||||
history_storage_url=$(escape_spec_char "${ZBX_HISTORYSTORAGEURL}")
|
||||
history_storage_types=$(escape_spec_char "${ZBX_HISTORYSTORAGETYPES}")
|
||||
|
||||
sed -i \
|
||||
-e "s/{DB_SERVER_HOST}/${DB_SERVER_HOST}/g" \
|
||||
@ -852,6 +854,8 @@ prepare_zbx_web_config() {
|
||||
-e "s/{ZBX_SERVER_HOST}/${ZBX_SERVER_HOST}/g" \
|
||||
-e "s/{ZBX_SERVER_PORT}/${ZBX_SERVER_PORT}/g" \
|
||||
-e "s/{ZBX_SERVER_NAME}/$server_name/g" \
|
||||
-e "s/{ZBX_HISTORYSTORAGEURL}/$history_storage_url/g" \
|
||||
-e "s/{ZBX_HISTORYSTORAGETYPES}/$history_storage_types/g" \
|
||||
"$ZBX_WEB_CONFIG"
|
||||
|
||||
[ "$db_type" = "postgresql" ] && sed -i "s/MYSQL/POSTGRESQL/g" "$ZBX_WEB_CONFIG"
|
||||
|
@ -842,6 +842,8 @@ prepare_zbx_web_config() {
|
||||
server_name=$(escape_spec_char "${ZBX_SERVER_NAME}")
|
||||
server_user=$(escape_spec_char "${DB_SERVER_ZBX_USER}")
|
||||
server_pass=$(escape_spec_char "${DB_SERVER_ZBX_PASS}")
|
||||
history_storage_url=$(escape_spec_char "${ZBX_HISTORYSTORAGEURL}")
|
||||
history_storage_types=$(escape_spec_char "${ZBX_HISTORYSTORAGETYPES}")
|
||||
|
||||
sed -i \
|
||||
-e "s/{DB_SERVER_HOST}/${DB_SERVER_HOST}/g" \
|
||||
@ -852,6 +854,8 @@ prepare_zbx_web_config() {
|
||||
-e "s/{ZBX_SERVER_HOST}/${ZBX_SERVER_HOST}/g" \
|
||||
-e "s/{ZBX_SERVER_PORT}/${ZBX_SERVER_PORT}/g" \
|
||||
-e "s/{ZBX_SERVER_NAME}/$server_name/g" \
|
||||
-e "s/{ZBX_HISTORYSTORAGEURL}/$history_storage_url/g" \
|
||||
-e "s/{ZBX_HISTORYSTORAGETYPES}/$history_storage_types/g" \
|
||||
"$ZBX_WEB_CONFIG"
|
||||
|
||||
[ "$db_type" = "postgresql" ] && sed -i "s/MYSQL/POSTGRESQL/g" "$ZBX_WEB_CONFIG"
|
||||
|
@ -842,6 +842,8 @@ prepare_zbx_web_config() {
|
||||
server_name=$(escape_spec_char "${ZBX_SERVER_NAME}")
|
||||
server_user=$(escape_spec_char "${DB_SERVER_ZBX_USER}")
|
||||
server_pass=$(escape_spec_char "${DB_SERVER_ZBX_PASS}")
|
||||
history_storage_url=$(escape_spec_char "${ZBX_HISTORYSTORAGEURL}")
|
||||
history_storage_types=$(escape_spec_char "${ZBX_HISTORYSTORAGETYPES}")
|
||||
|
||||
sed -i \
|
||||
-e "s/{DB_SERVER_HOST}/${DB_SERVER_HOST}/g" \
|
||||
@ -852,6 +854,8 @@ prepare_zbx_web_config() {
|
||||
-e "s/{ZBX_SERVER_HOST}/${ZBX_SERVER_HOST}/g" \
|
||||
-e "s/{ZBX_SERVER_PORT}/${ZBX_SERVER_PORT}/g" \
|
||||
-e "s/{ZBX_SERVER_NAME}/$server_name/g" \
|
||||
-e "s/{ZBX_HISTORYSTORAGEURL}/$history_storage_url/g" \
|
||||
-e "s/{ZBX_HISTORYSTORAGETYPES}/$history_storage_types/g" \
|
||||
"$ZBX_WEB_CONFIG"
|
||||
|
||||
[ "$db_type" = "postgresql" ] && sed -i "s/MYSQL/POSTGRESQL/g" "$ZBX_WEB_CONFIG"
|
||||
|
@ -842,6 +842,8 @@ prepare_zbx_web_config() {
|
||||
server_name=$(escape_spec_char "${ZBX_SERVER_NAME}")
|
||||
server_user=$(escape_spec_char "${DB_SERVER_ZBX_USER}")
|
||||
server_pass=$(escape_spec_char "${DB_SERVER_ZBX_PASS}")
|
||||
history_storage_url=$(escape_spec_char "${ZBX_HISTORYSTORAGEURL}")
|
||||
history_storage_types=$(escape_spec_char "${ZBX_HISTORYSTORAGETYPES}")
|
||||
|
||||
sed -i \
|
||||
-e "s/{DB_SERVER_HOST}/${DB_SERVER_HOST}/g" \
|
||||
@ -852,6 +854,8 @@ prepare_zbx_web_config() {
|
||||
-e "s/{ZBX_SERVER_HOST}/${ZBX_SERVER_HOST}/g" \
|
||||
-e "s/{ZBX_SERVER_PORT}/${ZBX_SERVER_PORT}/g" \
|
||||
-e "s/{ZBX_SERVER_NAME}/$server_name/g" \
|
||||
-e "s/{ZBX_HISTORYSTORAGEURL}/$history_storage_url/g" \
|
||||
-e "s/{ZBX_HISTORYSTORAGETYPES}/$history_storage_types/g" \
|
||||
"$ZBX_WEB_CONFIG"
|
||||
|
||||
[ "$db_type" = "postgresql" ] && sed -i "s/MYSQL/POSTGRESQL/g" "$ZBX_WEB_CONFIG"
|
||||
|
@ -842,6 +842,8 @@ prepare_zbx_web_config() {
|
||||
server_name=$(escape_spec_char "${ZBX_SERVER_NAME}")
|
||||
server_user=$(escape_spec_char "${DB_SERVER_ZBX_USER}")
|
||||
server_pass=$(escape_spec_char "${DB_SERVER_ZBX_PASS}")
|
||||
history_storage_url=$(escape_spec_char "${ZBX_HISTORYSTORAGEURL}")
|
||||
history_storage_types=$(escape_spec_char "${ZBX_HISTORYSTORAGETYPES}")
|
||||
|
||||
sed -i \
|
||||
-e "s/{DB_SERVER_HOST}/${DB_SERVER_HOST}/g" \
|
||||
@ -852,6 +854,8 @@ prepare_zbx_web_config() {
|
||||
-e "s/{ZBX_SERVER_HOST}/${ZBX_SERVER_HOST}/g" \
|
||||
-e "s/{ZBX_SERVER_PORT}/${ZBX_SERVER_PORT}/g" \
|
||||
-e "s/{ZBX_SERVER_NAME}/$server_name/g" \
|
||||
-e "s/{ZBX_HISTORYSTORAGEURL}/$history_storage_url/g" \
|
||||
-e "s/{ZBX_HISTORYSTORAGETYPES}/$history_storage_types/g" \
|
||||
"$ZBX_WEB_CONFIG"
|
||||
|
||||
[ "$db_type" = "postgresql" ] && sed -i "s/MYSQL/POSTGRESQL/g" "$ZBX_WEB_CONFIG"
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
// Zabbix GUI configuration file.
|
||||
global $DB;
|
||||
global $DB, $HISTORY;
|
||||
|
||||
$DB['TYPE'] = 'MYSQL';
|
||||
$DB['SERVER'] = '{DB_SERVER_HOST}';
|
||||
@ -16,5 +16,9 @@ $ZBX_SERVER = '{ZBX_SERVER_HOST}';
|
||||
$ZBX_SERVER_PORT = '{ZBX_SERVER_PORT}';
|
||||
$ZBX_SERVER_NAME = '{ZBX_SERVER_NAME}';
|
||||
|
||||
$IMAGE_FORMAT_DEFAULT = IMAGE_FORMAT_PNG;
|
||||
?>
|
||||
$IMAGE_FORMAT_DEFAULT = IMAGE_FORMAT_PNG;
|
||||
|
||||
// Elasticsearch url (can be string if same url is used for all types).
|
||||
$HISTORY['url'] = '{ZBX_HISTORYSTORAGEURL}';
|
||||
// Value types stored in Elasticsearch.
|
||||
$HISTORY['types'] = {ZBX_HISTORYSTORAGETYPES};
|
||||
|
@ -842,6 +842,8 @@ prepare_zbx_web_config() {
|
||||
server_name=$(escape_spec_char "${ZBX_SERVER_NAME}")
|
||||
server_user=$(escape_spec_char "${DB_SERVER_ZBX_USER}")
|
||||
server_pass=$(escape_spec_char "${DB_SERVER_ZBX_PASS}")
|
||||
history_storage_url=$(escape_spec_char "${ZBX_HISTORYSTORAGEURL}")
|
||||
history_storage_types=$(escape_spec_char "${ZBX_HISTORYSTORAGETYPES}")
|
||||
|
||||
sed -i \
|
||||
-e "s/{DB_SERVER_HOST}/${DB_SERVER_HOST}/g" \
|
||||
@ -852,6 +854,8 @@ prepare_zbx_web_config() {
|
||||
-e "s/{ZBX_SERVER_HOST}/${ZBX_SERVER_HOST}/g" \
|
||||
-e "s/{ZBX_SERVER_PORT}/${ZBX_SERVER_PORT}/g" \
|
||||
-e "s/{ZBX_SERVER_NAME}/$server_name/g" \
|
||||
-e "s/{ZBX_HISTORYSTORAGEURL}/$history_storage_url/g" \
|
||||
-e "s/{ZBX_HISTORYSTORAGETYPES}/$history_storage_types/g" \
|
||||
"$ZBX_WEB_CONFIG"
|
||||
|
||||
[ "$db_type" = "postgresql" ] && sed -i "s/MYSQL/POSTGRESQL/g" "$ZBX_WEB_CONFIG"
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
// Zabbix GUI configuration file.
|
||||
global $DB;
|
||||
global $DB, $HISTORY;
|
||||
|
||||
$DB['TYPE'] = 'MYSQL';
|
||||
$DB['SERVER'] = '{DB_SERVER_HOST}';
|
||||
@ -16,5 +16,9 @@ $ZBX_SERVER = '{ZBX_SERVER_HOST}';
|
||||
$ZBX_SERVER_PORT = '{ZBX_SERVER_PORT}';
|
||||
$ZBX_SERVER_NAME = '{ZBX_SERVER_NAME}';
|
||||
|
||||
$IMAGE_FORMAT_DEFAULT = IMAGE_FORMAT_PNG;
|
||||
?>
|
||||
$IMAGE_FORMAT_DEFAULT = IMAGE_FORMAT_PNG;
|
||||
|
||||
// Elasticsearch url (can be string if same url is used for all types).
|
||||
$HISTORY['url'] = '{ZBX_HISTORYSTORAGEURL}';
|
||||
// Value types stored in Elasticsearch.
|
||||
$HISTORY['types'] = {ZBX_HISTORYSTORAGETYPES};
|
||||
|
@ -842,6 +842,8 @@ prepare_zbx_web_config() {
|
||||
server_name=$(escape_spec_char "${ZBX_SERVER_NAME}")
|
||||
server_user=$(escape_spec_char "${DB_SERVER_ZBX_USER}")
|
||||
server_pass=$(escape_spec_char "${DB_SERVER_ZBX_PASS}")
|
||||
history_storage_url=$(escape_spec_char "${ZBX_HISTORYSTORAGEURL}")
|
||||
history_storage_types=$(escape_spec_char "${ZBX_HISTORYSTORAGETYPES}")
|
||||
|
||||
sed -i \
|
||||
-e "s/{DB_SERVER_HOST}/${DB_SERVER_HOST}/g" \
|
||||
@ -852,6 +854,8 @@ prepare_zbx_web_config() {
|
||||
-e "s/{ZBX_SERVER_HOST}/${ZBX_SERVER_HOST}/g" \
|
||||
-e "s/{ZBX_SERVER_PORT}/${ZBX_SERVER_PORT}/g" \
|
||||
-e "s/{ZBX_SERVER_NAME}/$server_name/g" \
|
||||
-e "s/{ZBX_HISTORYSTORAGEURL}/$history_storage_url/g" \
|
||||
-e "s/{ZBX_HISTORYSTORAGETYPES}/$history_storage_types/g" \
|
||||
"$ZBX_WEB_CONFIG"
|
||||
|
||||
[ "$db_type" = "postgresql" ] && sed -i "s/MYSQL/POSTGRESQL/g" "$ZBX_WEB_CONFIG"
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
// Zabbix GUI configuration file.
|
||||
global $DB;
|
||||
global $DB, $HISTORY;
|
||||
|
||||
$DB['TYPE'] = 'MYSQL';
|
||||
$DB['SERVER'] = '{DB_SERVER_HOST}';
|
||||
@ -16,5 +16,9 @@ $ZBX_SERVER = '{ZBX_SERVER_HOST}';
|
||||
$ZBX_SERVER_PORT = '{ZBX_SERVER_PORT}';
|
||||
$ZBX_SERVER_NAME = '{ZBX_SERVER_NAME}';
|
||||
|
||||
$IMAGE_FORMAT_DEFAULT = IMAGE_FORMAT_PNG;
|
||||
?>
|
||||
$IMAGE_FORMAT_DEFAULT = IMAGE_FORMAT_PNG;
|
||||
|
||||
// Elasticsearch url (can be string if same url is used for all types).
|
||||
$HISTORY['url'] = '{ZBX_HISTORYSTORAGEURL}';
|
||||
// Value types stored in Elasticsearch.
|
||||
$HISTORY['types'] = {ZBX_HISTORYSTORAGETYPES};
|
||||
|
@ -842,6 +842,8 @@ prepare_zbx_web_config() {
|
||||
server_name=$(escape_spec_char "${ZBX_SERVER_NAME}")
|
||||
server_user=$(escape_spec_char "${DB_SERVER_ZBX_USER}")
|
||||
server_pass=$(escape_spec_char "${DB_SERVER_ZBX_PASS}")
|
||||
history_storage_url=$(escape_spec_char "${ZBX_HISTORYSTORAGEURL}")
|
||||
history_storage_types=$(escape_spec_char "${ZBX_HISTORYSTORAGETYPES}")
|
||||
|
||||
sed -i \
|
||||
-e "s/{DB_SERVER_HOST}/${DB_SERVER_HOST}/g" \
|
||||
@ -852,6 +854,8 @@ prepare_zbx_web_config() {
|
||||
-e "s/{ZBX_SERVER_HOST}/${ZBX_SERVER_HOST}/g" \
|
||||
-e "s/{ZBX_SERVER_PORT}/${ZBX_SERVER_PORT}/g" \
|
||||
-e "s/{ZBX_SERVER_NAME}/$server_name/g" \
|
||||
-e "s/{ZBX_HISTORYSTORAGEURL}/$history_storage_url/g" \
|
||||
-e "s/{ZBX_HISTORYSTORAGETYPES}/$history_storage_types/g" \
|
||||
"$ZBX_WEB_CONFIG"
|
||||
|
||||
[ "$db_type" = "postgresql" ] && sed -i "s/MYSQL/POSTGRESQL/g" "$ZBX_WEB_CONFIG"
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
// Zabbix GUI configuration file.
|
||||
global $DB;
|
||||
global $DB, $HISTORY;
|
||||
|
||||
$DB['TYPE'] = 'MYSQL';
|
||||
$DB['SERVER'] = '{DB_SERVER_HOST}';
|
||||
@ -16,5 +16,9 @@ $ZBX_SERVER = '{ZBX_SERVER_HOST}';
|
||||
$ZBX_SERVER_PORT = '{ZBX_SERVER_PORT}';
|
||||
$ZBX_SERVER_NAME = '{ZBX_SERVER_NAME}';
|
||||
|
||||
$IMAGE_FORMAT_DEFAULT = IMAGE_FORMAT_PNG;
|
||||
?>
|
||||
$IMAGE_FORMAT_DEFAULT = IMAGE_FORMAT_PNG;
|
||||
|
||||
// Elasticsearch url (can be string if same url is used for all types).
|
||||
$HISTORY['url'] = '{ZBX_HISTORYSTORAGEURL}';
|
||||
// Value types stored in Elasticsearch.
|
||||
$HISTORY['types'] = {ZBX_HISTORYSTORAGETYPES};
|
||||
|
@ -842,6 +842,8 @@ prepare_zbx_web_config() {
|
||||
server_name=$(escape_spec_char "${ZBX_SERVER_NAME}")
|
||||
server_user=$(escape_spec_char "${DB_SERVER_ZBX_USER}")
|
||||
server_pass=$(escape_spec_char "${DB_SERVER_ZBX_PASS}")
|
||||
history_storage_url=$(escape_spec_char "${ZBX_HISTORYSTORAGEURL}")
|
||||
history_storage_types=$(escape_spec_char "${ZBX_HISTORYSTORAGETYPES}")
|
||||
|
||||
sed -i \
|
||||
-e "s/{DB_SERVER_HOST}/${DB_SERVER_HOST}/g" \
|
||||
@ -852,6 +854,8 @@ prepare_zbx_web_config() {
|
||||
-e "s/{ZBX_SERVER_HOST}/${ZBX_SERVER_HOST}/g" \
|
||||
-e "s/{ZBX_SERVER_PORT}/${ZBX_SERVER_PORT}/g" \
|
||||
-e "s/{ZBX_SERVER_NAME}/$server_name/g" \
|
||||
-e "s/{ZBX_HISTORYSTORAGEURL}/$history_storage_url/g" \
|
||||
-e "s/{ZBX_HISTORYSTORAGETYPES}/$history_storage_types/g" \
|
||||
"$ZBX_WEB_CONFIG"
|
||||
|
||||
[ "$db_type" = "postgresql" ] && sed -i "s/MYSQL/POSTGRESQL/g" "$ZBX_WEB_CONFIG"
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
// Zabbix GUI configuration file.
|
||||
global $DB;
|
||||
global $DB, $HISTORY;
|
||||
|
||||
$DB['TYPE'] = 'MYSQL';
|
||||
$DB['SERVER'] = '{DB_SERVER_HOST}';
|
||||
@ -16,5 +16,9 @@ $ZBX_SERVER = '{ZBX_SERVER_HOST}';
|
||||
$ZBX_SERVER_PORT = '{ZBX_SERVER_PORT}';
|
||||
$ZBX_SERVER_NAME = '{ZBX_SERVER_NAME}';
|
||||
|
||||
$IMAGE_FORMAT_DEFAULT = IMAGE_FORMAT_PNG;
|
||||
?>
|
||||
$IMAGE_FORMAT_DEFAULT = IMAGE_FORMAT_PNG;
|
||||
|
||||
// Elasticsearch url (can be string if same url is used for all types).
|
||||
$HISTORY['url'] = '{ZBX_HISTORYSTORAGEURL}';
|
||||
// Value types stored in Elasticsearch.
|
||||
$HISTORY['types'] = {ZBX_HISTORYSTORAGETYPES};
|
||||
|
@ -842,6 +842,8 @@ prepare_zbx_web_config() {
|
||||
server_name=$(escape_spec_char "${ZBX_SERVER_NAME}")
|
||||
server_user=$(escape_spec_char "${DB_SERVER_ZBX_USER}")
|
||||
server_pass=$(escape_spec_char "${DB_SERVER_ZBX_PASS}")
|
||||
history_storage_url=$(escape_spec_char "${ZBX_HISTORYSTORAGEURL}")
|
||||
history_storage_types=$(escape_spec_char "${ZBX_HISTORYSTORAGETYPES}")
|
||||
|
||||
sed -i \
|
||||
-e "s/{DB_SERVER_HOST}/${DB_SERVER_HOST}/g" \
|
||||
@ -852,6 +854,8 @@ prepare_zbx_web_config() {
|
||||
-e "s/{ZBX_SERVER_HOST}/${ZBX_SERVER_HOST}/g" \
|
||||
-e "s/{ZBX_SERVER_PORT}/${ZBX_SERVER_PORT}/g" \
|
||||
-e "s/{ZBX_SERVER_NAME}/$server_name/g" \
|
||||
-e "s/{ZBX_HISTORYSTORAGEURL}/$history_storage_url/g" \
|
||||
-e "s/{ZBX_HISTORYSTORAGETYPES}/$history_storage_types/g" \
|
||||
"$ZBX_WEB_CONFIG"
|
||||
|
||||
[ "$db_type" = "postgresql" ] && sed -i "s/MYSQL/POSTGRESQL/g" "$ZBX_WEB_CONFIG"
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
// Zabbix GUI configuration file.
|
||||
global $DB;
|
||||
global $DB, $HISTORY;
|
||||
|
||||
$DB['TYPE'] = 'MYSQL';
|
||||
$DB['SERVER'] = '{DB_SERVER_HOST}';
|
||||
@ -16,5 +16,9 @@ $ZBX_SERVER = '{ZBX_SERVER_HOST}';
|
||||
$ZBX_SERVER_PORT = '{ZBX_SERVER_PORT}';
|
||||
$ZBX_SERVER_NAME = '{ZBX_SERVER_NAME}';
|
||||
|
||||
$IMAGE_FORMAT_DEFAULT = IMAGE_FORMAT_PNG;
|
||||
?>
|
||||
$IMAGE_FORMAT_DEFAULT = IMAGE_FORMAT_PNG;
|
||||
|
||||
// Elasticsearch url (can be string if same url is used for all types).
|
||||
$HISTORY['url'] = '{ZBX_HISTORYSTORAGEURL}';
|
||||
// Value types stored in Elasticsearch.
|
||||
$HISTORY['types'] = {ZBX_HISTORYSTORAGETYPES};
|
||||
|
@ -842,6 +842,8 @@ prepare_zbx_web_config() {
|
||||
server_name=$(escape_spec_char "${ZBX_SERVER_NAME}")
|
||||
server_user=$(escape_spec_char "${DB_SERVER_ZBX_USER}")
|
||||
server_pass=$(escape_spec_char "${DB_SERVER_ZBX_PASS}")
|
||||
history_storage_url=$(escape_spec_char "${ZBX_HISTORYSTORAGEURL}")
|
||||
history_storage_types=$(escape_spec_char "${ZBX_HISTORYSTORAGETYPES}")
|
||||
|
||||
sed -i \
|
||||
-e "s/{DB_SERVER_HOST}/${DB_SERVER_HOST}/g" \
|
||||
@ -852,6 +854,8 @@ prepare_zbx_web_config() {
|
||||
-e "s/{ZBX_SERVER_HOST}/${ZBX_SERVER_HOST}/g" \
|
||||
-e "s/{ZBX_SERVER_PORT}/${ZBX_SERVER_PORT}/g" \
|
||||
-e "s/{ZBX_SERVER_NAME}/$server_name/g" \
|
||||
-e "s/{ZBX_HISTORYSTORAGEURL}/$history_storage_url/g" \
|
||||
-e "s/{ZBX_HISTORYSTORAGETYPES}/$history_storage_types/g" \
|
||||
"$ZBX_WEB_CONFIG"
|
||||
|
||||
[ "$db_type" = "postgresql" ] && sed -i "s/MYSQL/POSTGRESQL/g" "$ZBX_WEB_CONFIG"
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
// Zabbix GUI configuration file.
|
||||
global $DB;
|
||||
global $DB, $HISTORY;
|
||||
|
||||
$DB['TYPE'] = 'MYSQL';
|
||||
$DB['SERVER'] = '{DB_SERVER_HOST}';
|
||||
@ -16,5 +16,9 @@ $ZBX_SERVER = '{ZBX_SERVER_HOST}';
|
||||
$ZBX_SERVER_PORT = '{ZBX_SERVER_PORT}';
|
||||
$ZBX_SERVER_NAME = '{ZBX_SERVER_NAME}';
|
||||
|
||||
$IMAGE_FORMAT_DEFAULT = IMAGE_FORMAT_PNG;
|
||||
?>
|
||||
$IMAGE_FORMAT_DEFAULT = IMAGE_FORMAT_PNG;
|
||||
|
||||
// Elasticsearch url (can be string if same url is used for all types).
|
||||
$HISTORY['url'] = '{ZBX_HISTORYSTORAGEURL}';
|
||||
// Value types stored in Elasticsearch.
|
||||
$HISTORY['types'] = {ZBX_HISTORYSTORAGETYPES};
|
||||
|
@ -842,6 +842,8 @@ prepare_zbx_web_config() {
|
||||
server_name=$(escape_spec_char "${ZBX_SERVER_NAME}")
|
||||
server_user=$(escape_spec_char "${DB_SERVER_ZBX_USER}")
|
||||
server_pass=$(escape_spec_char "${DB_SERVER_ZBX_PASS}")
|
||||
history_storage_url=$(escape_spec_char "${ZBX_HISTORYSTORAGEURL}")
|
||||
history_storage_types=$(escape_spec_char "${ZBX_HISTORYSTORAGETYPES}")
|
||||
|
||||
sed -i \
|
||||
-e "s/{DB_SERVER_HOST}/${DB_SERVER_HOST}/g" \
|
||||
@ -852,6 +854,8 @@ prepare_zbx_web_config() {
|
||||
-e "s/{ZBX_SERVER_HOST}/${ZBX_SERVER_HOST}/g" \
|
||||
-e "s/{ZBX_SERVER_PORT}/${ZBX_SERVER_PORT}/g" \
|
||||
-e "s/{ZBX_SERVER_NAME}/$server_name/g" \
|
||||
-e "s/{ZBX_HISTORYSTORAGEURL}/$history_storage_url/g" \
|
||||
-e "s/{ZBX_HISTORYSTORAGETYPES}/$history_storage_types/g" \
|
||||
"$ZBX_WEB_CONFIG"
|
||||
|
||||
[ "$db_type" = "postgresql" ] && sed -i "s/MYSQL/POSTGRESQL/g" "$ZBX_WEB_CONFIG"
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
// Zabbix GUI configuration file.
|
||||
global $DB;
|
||||
global $DB, $HISTORY;
|
||||
|
||||
$DB['TYPE'] = 'MYSQL';
|
||||
$DB['SERVER'] = '{DB_SERVER_HOST}';
|
||||
@ -16,5 +16,9 @@ $ZBX_SERVER = '{ZBX_SERVER_HOST}';
|
||||
$ZBX_SERVER_PORT = '{ZBX_SERVER_PORT}';
|
||||
$ZBX_SERVER_NAME = '{ZBX_SERVER_NAME}';
|
||||
|
||||
$IMAGE_FORMAT_DEFAULT = IMAGE_FORMAT_PNG;
|
||||
?>
|
||||
$IMAGE_FORMAT_DEFAULT = IMAGE_FORMAT_PNG;
|
||||
|
||||
// Elasticsearch url (can be string if same url is used for all types).
|
||||
$HISTORY['url'] = '{ZBX_HISTORYSTORAGEURL}';
|
||||
// Value types stored in Elasticsearch.
|
||||
$HISTORY['types'] = {ZBX_HISTORYSTORAGETYPES};
|
||||
|
@ -842,6 +842,8 @@ prepare_zbx_web_config() {
|
||||
server_name=$(escape_spec_char "${ZBX_SERVER_NAME}")
|
||||
server_user=$(escape_spec_char "${DB_SERVER_ZBX_USER}")
|
||||
server_pass=$(escape_spec_char "${DB_SERVER_ZBX_PASS}")
|
||||
history_storage_url=$(escape_spec_char "${ZBX_HISTORYSTORAGEURL}")
|
||||
history_storage_types=$(escape_spec_char "${ZBX_HISTORYSTORAGETYPES}")
|
||||
|
||||
sed -i \
|
||||
-e "s/{DB_SERVER_HOST}/${DB_SERVER_HOST}/g" \
|
||||
@ -852,6 +854,8 @@ prepare_zbx_web_config() {
|
||||
-e "s/{ZBX_SERVER_HOST}/${ZBX_SERVER_HOST}/g" \
|
||||
-e "s/{ZBX_SERVER_PORT}/${ZBX_SERVER_PORT}/g" \
|
||||
-e "s/{ZBX_SERVER_NAME}/$server_name/g" \
|
||||
-e "s/{ZBX_HISTORYSTORAGEURL}/$history_storage_url/g" \
|
||||
-e "s/{ZBX_HISTORYSTORAGETYPES}/$history_storage_types/g" \
|
||||
"$ZBX_WEB_CONFIG"
|
||||
|
||||
[ "$db_type" = "postgresql" ] && sed -i "s/MYSQL/POSTGRESQL/g" "$ZBX_WEB_CONFIG"
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
// Zabbix GUI configuration file.
|
||||
global $DB;
|
||||
global $DB, $HISTORY;
|
||||
|
||||
$DB['TYPE'] = 'MYSQL';
|
||||
$DB['SERVER'] = '{DB_SERVER_HOST}';
|
||||
@ -16,5 +16,9 @@ $ZBX_SERVER = '{ZBX_SERVER_HOST}';
|
||||
$ZBX_SERVER_PORT = '{ZBX_SERVER_PORT}';
|
||||
$ZBX_SERVER_NAME = '{ZBX_SERVER_NAME}';
|
||||
|
||||
$IMAGE_FORMAT_DEFAULT = IMAGE_FORMAT_PNG;
|
||||
?>
|
||||
$IMAGE_FORMAT_DEFAULT = IMAGE_FORMAT_PNG;
|
||||
|
||||
// Elasticsearch url (can be string if same url is used for all types).
|
||||
$HISTORY['url'] = '{ZBX_HISTORYSTORAGEURL}';
|
||||
// Value types stored in Elasticsearch.
|
||||
$HISTORY['types'] = {ZBX_HISTORYSTORAGETYPES};
|
||||
|
@ -842,6 +842,8 @@ prepare_zbx_web_config() {
|
||||
server_name=$(escape_spec_char "${ZBX_SERVER_NAME}")
|
||||
server_user=$(escape_spec_char "${DB_SERVER_ZBX_USER}")
|
||||
server_pass=$(escape_spec_char "${DB_SERVER_ZBX_PASS}")
|
||||
history_storage_url=$(escape_spec_char "${ZBX_HISTORYSTORAGEURL}")
|
||||
history_storage_types=$(escape_spec_char "${ZBX_HISTORYSTORAGETYPES}")
|
||||
|
||||
sed -i \
|
||||
-e "s/{DB_SERVER_HOST}/${DB_SERVER_HOST}/g" \
|
||||
@ -852,6 +854,8 @@ prepare_zbx_web_config() {
|
||||
-e "s/{ZBX_SERVER_HOST}/${ZBX_SERVER_HOST}/g" \
|
||||
-e "s/{ZBX_SERVER_PORT}/${ZBX_SERVER_PORT}/g" \
|
||||
-e "s/{ZBX_SERVER_NAME}/$server_name/g" \
|
||||
-e "s/{ZBX_HISTORYSTORAGEURL}/$history_storage_url/g" \
|
||||
-e "s/{ZBX_HISTORYSTORAGETYPES}/$history_storage_types/g" \
|
||||
"$ZBX_WEB_CONFIG"
|
||||
|
||||
[ "$db_type" = "postgresql" ] && sed -i "s/MYSQL/POSTGRESQL/g" "$ZBX_WEB_CONFIG"
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
// Zabbix GUI configuration file.
|
||||
global $DB;
|
||||
global $DB, $HISTORY;
|
||||
|
||||
$DB['TYPE'] = 'MYSQL';
|
||||
$DB['SERVER'] = '{DB_SERVER_HOST}';
|
||||
@ -16,5 +16,9 @@ $ZBX_SERVER = '{ZBX_SERVER_HOST}';
|
||||
$ZBX_SERVER_PORT = '{ZBX_SERVER_PORT}';
|
||||
$ZBX_SERVER_NAME = '{ZBX_SERVER_NAME}';
|
||||
|
||||
$IMAGE_FORMAT_DEFAULT = IMAGE_FORMAT_PNG;
|
||||
?>
|
||||
$IMAGE_FORMAT_DEFAULT = IMAGE_FORMAT_PNG;
|
||||
|
||||
// Elasticsearch url (can be string if same url is used for all types).
|
||||
$HISTORY['url'] = '{ZBX_HISTORYSTORAGEURL}';
|
||||
// Value types stored in Elasticsearch.
|
||||
$HISTORY['types'] = {ZBX_HISTORYSTORAGETYPES};
|
||||
|
@ -842,6 +842,8 @@ prepare_zbx_web_config() {
|
||||
server_name=$(escape_spec_char "${ZBX_SERVER_NAME}")
|
||||
server_user=$(escape_spec_char "${DB_SERVER_ZBX_USER}")
|
||||
server_pass=$(escape_spec_char "${DB_SERVER_ZBX_PASS}")
|
||||
history_storage_url=$(escape_spec_char "${ZBX_HISTORYSTORAGEURL}")
|
||||
history_storage_types=$(escape_spec_char "${ZBX_HISTORYSTORAGETYPES}")
|
||||
|
||||
sed -i \
|
||||
-e "s/{DB_SERVER_HOST}/${DB_SERVER_HOST}/g" \
|
||||
@ -852,6 +854,8 @@ prepare_zbx_web_config() {
|
||||
-e "s/{ZBX_SERVER_HOST}/${ZBX_SERVER_HOST}/g" \
|
||||
-e "s/{ZBX_SERVER_PORT}/${ZBX_SERVER_PORT}/g" \
|
||||
-e "s/{ZBX_SERVER_NAME}/$server_name/g" \
|
||||
-e "s/{ZBX_HISTORYSTORAGEURL}/$history_storage_url/g" \
|
||||
-e "s/{ZBX_HISTORYSTORAGETYPES}/$history_storage_types/g" \
|
||||
"$ZBX_WEB_CONFIG"
|
||||
|
||||
[ "$db_type" = "postgresql" ] && sed -i "s/MYSQL/POSTGRESQL/g" "$ZBX_WEB_CONFIG"
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
// Zabbix GUI configuration file.
|
||||
global $DB;
|
||||
global $DB, $HISTORY;
|
||||
|
||||
$DB['TYPE'] = 'MYSQL';
|
||||
$DB['SERVER'] = '{DB_SERVER_HOST}';
|
||||
@ -16,5 +16,9 @@ $ZBX_SERVER = '{ZBX_SERVER_HOST}';
|
||||
$ZBX_SERVER_PORT = '{ZBX_SERVER_PORT}';
|
||||
$ZBX_SERVER_NAME = '{ZBX_SERVER_NAME}';
|
||||
|
||||
$IMAGE_FORMAT_DEFAULT = IMAGE_FORMAT_PNG;
|
||||
?>
|
||||
$IMAGE_FORMAT_DEFAULT = IMAGE_FORMAT_PNG;
|
||||
|
||||
// Elasticsearch url (can be string if same url is used for all types).
|
||||
$HISTORY['url'] = '{ZBX_HISTORYSTORAGEURL}';
|
||||
// Value types stored in Elasticsearch.
|
||||
$HISTORY['types'] = {ZBX_HISTORYSTORAGETYPES};
|
||||
|
@ -842,6 +842,8 @@ prepare_zbx_web_config() {
|
||||
server_name=$(escape_spec_char "${ZBX_SERVER_NAME}")
|
||||
server_user=$(escape_spec_char "${DB_SERVER_ZBX_USER}")
|
||||
server_pass=$(escape_spec_char "${DB_SERVER_ZBX_PASS}")
|
||||
history_storage_url=$(escape_spec_char "${ZBX_HISTORYSTORAGEURL}")
|
||||
history_storage_types=$(escape_spec_char "${ZBX_HISTORYSTORAGETYPES}")
|
||||
|
||||
sed -i \
|
||||
-e "s/{DB_SERVER_HOST}/${DB_SERVER_HOST}/g" \
|
||||
@ -852,6 +854,8 @@ prepare_zbx_web_config() {
|
||||
-e "s/{ZBX_SERVER_HOST}/${ZBX_SERVER_HOST}/g" \
|
||||
-e "s/{ZBX_SERVER_PORT}/${ZBX_SERVER_PORT}/g" \
|
||||
-e "s/{ZBX_SERVER_NAME}/$server_name/g" \
|
||||
-e "s/{ZBX_HISTORYSTORAGEURL}/$history_storage_url/g" \
|
||||
-e "s/{ZBX_HISTORYSTORAGETYPES}/$history_storage_types/g" \
|
||||
"$ZBX_WEB_CONFIG"
|
||||
|
||||
[ "$db_type" = "postgresql" ] && sed -i "s/MYSQL/POSTGRESQL/g" "$ZBX_WEB_CONFIG"
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
// Zabbix GUI configuration file.
|
||||
global $DB;
|
||||
global $DB, $HISTORY;
|
||||
|
||||
$DB['TYPE'] = 'MYSQL';
|
||||
$DB['SERVER'] = '{DB_SERVER_HOST}';
|
||||
@ -16,5 +16,9 @@ $ZBX_SERVER = '{ZBX_SERVER_HOST}';
|
||||
$ZBX_SERVER_PORT = '{ZBX_SERVER_PORT}';
|
||||
$ZBX_SERVER_NAME = '{ZBX_SERVER_NAME}';
|
||||
|
||||
$IMAGE_FORMAT_DEFAULT = IMAGE_FORMAT_PNG;
|
||||
?>
|
||||
$IMAGE_FORMAT_DEFAULT = IMAGE_FORMAT_PNG;
|
||||
|
||||
// Elasticsearch url (can be string if same url is used for all types).
|
||||
$HISTORY['url'] = '{ZBX_HISTORYSTORAGEURL}';
|
||||
// Value types stored in Elasticsearch.
|
||||
$HISTORY['types'] = {ZBX_HISTORYSTORAGETYPES};
|
||||
|
@ -842,6 +842,8 @@ prepare_zbx_web_config() {
|
||||
server_name=$(escape_spec_char "${ZBX_SERVER_NAME}")
|
||||
server_user=$(escape_spec_char "${DB_SERVER_ZBX_USER}")
|
||||
server_pass=$(escape_spec_char "${DB_SERVER_ZBX_PASS}")
|
||||
history_storage_url=$(escape_spec_char "${ZBX_HISTORYSTORAGEURL}")
|
||||
history_storage_types=$(escape_spec_char "${ZBX_HISTORYSTORAGETYPES}")
|
||||
|
||||
sed -i \
|
||||
-e "s/{DB_SERVER_HOST}/${DB_SERVER_HOST}/g" \
|
||||
@ -852,6 +854,8 @@ prepare_zbx_web_config() {
|
||||
-e "s/{ZBX_SERVER_HOST}/${ZBX_SERVER_HOST}/g" \
|
||||
-e "s/{ZBX_SERVER_PORT}/${ZBX_SERVER_PORT}/g" \
|
||||
-e "s/{ZBX_SERVER_NAME}/$server_name/g" \
|
||||
-e "s/{ZBX_HISTORYSTORAGEURL}/$history_storage_url/g" \
|
||||
-e "s/{ZBX_HISTORYSTORAGETYPES}/$history_storage_types/g" \
|
||||
"$ZBX_WEB_CONFIG"
|
||||
|
||||
[ "$db_type" = "postgresql" ] && sed -i "s/MYSQL/POSTGRESQL/g" "$ZBX_WEB_CONFIG"
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
// Zabbix GUI configuration file.
|
||||
global $DB;
|
||||
global $DB, $HISTORY;
|
||||
|
||||
$DB['TYPE'] = 'MYSQL';
|
||||
$DB['SERVER'] = '{DB_SERVER_HOST}';
|
||||
@ -16,5 +16,9 @@ $ZBX_SERVER = '{ZBX_SERVER_HOST}';
|
||||
$ZBX_SERVER_PORT = '{ZBX_SERVER_PORT}';
|
||||
$ZBX_SERVER_NAME = '{ZBX_SERVER_NAME}';
|
||||
|
||||
$IMAGE_FORMAT_DEFAULT = IMAGE_FORMAT_PNG;
|
||||
?>
|
||||
$IMAGE_FORMAT_DEFAULT = IMAGE_FORMAT_PNG;
|
||||
|
||||
// Elasticsearch url (can be string if same url is used for all types).
|
||||
$HISTORY['url'] = '{ZBX_HISTORYSTORAGEURL}';
|
||||
// Value types stored in Elasticsearch.
|
||||
$HISTORY['types'] = {ZBX_HISTORYSTORAGETYPES};
|
||||
|
@ -842,6 +842,8 @@ prepare_zbx_web_config() {
|
||||
server_name=$(escape_spec_char "${ZBX_SERVER_NAME}")
|
||||
server_user=$(escape_spec_char "${DB_SERVER_ZBX_USER}")
|
||||
server_pass=$(escape_spec_char "${DB_SERVER_ZBX_PASS}")
|
||||
history_storage_url=$(escape_spec_char "${ZBX_HISTORYSTORAGEURL}")
|
||||
history_storage_types=$(escape_spec_char "${ZBX_HISTORYSTORAGETYPES}")
|
||||
|
||||
sed -i \
|
||||
-e "s/{DB_SERVER_HOST}/${DB_SERVER_HOST}/g" \
|
||||
@ -852,6 +854,8 @@ prepare_zbx_web_config() {
|
||||
-e "s/{ZBX_SERVER_HOST}/${ZBX_SERVER_HOST}/g" \
|
||||
-e "s/{ZBX_SERVER_PORT}/${ZBX_SERVER_PORT}/g" \
|
||||
-e "s/{ZBX_SERVER_NAME}/$server_name/g" \
|
||||
-e "s/{ZBX_HISTORYSTORAGEURL}/$history_storage_url/g" \
|
||||
-e "s/{ZBX_HISTORYSTORAGETYPES}/$history_storage_types/g" \
|
||||
"$ZBX_WEB_CONFIG"
|
||||
|
||||
[ "$db_type" = "postgresql" ] && sed -i "s/MYSQL/POSTGRESQL/g" "$ZBX_WEB_CONFIG"
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
// Zabbix GUI configuration file.
|
||||
global $DB;
|
||||
global $DB, $HISTORY;
|
||||
|
||||
$DB['TYPE'] = 'MYSQL';
|
||||
$DB['SERVER'] = '{DB_SERVER_HOST}';
|
||||
@ -16,5 +16,9 @@ $ZBX_SERVER = '{ZBX_SERVER_HOST}';
|
||||
$ZBX_SERVER_PORT = '{ZBX_SERVER_PORT}';
|
||||
$ZBX_SERVER_NAME = '{ZBX_SERVER_NAME}';
|
||||
|
||||
$IMAGE_FORMAT_DEFAULT = IMAGE_FORMAT_PNG;
|
||||
?>
|
||||
$IMAGE_FORMAT_DEFAULT = IMAGE_FORMAT_PNG;
|
||||
|
||||
// Elasticsearch url (can be string if same url is used for all types).
|
||||
$HISTORY['url'] = '{ZBX_HISTORYSTORAGEURL}';
|
||||
// Value types stored in Elasticsearch.
|
||||
$HISTORY['types'] = {ZBX_HISTORYSTORAGETYPES};
|
||||
|
@ -842,6 +842,8 @@ prepare_zbx_web_config() {
|
||||
server_name=$(escape_spec_char "${ZBX_SERVER_NAME}")
|
||||
server_user=$(escape_spec_char "${DB_SERVER_ZBX_USER}")
|
||||
server_pass=$(escape_spec_char "${DB_SERVER_ZBX_PASS}")
|
||||
history_storage_url=$(escape_spec_char "${ZBX_HISTORYSTORAGEURL}")
|
||||
history_storage_types=$(escape_spec_char "${ZBX_HISTORYSTORAGETYPES}")
|
||||
|
||||
sed -i \
|
||||
-e "s/{DB_SERVER_HOST}/${DB_SERVER_HOST}/g" \
|
||||
@ -852,6 +854,8 @@ prepare_zbx_web_config() {
|
||||
-e "s/{ZBX_SERVER_HOST}/${ZBX_SERVER_HOST}/g" \
|
||||
-e "s/{ZBX_SERVER_PORT}/${ZBX_SERVER_PORT}/g" \
|
||||
-e "s/{ZBX_SERVER_NAME}/$server_name/g" \
|
||||
-e "s/{ZBX_HISTORYSTORAGEURL}/$history_storage_url/g" \
|
||||
-e "s/{ZBX_HISTORYSTORAGETYPES}/$history_storage_types/g" \
|
||||
"$ZBX_WEB_CONFIG"
|
||||
|
||||
[ "$db_type" = "postgresql" ] && sed -i "s/MYSQL/POSTGRESQL/g" "$ZBX_WEB_CONFIG"
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
// Zabbix GUI configuration file.
|
||||
global $DB;
|
||||
global $DB, $HISTORY;
|
||||
|
||||
$DB['TYPE'] = 'MYSQL';
|
||||
$DB['SERVER'] = '{DB_SERVER_HOST}';
|
||||
@ -16,5 +16,9 @@ $ZBX_SERVER = '{ZBX_SERVER_HOST}';
|
||||
$ZBX_SERVER_PORT = '{ZBX_SERVER_PORT}';
|
||||
$ZBX_SERVER_NAME = '{ZBX_SERVER_NAME}';
|
||||
|
||||
$IMAGE_FORMAT_DEFAULT = IMAGE_FORMAT_PNG;
|
||||
?>
|
||||
$IMAGE_FORMAT_DEFAULT = IMAGE_FORMAT_PNG;
|
||||
|
||||
// Elasticsearch url (can be string if same url is used for all types).
|
||||
$HISTORY['url'] = '{ZBX_HISTORYSTORAGEURL}';
|
||||
// Value types stored in Elasticsearch.
|
||||
$HISTORY['types'] = {ZBX_HISTORYSTORAGETYPES};
|
||||
|
@ -842,6 +842,8 @@ prepare_zbx_web_config() {
|
||||
server_name=$(escape_spec_char "${ZBX_SERVER_NAME}")
|
||||
server_user=$(escape_spec_char "${DB_SERVER_ZBX_USER}")
|
||||
server_pass=$(escape_spec_char "${DB_SERVER_ZBX_PASS}")
|
||||
history_storage_url=$(escape_spec_char "${ZBX_HISTORYSTORAGEURL}")
|
||||
history_storage_types=$(escape_spec_char "${ZBX_HISTORYSTORAGETYPES}")
|
||||
|
||||
sed -i \
|
||||
-e "s/{DB_SERVER_HOST}/${DB_SERVER_HOST}/g" \
|
||||
@ -852,6 +854,8 @@ prepare_zbx_web_config() {
|
||||
-e "s/{ZBX_SERVER_HOST}/${ZBX_SERVER_HOST}/g" \
|
||||
-e "s/{ZBX_SERVER_PORT}/${ZBX_SERVER_PORT}/g" \
|
||||
-e "s/{ZBX_SERVER_NAME}/$server_name/g" \
|
||||
-e "s/{ZBX_HISTORYSTORAGEURL}/$history_storage_url/g" \
|
||||
-e "s/{ZBX_HISTORYSTORAGETYPES}/$history_storage_types/g" \
|
||||
"$ZBX_WEB_CONFIG"
|
||||
|
||||
[ "$db_type" = "postgresql" ] && sed -i "s/MYSQL/POSTGRESQL/g" "$ZBX_WEB_CONFIG"
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
// Zabbix GUI configuration file.
|
||||
global $DB;
|
||||
global $DB, $HISTORY;
|
||||
|
||||
$DB['TYPE'] = 'MYSQL';
|
||||
$DB['SERVER'] = '{DB_SERVER_HOST}';
|
||||
@ -16,5 +16,9 @@ $ZBX_SERVER = '{ZBX_SERVER_HOST}';
|
||||
$ZBX_SERVER_PORT = '{ZBX_SERVER_PORT}';
|
||||
$ZBX_SERVER_NAME = '{ZBX_SERVER_NAME}';
|
||||
|
||||
$IMAGE_FORMAT_DEFAULT = IMAGE_FORMAT_PNG;
|
||||
?>
|
||||
$IMAGE_FORMAT_DEFAULT = IMAGE_FORMAT_PNG;
|
||||
|
||||
// Elasticsearch url (can be string if same url is used for all types).
|
||||
$HISTORY['url'] = '{ZBX_HISTORYSTORAGEURL}';
|
||||
// Value types stored in Elasticsearch.
|
||||
$HISTORY['types'] = {ZBX_HISTORYSTORAGETYPES};
|
||||
|
@ -842,6 +842,8 @@ prepare_zbx_web_config() {
|
||||
server_name=$(escape_spec_char "${ZBX_SERVER_NAME}")
|
||||
server_user=$(escape_spec_char "${DB_SERVER_ZBX_USER}")
|
||||
server_pass=$(escape_spec_char "${DB_SERVER_ZBX_PASS}")
|
||||
history_storage_url=$(escape_spec_char "${ZBX_HISTORYSTORAGEURL}")
|
||||
history_storage_types=$(escape_spec_char "${ZBX_HISTORYSTORAGETYPES}")
|
||||
|
||||
sed -i \
|
||||
-e "s/{DB_SERVER_HOST}/${DB_SERVER_HOST}/g" \
|
||||
@ -852,6 +854,8 @@ prepare_zbx_web_config() {
|
||||
-e "s/{ZBX_SERVER_HOST}/${ZBX_SERVER_HOST}/g" \
|
||||
-e "s/{ZBX_SERVER_PORT}/${ZBX_SERVER_PORT}/g" \
|
||||
-e "s/{ZBX_SERVER_NAME}/$server_name/g" \
|
||||
-e "s/{ZBX_HISTORYSTORAGEURL}/$history_storage_url/g" \
|
||||
-e "s/{ZBX_HISTORYSTORAGETYPES}/$history_storage_types/g" \
|
||||
"$ZBX_WEB_CONFIG"
|
||||
|
||||
[ "$db_type" = "postgresql" ] && sed -i "s/MYSQL/POSTGRESQL/g" "$ZBX_WEB_CONFIG"
|
||||
|
Loading…
Reference in New Issue
Block a user