mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2024-12-01 20:23:07 +01:00
commit
f442acf4f3
2
.env_web
2
.env_web
@ -7,4 +7,4 @@ ZBX_SERVER_NAME=Composed installation
|
|||||||
# ZBX_UPLOADMAXFILESIZE=2M
|
# ZBX_UPLOADMAXFILESIZE=2M
|
||||||
# ZBX_MAXINPUTTIME=300
|
# ZBX_MAXINPUTTIME=300
|
||||||
# Timezone one of: http://php.net/manual/en/timezones.php
|
# Timezone one of: http://php.net/manual/en/timezones.php
|
||||||
# TZ=Europe/Riga
|
# PHP_TZ=Europe/Riga
|
||||||
|
@ -19,6 +19,7 @@ RUN addgroup zabbix && \
|
|||||||
chown --quiet -R zabbix:root /var/lib/zabbix && \
|
chown --quiet -R zabbix:root /var/lib/zabbix && \
|
||||||
apk update && \
|
apk update && \
|
||||||
apk add ${APK_FLAGS_PERSISTANT} \
|
apk add ${APK_FLAGS_PERSISTANT} \
|
||||||
|
iputils \
|
||||||
supervisor \
|
supervisor \
|
||||||
bash \
|
bash \
|
||||||
coreutils \
|
coreutils \
|
||||||
|
@ -26,7 +26,7 @@ ZBX_SERVER_HOST=${ZBX_SERVER_HOST:-"zabbix-server"}
|
|||||||
ZBX_SERVER_PORT=${ZBX_SERVER_PORT:-"10051"}
|
ZBX_SERVER_PORT=${ZBX_SERVER_PORT:-"10051"}
|
||||||
|
|
||||||
# Default timezone for web interface
|
# Default timezone for web interface
|
||||||
TZ=${TZ:-"Europe/Riga"}
|
PHP_TZ=${PHP_TZ:-"Europe/Riga"}
|
||||||
|
|
||||||
# Default directories
|
# Default directories
|
||||||
# User 'zabbix' home directory
|
# User 'zabbix' home directory
|
||||||
@ -700,7 +700,7 @@ prepare_zbx_web_config() {
|
|||||||
update_config_var "$PHP_CONFIG_FILE" "post_max_size" "${ZBX_POSTMAXSIZE:-"16M"}"
|
update_config_var "$PHP_CONFIG_FILE" "post_max_size" "${ZBX_POSTMAXSIZE:-"16M"}"
|
||||||
update_config_var "$PHP_CONFIG_FILE" "upload_max_filesize" "${ZBX_UPLOADMAXFILESIZE:-"2M"}"
|
update_config_var "$PHP_CONFIG_FILE" "upload_max_filesize" "${ZBX_UPLOADMAXFILESIZE:-"2M"}"
|
||||||
update_config_var "$PHP_CONFIG_FILE" "max_input_time" "${ZBX_MAXINPUTTIME:-"300"}"
|
update_config_var "$PHP_CONFIG_FILE" "max_input_time" "${ZBX_MAXINPUTTIME:-"300"}"
|
||||||
update_config_var "$PHP_CONFIG_FILE" "date.timezone" "${TZ}"
|
update_config_var "$PHP_CONFIG_FILE" "date.timezone" "${PHP_TZ}"
|
||||||
else
|
else
|
||||||
echo "**** Zabbix related PHP configuration file not found"
|
echo "**** Zabbix related PHP configuration file not found"
|
||||||
fi
|
fi
|
||||||
|
@ -26,7 +26,7 @@ ZBX_SERVER_HOST=${ZBX_SERVER_HOST:-"zabbix-server"}
|
|||||||
ZBX_SERVER_PORT=${ZBX_SERVER_PORT:-"10051"}
|
ZBX_SERVER_PORT=${ZBX_SERVER_PORT:-"10051"}
|
||||||
|
|
||||||
# Default timezone for web interface
|
# Default timezone for web interface
|
||||||
TZ=${TZ:-"Europe/Riga"}
|
PHP_TZ=${PHP_TZ:-"Europe/Riga"}
|
||||||
|
|
||||||
# Default directories
|
# Default directories
|
||||||
# User 'zabbix' home directory
|
# User 'zabbix' home directory
|
||||||
@ -700,7 +700,7 @@ prepare_zbx_web_config() {
|
|||||||
update_config_var "$PHP_CONFIG_FILE" "post_max_size" "${ZBX_POSTMAXSIZE:-"16M"}"
|
update_config_var "$PHP_CONFIG_FILE" "post_max_size" "${ZBX_POSTMAXSIZE:-"16M"}"
|
||||||
update_config_var "$PHP_CONFIG_FILE" "upload_max_filesize" "${ZBX_UPLOADMAXFILESIZE:-"2M"}"
|
update_config_var "$PHP_CONFIG_FILE" "upload_max_filesize" "${ZBX_UPLOADMAXFILESIZE:-"2M"}"
|
||||||
update_config_var "$PHP_CONFIG_FILE" "max_input_time" "${ZBX_MAXINPUTTIME:-"300"}"
|
update_config_var "$PHP_CONFIG_FILE" "max_input_time" "${ZBX_MAXINPUTTIME:-"300"}"
|
||||||
update_config_var "$PHP_CONFIG_FILE" "date.timezone" "${TZ}"
|
update_config_var "$PHP_CONFIG_FILE" "date.timezone" "${PHP_TZ}"
|
||||||
else
|
else
|
||||||
echo "**** Zabbix related PHP configuration file not found"
|
echo "**** Zabbix related PHP configuration file not found"
|
||||||
fi
|
fi
|
||||||
|
@ -26,7 +26,7 @@ ZBX_SERVER_HOST=${ZBX_SERVER_HOST:-"zabbix-server"}
|
|||||||
ZBX_SERVER_PORT=${ZBX_SERVER_PORT:-"10051"}
|
ZBX_SERVER_PORT=${ZBX_SERVER_PORT:-"10051"}
|
||||||
|
|
||||||
# Default timezone for web interface
|
# Default timezone for web interface
|
||||||
TZ=${TZ:-"Europe/Riga"}
|
PHP_TZ=${PHP_TZ:-"Europe/Riga"}
|
||||||
|
|
||||||
# Default directories
|
# Default directories
|
||||||
# User 'zabbix' home directory
|
# User 'zabbix' home directory
|
||||||
@ -700,7 +700,7 @@ prepare_zbx_web_config() {
|
|||||||
update_config_var "$PHP_CONFIG_FILE" "post_max_size" "${ZBX_POSTMAXSIZE:-"16M"}"
|
update_config_var "$PHP_CONFIG_FILE" "post_max_size" "${ZBX_POSTMAXSIZE:-"16M"}"
|
||||||
update_config_var "$PHP_CONFIG_FILE" "upload_max_filesize" "${ZBX_UPLOADMAXFILESIZE:-"2M"}"
|
update_config_var "$PHP_CONFIG_FILE" "upload_max_filesize" "${ZBX_UPLOADMAXFILESIZE:-"2M"}"
|
||||||
update_config_var "$PHP_CONFIG_FILE" "max_input_time" "${ZBX_MAXINPUTTIME:-"300"}"
|
update_config_var "$PHP_CONFIG_FILE" "max_input_time" "${ZBX_MAXINPUTTIME:-"300"}"
|
||||||
update_config_var "$PHP_CONFIG_FILE" "date.timezone" "${TZ}"
|
update_config_var "$PHP_CONFIG_FILE" "date.timezone" "${PHP_TZ}"
|
||||||
else
|
else
|
||||||
echo "**** Zabbix related PHP configuration file not found"
|
echo "**** Zabbix related PHP configuration file not found"
|
||||||
fi
|
fi
|
||||||
|
@ -26,7 +26,7 @@ ZBX_SERVER_HOST=${ZBX_SERVER_HOST:-"zabbix-server"}
|
|||||||
ZBX_SERVER_PORT=${ZBX_SERVER_PORT:-"10051"}
|
ZBX_SERVER_PORT=${ZBX_SERVER_PORT:-"10051"}
|
||||||
|
|
||||||
# Default timezone for web interface
|
# Default timezone for web interface
|
||||||
TZ=${TZ:-"Europe/Riga"}
|
PHP_TZ=${PHP_TZ:-"Europe/Riga"}
|
||||||
|
|
||||||
# Default directories
|
# Default directories
|
||||||
# User 'zabbix' home directory
|
# User 'zabbix' home directory
|
||||||
@ -700,7 +700,7 @@ prepare_zbx_web_config() {
|
|||||||
update_config_var "$PHP_CONFIG_FILE" "post_max_size" "${ZBX_POSTMAXSIZE:-"16M"}"
|
update_config_var "$PHP_CONFIG_FILE" "post_max_size" "${ZBX_POSTMAXSIZE:-"16M"}"
|
||||||
update_config_var "$PHP_CONFIG_FILE" "upload_max_filesize" "${ZBX_UPLOADMAXFILESIZE:-"2M"}"
|
update_config_var "$PHP_CONFIG_FILE" "upload_max_filesize" "${ZBX_UPLOADMAXFILESIZE:-"2M"}"
|
||||||
update_config_var "$PHP_CONFIG_FILE" "max_input_time" "${ZBX_MAXINPUTTIME:-"300"}"
|
update_config_var "$PHP_CONFIG_FILE" "max_input_time" "${ZBX_MAXINPUTTIME:-"300"}"
|
||||||
update_config_var "$PHP_CONFIG_FILE" "date.timezone" "${TZ}"
|
update_config_var "$PHP_CONFIG_FILE" "date.timezone" "${PHP_TZ}"
|
||||||
else
|
else
|
||||||
echo "**** Zabbix related PHP configuration file not found"
|
echo "**** Zabbix related PHP configuration file not found"
|
||||||
fi
|
fi
|
||||||
|
@ -29,6 +29,7 @@ RUN addgroup zabbix && \
|
|||||||
mkdir -p /usr/share/doc/zabbix-proxy-${DB_TYPE} && \
|
mkdir -p /usr/share/doc/zabbix-proxy-${DB_TYPE} && \
|
||||||
apk update && \
|
apk update && \
|
||||||
apk add ${APK_FLAGS_PERSISTANT} \
|
apk add ${APK_FLAGS_PERSISTANT} \
|
||||||
|
iputils \
|
||||||
supervisor \
|
supervisor \
|
||||||
bash \
|
bash \
|
||||||
mariadb-client-libs \
|
mariadb-client-libs \
|
||||||
|
@ -26,7 +26,7 @@ ZBX_SERVER_HOST=${ZBX_SERVER_HOST:-"zabbix-server"}
|
|||||||
ZBX_SERVER_PORT=${ZBX_SERVER_PORT:-"10051"}
|
ZBX_SERVER_PORT=${ZBX_SERVER_PORT:-"10051"}
|
||||||
|
|
||||||
# Default timezone for web interface
|
# Default timezone for web interface
|
||||||
TZ=${TZ:-"Europe/Riga"}
|
PHP_TZ=${PHP_TZ:-"Europe/Riga"}
|
||||||
|
|
||||||
# Default directories
|
# Default directories
|
||||||
# User 'zabbix' home directory
|
# User 'zabbix' home directory
|
||||||
@ -700,7 +700,7 @@ prepare_zbx_web_config() {
|
|||||||
update_config_var "$PHP_CONFIG_FILE" "post_max_size" "${ZBX_POSTMAXSIZE:-"16M"}"
|
update_config_var "$PHP_CONFIG_FILE" "post_max_size" "${ZBX_POSTMAXSIZE:-"16M"}"
|
||||||
update_config_var "$PHP_CONFIG_FILE" "upload_max_filesize" "${ZBX_UPLOADMAXFILESIZE:-"2M"}"
|
update_config_var "$PHP_CONFIG_FILE" "upload_max_filesize" "${ZBX_UPLOADMAXFILESIZE:-"2M"}"
|
||||||
update_config_var "$PHP_CONFIG_FILE" "max_input_time" "${ZBX_MAXINPUTTIME:-"300"}"
|
update_config_var "$PHP_CONFIG_FILE" "max_input_time" "${ZBX_MAXINPUTTIME:-"300"}"
|
||||||
update_config_var "$PHP_CONFIG_FILE" "date.timezone" "${TZ}"
|
update_config_var "$PHP_CONFIG_FILE" "date.timezone" "${PHP_TZ}"
|
||||||
else
|
else
|
||||||
echo "**** Zabbix related PHP configuration file not found"
|
echo "**** Zabbix related PHP configuration file not found"
|
||||||
fi
|
fi
|
||||||
|
@ -26,7 +26,7 @@ ZBX_SERVER_HOST=${ZBX_SERVER_HOST:-"zabbix-server"}
|
|||||||
ZBX_SERVER_PORT=${ZBX_SERVER_PORT:-"10051"}
|
ZBX_SERVER_PORT=${ZBX_SERVER_PORT:-"10051"}
|
||||||
|
|
||||||
# Default timezone for web interface
|
# Default timezone for web interface
|
||||||
TZ=${TZ:-"Europe/Riga"}
|
PHP_TZ=${PHP_TZ:-"Europe/Riga"}
|
||||||
|
|
||||||
# Default directories
|
# Default directories
|
||||||
# User 'zabbix' home directory
|
# User 'zabbix' home directory
|
||||||
@ -700,7 +700,7 @@ prepare_zbx_web_config() {
|
|||||||
update_config_var "$PHP_CONFIG_FILE" "post_max_size" "${ZBX_POSTMAXSIZE:-"16M"}"
|
update_config_var "$PHP_CONFIG_FILE" "post_max_size" "${ZBX_POSTMAXSIZE:-"16M"}"
|
||||||
update_config_var "$PHP_CONFIG_FILE" "upload_max_filesize" "${ZBX_UPLOADMAXFILESIZE:-"2M"}"
|
update_config_var "$PHP_CONFIG_FILE" "upload_max_filesize" "${ZBX_UPLOADMAXFILESIZE:-"2M"}"
|
||||||
update_config_var "$PHP_CONFIG_FILE" "max_input_time" "${ZBX_MAXINPUTTIME:-"300"}"
|
update_config_var "$PHP_CONFIG_FILE" "max_input_time" "${ZBX_MAXINPUTTIME:-"300"}"
|
||||||
update_config_var "$PHP_CONFIG_FILE" "date.timezone" "${TZ}"
|
update_config_var "$PHP_CONFIG_FILE" "date.timezone" "${PHP_TZ}"
|
||||||
else
|
else
|
||||||
echo "**** Zabbix related PHP configuration file not found"
|
echo "**** Zabbix related PHP configuration file not found"
|
||||||
fi
|
fi
|
||||||
|
@ -26,6 +26,7 @@ RUN addgroup zabbix && \
|
|||||||
mkdir -p /usr/lib/zabbix/externalscripts && \
|
mkdir -p /usr/lib/zabbix/externalscripts && \
|
||||||
apk update && \
|
apk update && \
|
||||||
apk add ${APK_FLAGS_PERSISTANT} \
|
apk add ${APK_FLAGS_PERSISTANT} \
|
||||||
|
iputils \
|
||||||
supervisor \
|
supervisor \
|
||||||
bash \
|
bash \
|
||||||
sqlite-libs \
|
sqlite-libs \
|
||||||
|
@ -26,7 +26,7 @@ ZBX_SERVER_HOST=${ZBX_SERVER_HOST:-"zabbix-server"}
|
|||||||
ZBX_SERVER_PORT=${ZBX_SERVER_PORT:-"10051"}
|
ZBX_SERVER_PORT=${ZBX_SERVER_PORT:-"10051"}
|
||||||
|
|
||||||
# Default timezone for web interface
|
# Default timezone for web interface
|
||||||
TZ=${TZ:-"Europe/Riga"}
|
PHP_TZ=${PHP_TZ:-"Europe/Riga"}
|
||||||
|
|
||||||
# Default directories
|
# Default directories
|
||||||
# User 'zabbix' home directory
|
# User 'zabbix' home directory
|
||||||
@ -700,7 +700,7 @@ prepare_zbx_web_config() {
|
|||||||
update_config_var "$PHP_CONFIG_FILE" "post_max_size" "${ZBX_POSTMAXSIZE:-"16M"}"
|
update_config_var "$PHP_CONFIG_FILE" "post_max_size" "${ZBX_POSTMAXSIZE:-"16M"}"
|
||||||
update_config_var "$PHP_CONFIG_FILE" "upload_max_filesize" "${ZBX_UPLOADMAXFILESIZE:-"2M"}"
|
update_config_var "$PHP_CONFIG_FILE" "upload_max_filesize" "${ZBX_UPLOADMAXFILESIZE:-"2M"}"
|
||||||
update_config_var "$PHP_CONFIG_FILE" "max_input_time" "${ZBX_MAXINPUTTIME:-"300"}"
|
update_config_var "$PHP_CONFIG_FILE" "max_input_time" "${ZBX_MAXINPUTTIME:-"300"}"
|
||||||
update_config_var "$PHP_CONFIG_FILE" "date.timezone" "${TZ}"
|
update_config_var "$PHP_CONFIG_FILE" "date.timezone" "${PHP_TZ}"
|
||||||
else
|
else
|
||||||
echo "**** Zabbix related PHP configuration file not found"
|
echo "**** Zabbix related PHP configuration file not found"
|
||||||
fi
|
fi
|
||||||
|
@ -26,7 +26,7 @@ ZBX_SERVER_HOST=${ZBX_SERVER_HOST:-"zabbix-server"}
|
|||||||
ZBX_SERVER_PORT=${ZBX_SERVER_PORT:-"10051"}
|
ZBX_SERVER_PORT=${ZBX_SERVER_PORT:-"10051"}
|
||||||
|
|
||||||
# Default timezone for web interface
|
# Default timezone for web interface
|
||||||
TZ=${TZ:-"Europe/Riga"}
|
PHP_TZ=${PHP_TZ:-"Europe/Riga"}
|
||||||
|
|
||||||
# Default directories
|
# Default directories
|
||||||
# User 'zabbix' home directory
|
# User 'zabbix' home directory
|
||||||
@ -700,7 +700,7 @@ prepare_zbx_web_config() {
|
|||||||
update_config_var "$PHP_CONFIG_FILE" "post_max_size" "${ZBX_POSTMAXSIZE:-"16M"}"
|
update_config_var "$PHP_CONFIG_FILE" "post_max_size" "${ZBX_POSTMAXSIZE:-"16M"}"
|
||||||
update_config_var "$PHP_CONFIG_FILE" "upload_max_filesize" "${ZBX_UPLOADMAXFILESIZE:-"2M"}"
|
update_config_var "$PHP_CONFIG_FILE" "upload_max_filesize" "${ZBX_UPLOADMAXFILESIZE:-"2M"}"
|
||||||
update_config_var "$PHP_CONFIG_FILE" "max_input_time" "${ZBX_MAXINPUTTIME:-"300"}"
|
update_config_var "$PHP_CONFIG_FILE" "max_input_time" "${ZBX_MAXINPUTTIME:-"300"}"
|
||||||
update_config_var "$PHP_CONFIG_FILE" "date.timezone" "${TZ}"
|
update_config_var "$PHP_CONFIG_FILE" "date.timezone" "${PHP_TZ}"
|
||||||
else
|
else
|
||||||
echo "**** Zabbix related PHP configuration file not found"
|
echo "**** Zabbix related PHP configuration file not found"
|
||||||
fi
|
fi
|
||||||
|
@ -30,6 +30,7 @@ RUN addgroup zabbix && \
|
|||||||
mkdir -p /usr/share/doc/zabbix-server-${DB_TYPE} && \
|
mkdir -p /usr/share/doc/zabbix-server-${DB_TYPE} && \
|
||||||
apk update && \
|
apk update && \
|
||||||
apk add ${APK_FLAGS_PERSISTANT} \
|
apk add ${APK_FLAGS_PERSISTANT} \
|
||||||
|
iputils \
|
||||||
supervisor \
|
supervisor \
|
||||||
bash \
|
bash \
|
||||||
mariadb-client-libs \
|
mariadb-client-libs \
|
||||||
|
@ -26,7 +26,7 @@ ZBX_SERVER_HOST=${ZBX_SERVER_HOST:-"zabbix-server"}
|
|||||||
ZBX_SERVER_PORT=${ZBX_SERVER_PORT:-"10051"}
|
ZBX_SERVER_PORT=${ZBX_SERVER_PORT:-"10051"}
|
||||||
|
|
||||||
# Default timezone for web interface
|
# Default timezone for web interface
|
||||||
TZ=${TZ:-"Europe/Riga"}
|
PHP_TZ=${PHP_TZ:-"Europe/Riga"}
|
||||||
|
|
||||||
# Default directories
|
# Default directories
|
||||||
# User 'zabbix' home directory
|
# User 'zabbix' home directory
|
||||||
@ -700,7 +700,7 @@ prepare_zbx_web_config() {
|
|||||||
update_config_var "$PHP_CONFIG_FILE" "post_max_size" "${ZBX_POSTMAXSIZE:-"16M"}"
|
update_config_var "$PHP_CONFIG_FILE" "post_max_size" "${ZBX_POSTMAXSIZE:-"16M"}"
|
||||||
update_config_var "$PHP_CONFIG_FILE" "upload_max_filesize" "${ZBX_UPLOADMAXFILESIZE:-"2M"}"
|
update_config_var "$PHP_CONFIG_FILE" "upload_max_filesize" "${ZBX_UPLOADMAXFILESIZE:-"2M"}"
|
||||||
update_config_var "$PHP_CONFIG_FILE" "max_input_time" "${ZBX_MAXINPUTTIME:-"300"}"
|
update_config_var "$PHP_CONFIG_FILE" "max_input_time" "${ZBX_MAXINPUTTIME:-"300"}"
|
||||||
update_config_var "$PHP_CONFIG_FILE" "date.timezone" "${TZ}"
|
update_config_var "$PHP_CONFIG_FILE" "date.timezone" "${PHP_TZ}"
|
||||||
else
|
else
|
||||||
echo "**** Zabbix related PHP configuration file not found"
|
echo "**** Zabbix related PHP configuration file not found"
|
||||||
fi
|
fi
|
||||||
|
@ -26,7 +26,7 @@ ZBX_SERVER_HOST=${ZBX_SERVER_HOST:-"zabbix-server"}
|
|||||||
ZBX_SERVER_PORT=${ZBX_SERVER_PORT:-"10051"}
|
ZBX_SERVER_PORT=${ZBX_SERVER_PORT:-"10051"}
|
||||||
|
|
||||||
# Default timezone for web interface
|
# Default timezone for web interface
|
||||||
TZ=${TZ:-"Europe/Riga"}
|
PHP_TZ=${PHP_TZ:-"Europe/Riga"}
|
||||||
|
|
||||||
# Default directories
|
# Default directories
|
||||||
# User 'zabbix' home directory
|
# User 'zabbix' home directory
|
||||||
@ -700,7 +700,7 @@ prepare_zbx_web_config() {
|
|||||||
update_config_var "$PHP_CONFIG_FILE" "post_max_size" "${ZBX_POSTMAXSIZE:-"16M"}"
|
update_config_var "$PHP_CONFIG_FILE" "post_max_size" "${ZBX_POSTMAXSIZE:-"16M"}"
|
||||||
update_config_var "$PHP_CONFIG_FILE" "upload_max_filesize" "${ZBX_UPLOADMAXFILESIZE:-"2M"}"
|
update_config_var "$PHP_CONFIG_FILE" "upload_max_filesize" "${ZBX_UPLOADMAXFILESIZE:-"2M"}"
|
||||||
update_config_var "$PHP_CONFIG_FILE" "max_input_time" "${ZBX_MAXINPUTTIME:-"300"}"
|
update_config_var "$PHP_CONFIG_FILE" "max_input_time" "${ZBX_MAXINPUTTIME:-"300"}"
|
||||||
update_config_var "$PHP_CONFIG_FILE" "date.timezone" "${TZ}"
|
update_config_var "$PHP_CONFIG_FILE" "date.timezone" "${PHP_TZ}"
|
||||||
else
|
else
|
||||||
echo "**** Zabbix related PHP configuration file not found"
|
echo "**** Zabbix related PHP configuration file not found"
|
||||||
fi
|
fi
|
||||||
|
@ -30,6 +30,7 @@ RUN addgroup zabbix && \
|
|||||||
mkdir -p /usr/share/doc/zabbix-server-${DB_TYPE} && \
|
mkdir -p /usr/share/doc/zabbix-server-${DB_TYPE} && \
|
||||||
apk update && \
|
apk update && \
|
||||||
apk add ${APK_FLAGS_PERSISTANT} \
|
apk add ${APK_FLAGS_PERSISTANT} \
|
||||||
|
iputils \
|
||||||
supervisor \
|
supervisor \
|
||||||
bash \
|
bash \
|
||||||
postgresql-client \
|
postgresql-client \
|
||||||
|
@ -26,7 +26,7 @@ ZBX_SERVER_HOST=${ZBX_SERVER_HOST:-"zabbix-server"}
|
|||||||
ZBX_SERVER_PORT=${ZBX_SERVER_PORT:-"10051"}
|
ZBX_SERVER_PORT=${ZBX_SERVER_PORT:-"10051"}
|
||||||
|
|
||||||
# Default timezone for web interface
|
# Default timezone for web interface
|
||||||
TZ=${TZ:-"Europe/Riga"}
|
PHP_TZ=${PHP_TZ:-"Europe/Riga"}
|
||||||
|
|
||||||
# Default directories
|
# Default directories
|
||||||
# User 'zabbix' home directory
|
# User 'zabbix' home directory
|
||||||
@ -700,7 +700,7 @@ prepare_zbx_web_config() {
|
|||||||
update_config_var "$PHP_CONFIG_FILE" "post_max_size" "${ZBX_POSTMAXSIZE:-"16M"}"
|
update_config_var "$PHP_CONFIG_FILE" "post_max_size" "${ZBX_POSTMAXSIZE:-"16M"}"
|
||||||
update_config_var "$PHP_CONFIG_FILE" "upload_max_filesize" "${ZBX_UPLOADMAXFILESIZE:-"2M"}"
|
update_config_var "$PHP_CONFIG_FILE" "upload_max_filesize" "${ZBX_UPLOADMAXFILESIZE:-"2M"}"
|
||||||
update_config_var "$PHP_CONFIG_FILE" "max_input_time" "${ZBX_MAXINPUTTIME:-"300"}"
|
update_config_var "$PHP_CONFIG_FILE" "max_input_time" "${ZBX_MAXINPUTTIME:-"300"}"
|
||||||
update_config_var "$PHP_CONFIG_FILE" "date.timezone" "${TZ}"
|
update_config_var "$PHP_CONFIG_FILE" "date.timezone" "${PHP_TZ}"
|
||||||
else
|
else
|
||||||
echo "**** Zabbix related PHP configuration file not found"
|
echo "**** Zabbix related PHP configuration file not found"
|
||||||
fi
|
fi
|
||||||
|
@ -26,7 +26,7 @@ ZBX_SERVER_HOST=${ZBX_SERVER_HOST:-"zabbix-server"}
|
|||||||
ZBX_SERVER_PORT=${ZBX_SERVER_PORT:-"10051"}
|
ZBX_SERVER_PORT=${ZBX_SERVER_PORT:-"10051"}
|
||||||
|
|
||||||
# Default timezone for web interface
|
# Default timezone for web interface
|
||||||
TZ=${TZ:-"Europe/Riga"}
|
PHP_TZ=${PHP_TZ:-"Europe/Riga"}
|
||||||
|
|
||||||
# Default directories
|
# Default directories
|
||||||
# User 'zabbix' home directory
|
# User 'zabbix' home directory
|
||||||
@ -700,7 +700,7 @@ prepare_zbx_web_config() {
|
|||||||
update_config_var "$PHP_CONFIG_FILE" "post_max_size" "${ZBX_POSTMAXSIZE:-"16M"}"
|
update_config_var "$PHP_CONFIG_FILE" "post_max_size" "${ZBX_POSTMAXSIZE:-"16M"}"
|
||||||
update_config_var "$PHP_CONFIG_FILE" "upload_max_filesize" "${ZBX_UPLOADMAXFILESIZE:-"2M"}"
|
update_config_var "$PHP_CONFIG_FILE" "upload_max_filesize" "${ZBX_UPLOADMAXFILESIZE:-"2M"}"
|
||||||
update_config_var "$PHP_CONFIG_FILE" "max_input_time" "${ZBX_MAXINPUTTIME:-"300"}"
|
update_config_var "$PHP_CONFIG_FILE" "max_input_time" "${ZBX_MAXINPUTTIME:-"300"}"
|
||||||
update_config_var "$PHP_CONFIG_FILE" "date.timezone" "${TZ}"
|
update_config_var "$PHP_CONFIG_FILE" "date.timezone" "${PHP_TZ}"
|
||||||
else
|
else
|
||||||
echo "**** Zabbix related PHP configuration file not found"
|
echo "**** Zabbix related PHP configuration file not found"
|
||||||
fi
|
fi
|
||||||
|
@ -38,17 +38,17 @@ The image based on Apache2 web server with MySQL database support.
|
|||||||
|
|
||||||
Start a Zabbix web-interface container as follows:
|
Start a Zabbix web-interface container as follows:
|
||||||
|
|
||||||
docker run --name some-zabbix-web-apache-mysql -e DB_SERVER_HOST="some-mysql-server" -e MYSQL_USER="some-user" -e MYSQL_PASSWORD="some-password" -e ZBX_SERVER_HOST="some-zabbix-server" -e TZ="some-timezone" -d zabbix/zabbix-web-apache-mysql:tag
|
docker run --name some-zabbix-web-apache-mysql -e DB_SERVER_HOST="some-mysql-server" -e MYSQL_USER="some-user" -e MYSQL_PASSWORD="some-password" -e ZBX_SERVER_HOST="some-zabbix-server" -e PHP_TZ="some-timezone" -d zabbix/zabbix-web-apache-mysql:tag
|
||||||
|
|
||||||
Where `some-zabbix-web-apache-mysql` is the name you want to assign to your container, `some-mysql-server` is IP or DNS name of MySQL server, `some-user` is user to connect to Zabbix database on MySQL server, `some-password` is the password to connect to MySQL server, `some-zabbix-server` is IP or DNS name of Zabbix server or proxy, `some-timezone` is PHP like timezone name and `tag` is the tag specifying the version you want. See the list above for relevant tags, or look at the [full list of tags](https://hub.docker.com/r/zabbix/zabbix-web-apache-mysql/tags/).
|
Where `some-zabbix-web-apache-mysql` is the name you want to assign to your container, `some-mysql-server` is IP or DNS name of MySQL server, `some-user` is user to connect to Zabbix database on MySQL server, `some-password` is the password to connect to MySQL server, `some-zabbix-server` is IP or DNS name of Zabbix server or proxy, `some-timezone` is PHP like timezone name and `tag` is the tag specifying the version you want. See the list above for relevant tags, or look at the [full list of tags](https://hub.docker.com/r/zabbix/zabbix-web-apache-mysql/tags/).
|
||||||
|
|
||||||
## Linking the container to Zabbix server
|
## Linking the container to Zabbix server
|
||||||
|
|
||||||
docker run --name some-zabbix-web-apache-mysql --link some-zabbix-server:zabbix-server -e DB_SERVER_HOST="some-mysql-server" -e MYSQL_USER="some-user" -e MYSQL_PASSWORD="some-password" -e ZBX_SERVER_HOST="some-zabbix-server" -e TZ="some-timezone" -d zabbix/zabbix-web-apache-mysql:tag
|
docker run --name some-zabbix-web-apache-mysql --link some-zabbix-server:zabbix-server -e DB_SERVER_HOST="some-mysql-server" -e MYSQL_USER="some-user" -e MYSQL_PASSWORD="some-password" -e ZBX_SERVER_HOST="some-zabbix-server" -e PHP_TZ="some-timezone" -d zabbix/zabbix-web-apache-mysql:tag
|
||||||
|
|
||||||
## Linking the container to MySQL database
|
## Linking the container to MySQL database
|
||||||
|
|
||||||
docker run --name some-zabbix-web-apache-mysql --link some-mysql-server:mysql -e DB_SERVER_HOST="some-mysql-server" -e MYSQL_USER="some-user" -e MYSQL_PASSWORD="some-password" -e ZBX_SERVER_HOST="some-zabbix-server" -e TZ="some-timezone" -d zabbix/zabbix-web-apache-mysql:tag
|
docker run --name some-zabbix-web-apache-mysql --link some-mysql-server:mysql -e DB_SERVER_HOST="some-mysql-server" -e MYSQL_USER="some-user" -e MYSQL_PASSWORD="some-password" -e ZBX_SERVER_HOST="some-zabbix-server" -e PHP_TZ="some-timezone" -d zabbix/zabbix-web-apache-mysql:tag
|
||||||
|
|
||||||
## Container shell access and viewing Zabbix web interface logs
|
## Container shell access and viewing Zabbix web interface logs
|
||||||
|
|
||||||
@ -92,7 +92,7 @@ These variables are used by Zabbix web interface to connect to Zabbix database.
|
|||||||
|
|
||||||
The variable is Zabbix database name. By default, value is `zabbix`.
|
The variable is Zabbix database name. By default, value is `zabbix`.
|
||||||
|
|
||||||
### `TZ`
|
### `PHP_TZ`
|
||||||
|
|
||||||
The variable is timezone in PHP format. Full list of supported timezones are available on [`php.net`](http://php.net/manual/en/timezones.php). By default, value is 'Europe/Riga'.
|
The variable is timezone in PHP format. Full list of supported timezones are available on [`php.net`](http://php.net/manual/en/timezones.php). By default, value is 'Europe/Riga'.
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ ZBX_SERVER_HOST=${ZBX_SERVER_HOST:-"zabbix-server"}
|
|||||||
ZBX_SERVER_PORT=${ZBX_SERVER_PORT:-"10051"}
|
ZBX_SERVER_PORT=${ZBX_SERVER_PORT:-"10051"}
|
||||||
|
|
||||||
# Default timezone for web interface
|
# Default timezone for web interface
|
||||||
TZ=${TZ:-"Europe/Riga"}
|
PHP_TZ=${PHP_TZ:-"Europe/Riga"}
|
||||||
|
|
||||||
# Default directories
|
# Default directories
|
||||||
# User 'zabbix' home directory
|
# User 'zabbix' home directory
|
||||||
@ -700,7 +700,7 @@ prepare_zbx_web_config() {
|
|||||||
update_config_var "$PHP_CONFIG_FILE" "post_max_size" "${ZBX_POSTMAXSIZE:-"16M"}"
|
update_config_var "$PHP_CONFIG_FILE" "post_max_size" "${ZBX_POSTMAXSIZE:-"16M"}"
|
||||||
update_config_var "$PHP_CONFIG_FILE" "upload_max_filesize" "${ZBX_UPLOADMAXFILESIZE:-"2M"}"
|
update_config_var "$PHP_CONFIG_FILE" "upload_max_filesize" "${ZBX_UPLOADMAXFILESIZE:-"2M"}"
|
||||||
update_config_var "$PHP_CONFIG_FILE" "max_input_time" "${ZBX_MAXINPUTTIME:-"300"}"
|
update_config_var "$PHP_CONFIG_FILE" "max_input_time" "${ZBX_MAXINPUTTIME:-"300"}"
|
||||||
update_config_var "$PHP_CONFIG_FILE" "date.timezone" "${TZ}"
|
update_config_var "$PHP_CONFIG_FILE" "date.timezone" "${PHP_TZ}"
|
||||||
else
|
else
|
||||||
echo "**** Zabbix related PHP configuration file not found"
|
echo "**** Zabbix related PHP configuration file not found"
|
||||||
fi
|
fi
|
||||||
|
@ -38,17 +38,17 @@ The image based on Apache2 web server with MySQL database support.
|
|||||||
|
|
||||||
Start a Zabbix web-interface container as follows:
|
Start a Zabbix web-interface container as follows:
|
||||||
|
|
||||||
docker run --name some-zabbix-web-apache-mysql -e DB_SERVER_HOST="some-mysql-server" -e MYSQL_USER="some-user" -e MYSQL_PASSWORD="some-password" -e ZBX_SERVER_HOST="some-zabbix-server" -e TZ="some-timezone" -d zabbix/zabbix-web-apache-mysql:tag
|
docker run --name some-zabbix-web-apache-mysql -e DB_SERVER_HOST="some-mysql-server" -e MYSQL_USER="some-user" -e MYSQL_PASSWORD="some-password" -e ZBX_SERVER_HOST="some-zabbix-server" -e PHP_TZ="some-timezone" -d zabbix/zabbix-web-apache-mysql:tag
|
||||||
|
|
||||||
Where `some-zabbix-web-apache-mysql` is the name you want to assign to your container, `some-mysql-server` is IP or DNS name of MySQL server, `some-user` is user to connect to Zabbix database on MySQL server, `some-password` is the password to connect to MySQL server, `some-zabbix-server` is IP or DNS name of Zabbix server or proxy, `some-timezone` is PHP like timezone name and `tag` is the tag specifying the version you want. See the list above for relevant tags, or look at the [full list of tags](https://hub.docker.com/r/zabbix/zabbix-web-apache-mysql/tags/).
|
Where `some-zabbix-web-apache-mysql` is the name you want to assign to your container, `some-mysql-server` is IP or DNS name of MySQL server, `some-user` is user to connect to Zabbix database on MySQL server, `some-password` is the password to connect to MySQL server, `some-zabbix-server` is IP or DNS name of Zabbix server or proxy, `some-timezone` is PHP like timezone name and `tag` is the tag specifying the version you want. See the list above for relevant tags, or look at the [full list of tags](https://hub.docker.com/r/zabbix/zabbix-web-apache-mysql/tags/).
|
||||||
|
|
||||||
## Linking the container to Zabbix server
|
## Linking the container to Zabbix server
|
||||||
|
|
||||||
docker run --name some-zabbix-web-apache-mysql --link some-zabbix-server:zabbix-server -e DB_SERVER_HOST="some-mysql-server" -e MYSQL_USER="some-user" -e MYSQL_PASSWORD="some-password" -e ZBX_SERVER_HOST="some-zabbix-server" -e TZ="some-timezone" -d zabbix/zabbix-web-apache-mysql:tag
|
docker run --name some-zabbix-web-apache-mysql --link some-zabbix-server:zabbix-server -e DB_SERVER_HOST="some-mysql-server" -e MYSQL_USER="some-user" -e MYSQL_PASSWORD="some-password" -e ZBX_SERVER_HOST="some-zabbix-server" -e PHP_TZ="some-timezone" -d zabbix/zabbix-web-apache-mysql:tag
|
||||||
|
|
||||||
## Linking the container to MySQL database
|
## Linking the container to MySQL database
|
||||||
|
|
||||||
docker run --name some-zabbix-web-apache-mysql --link some-mysql-server:mysql -e DB_SERVER_HOST="some-mysql-server" -e MYSQL_USER="some-user" -e MYSQL_PASSWORD="some-password" -e ZBX_SERVER_HOST="some-zabbix-server" -e TZ="some-timezone" -d zabbix/zabbix-web-apache-mysql:tag
|
docker run --name some-zabbix-web-apache-mysql --link some-mysql-server:mysql -e DB_SERVER_HOST="some-mysql-server" -e MYSQL_USER="some-user" -e MYSQL_PASSWORD="some-password" -e ZBX_SERVER_HOST="some-zabbix-server" -e PHP_TZ="some-timezone" -d zabbix/zabbix-web-apache-mysql:tag
|
||||||
|
|
||||||
## Container shell access and viewing Zabbix web interface logs
|
## Container shell access and viewing Zabbix web interface logs
|
||||||
|
|
||||||
@ -92,7 +92,7 @@ These variables are used by Zabbix web interface to connect to Zabbix database.
|
|||||||
|
|
||||||
The variable is Zabbix database name. By default, value is `zabbix`.
|
The variable is Zabbix database name. By default, value is `zabbix`.
|
||||||
|
|
||||||
### `TZ`
|
### `PHP_TZ`
|
||||||
|
|
||||||
The variable is timezone in PHP format. Full list of supported timezones are available on [`php.net`](http://php.net/manual/en/timezones.php). By default, value is 'Europe/Riga'.
|
The variable is timezone in PHP format. Full list of supported timezones are available on [`php.net`](http://php.net/manual/en/timezones.php). By default, value is 'Europe/Riga'.
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ ZBX_SERVER_HOST=${ZBX_SERVER_HOST:-"zabbix-server"}
|
|||||||
ZBX_SERVER_PORT=${ZBX_SERVER_PORT:-"10051"}
|
ZBX_SERVER_PORT=${ZBX_SERVER_PORT:-"10051"}
|
||||||
|
|
||||||
# Default timezone for web interface
|
# Default timezone for web interface
|
||||||
TZ=${TZ:-"Europe/Riga"}
|
PHP_TZ=${PHP_TZ:-"Europe/Riga"}
|
||||||
|
|
||||||
# Default directories
|
# Default directories
|
||||||
# User 'zabbix' home directory
|
# User 'zabbix' home directory
|
||||||
@ -700,7 +700,7 @@ prepare_zbx_web_config() {
|
|||||||
update_config_var "$PHP_CONFIG_FILE" "post_max_size" "${ZBX_POSTMAXSIZE:-"16M"}"
|
update_config_var "$PHP_CONFIG_FILE" "post_max_size" "${ZBX_POSTMAXSIZE:-"16M"}"
|
||||||
update_config_var "$PHP_CONFIG_FILE" "upload_max_filesize" "${ZBX_UPLOADMAXFILESIZE:-"2M"}"
|
update_config_var "$PHP_CONFIG_FILE" "upload_max_filesize" "${ZBX_UPLOADMAXFILESIZE:-"2M"}"
|
||||||
update_config_var "$PHP_CONFIG_FILE" "max_input_time" "${ZBX_MAXINPUTTIME:-"300"}"
|
update_config_var "$PHP_CONFIG_FILE" "max_input_time" "${ZBX_MAXINPUTTIME:-"300"}"
|
||||||
update_config_var "$PHP_CONFIG_FILE" "date.timezone" "${TZ}"
|
update_config_var "$PHP_CONFIG_FILE" "date.timezone" "${PHP_TZ}"
|
||||||
else
|
else
|
||||||
echo "**** Zabbix related PHP configuration file not found"
|
echo "**** Zabbix related PHP configuration file not found"
|
||||||
fi
|
fi
|
||||||
|
@ -38,17 +38,17 @@ The image based on Apache2 web server with PostgreSQL database support.
|
|||||||
|
|
||||||
Start a Zabbix web-interface container as follows:
|
Start a Zabbix web-interface container as follows:
|
||||||
|
|
||||||
docker run --name some-zabbix-web-apache-pgsql -e DB_SERVER_HOST="some-postgres-server" -e POSTGRES_USER="some-user" -e POSTGRES_PASSWORD="some-password" -e ZBX_SERVER_HOST="some-zabbix-server" -e TZ="some-timezone" -d zabbix/zabbix-web-apache-pgsql:tag
|
docker run --name some-zabbix-web-apache-pgsql -e DB_SERVER_HOST="some-postgres-server" -e POSTGRES_USER="some-user" -e POSTGRES_PASSWORD="some-password" -e ZBX_SERVER_HOST="some-zabbix-server" -e PHP_TZ="some-timezone" -d zabbix/zabbix-web-apache-pgsql:tag
|
||||||
|
|
||||||
Where `some-zabbix-web-apache-pgsql` is the name you want to assign to your container, `some-postgres-server` is IP or DNS name of PostgreSQL server, `some-user` is user to connect to Zabbix database on PostgreSQL server, `some-password` is the password to connect to PostgreSQL server, `some-zabbix-server` is IP or DNS name of Zabbix server or proxy, `some-timezone` is PHP like timezone name and `tag` is the tag specifying the version you want. See the list above for relevant tags, or look at the [full list of tags](https://hub.docker.com/r/zabbix/zabbix-web-apache-pgsql/tags/).
|
Where `some-zabbix-web-apache-pgsql` is the name you want to assign to your container, `some-postgres-server` is IP or DNS name of PostgreSQL server, `some-user` is user to connect to Zabbix database on PostgreSQL server, `some-password` is the password to connect to PostgreSQL server, `some-zabbix-server` is IP or DNS name of Zabbix server or proxy, `some-timezone` is PHP like timezone name and `tag` is the tag specifying the version you want. See the list above for relevant tags, or look at the [full list of tags](https://hub.docker.com/r/zabbix/zabbix-web-apache-pgsql/tags/).
|
||||||
|
|
||||||
## Linking the container to Zabbix server
|
## Linking the container to Zabbix server
|
||||||
|
|
||||||
docker run --name some-zabbix-web-apache-pgsql --link some-zabbix-server:zabbix-server -e DB_SERVER_HOST="some-postgres-server" -e POSTGRES_USER="some-user" -e POSTGRES_PASSWORD="some-password" -e ZBX_SERVER_HOST="some-zabbix-server" -e TZ="some-timezone" -d zabbix/zabbix-web-apache-pgsql:tag
|
docker run --name some-zabbix-web-apache-pgsql --link some-zabbix-server:zabbix-server -e DB_SERVER_HOST="some-postgres-server" -e POSTGRES_USER="some-user" -e POSTGRES_PASSWORD="some-password" -e ZBX_SERVER_HOST="some-zabbix-server" -e PHP_TZ="some-timezone" -d zabbix/zabbix-web-apache-pgsql:tag
|
||||||
|
|
||||||
## Linking the container to PostgreSQL database
|
## Linking the container to PostgreSQL database
|
||||||
|
|
||||||
docker run --name some-zabbix-web-apache-pgsql --link some-postgres-server:postgres -e DB_SERVER_HOST="some-postgres-server" -e POSTGRES_USER="some-user" -e POSTGRES_PASSWORD="some-password" -e ZBX_SERVER_HOST="some-zabbix-server" -e TZ="some-timezone" -d zabbix/zabbix-web-apache-pgsql:tag
|
docker run --name some-zabbix-web-apache-pgsql --link some-postgres-server:postgres -e DB_SERVER_HOST="some-postgres-server" -e POSTGRES_USER="some-user" -e POSTGRES_PASSWORD="some-password" -e ZBX_SERVER_HOST="some-zabbix-server" -e PHP_TZ="some-timezone" -d zabbix/zabbix-web-apache-pgsql:tag
|
||||||
|
|
||||||
## Container shell access and viewing Zabbix web interface logs
|
## Container shell access and viewing Zabbix web interface logs
|
||||||
|
|
||||||
@ -92,7 +92,7 @@ These variables are used by Zabbix web interface to connect to Zabbix database.
|
|||||||
|
|
||||||
The variable is Zabbix database name. By default, value is `zabbix`.
|
The variable is Zabbix database name. By default, value is `zabbix`.
|
||||||
|
|
||||||
### `TZ`
|
### `PHP_TZ`
|
||||||
|
|
||||||
The variable is timezone in PHP format. Full list of supported timezones are available on [`php.net`](http://php.net/manual/en/timezones.php). By default, value is 'Europe/Riga'.
|
The variable is timezone in PHP format. Full list of supported timezones are available on [`php.net`](http://php.net/manual/en/timezones.php). By default, value is 'Europe/Riga'.
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ ZBX_SERVER_HOST=${ZBX_SERVER_HOST:-"zabbix-server"}
|
|||||||
ZBX_SERVER_PORT=${ZBX_SERVER_PORT:-"10051"}
|
ZBX_SERVER_PORT=${ZBX_SERVER_PORT:-"10051"}
|
||||||
|
|
||||||
# Default timezone for web interface
|
# Default timezone for web interface
|
||||||
TZ=${TZ:-"Europe/Riga"}
|
PHP_TZ=${PHP_TZ:-"Europe/Riga"}
|
||||||
|
|
||||||
# Default directories
|
# Default directories
|
||||||
# User 'zabbix' home directory
|
# User 'zabbix' home directory
|
||||||
@ -700,7 +700,7 @@ prepare_zbx_web_config() {
|
|||||||
update_config_var "$PHP_CONFIG_FILE" "post_max_size" "${ZBX_POSTMAXSIZE:-"16M"}"
|
update_config_var "$PHP_CONFIG_FILE" "post_max_size" "${ZBX_POSTMAXSIZE:-"16M"}"
|
||||||
update_config_var "$PHP_CONFIG_FILE" "upload_max_filesize" "${ZBX_UPLOADMAXFILESIZE:-"2M"}"
|
update_config_var "$PHP_CONFIG_FILE" "upload_max_filesize" "${ZBX_UPLOADMAXFILESIZE:-"2M"}"
|
||||||
update_config_var "$PHP_CONFIG_FILE" "max_input_time" "${ZBX_MAXINPUTTIME:-"300"}"
|
update_config_var "$PHP_CONFIG_FILE" "max_input_time" "${ZBX_MAXINPUTTIME:-"300"}"
|
||||||
update_config_var "$PHP_CONFIG_FILE" "date.timezone" "${TZ}"
|
update_config_var "$PHP_CONFIG_FILE" "date.timezone" "${PHP_TZ}"
|
||||||
else
|
else
|
||||||
echo "**** Zabbix related PHP configuration file not found"
|
echo "**** Zabbix related PHP configuration file not found"
|
||||||
fi
|
fi
|
||||||
|
@ -38,17 +38,17 @@ The image based on Apache2 web server with PostgreSQL database support.
|
|||||||
|
|
||||||
Start a Zabbix web-interface container as follows:
|
Start a Zabbix web-interface container as follows:
|
||||||
|
|
||||||
docker run --name some-zabbix-web-apache-pgsql -e DB_SERVER_HOST="some-postgres-server" -e POSTGRES_USER="some-user" -e POSTGRES_PASSWORD="some-password" -e ZBX_SERVER_HOST="some-zabbix-server" -e TZ="some-timezone" -d zabbix/zabbix-web-apache-pgsql:tag
|
docker run --name some-zabbix-web-apache-pgsql -e DB_SERVER_HOST="some-postgres-server" -e POSTGRES_USER="some-user" -e POSTGRES_PASSWORD="some-password" -e ZBX_SERVER_HOST="some-zabbix-server" -e PHP_TZ="some-timezone" -d zabbix/zabbix-web-apache-pgsql:tag
|
||||||
|
|
||||||
Where `some-zabbix-web-apache-pgsql` is the name you want to assign to your container, `some-postgres-server` is IP or DNS name of PostgreSQL server, `some-user` is user to connect to Zabbix database on PostgreSQL server, `some-password` is the password to connect to PostgreSQL server, `some-zabbix-server` is IP or DNS name of Zabbix server or proxy, `some-timezone` is PHP like timezone name and `tag` is the tag specifying the version you want. See the list above for relevant tags, or look at the [full list of tags](https://hub.docker.com/r/zabbix/zabbix-web-apache-pgsql/tags/).
|
Where `some-zabbix-web-apache-pgsql` is the name you want to assign to your container, `some-postgres-server` is IP or DNS name of PostgreSQL server, `some-user` is user to connect to Zabbix database on PostgreSQL server, `some-password` is the password to connect to PostgreSQL server, `some-zabbix-server` is IP or DNS name of Zabbix server or proxy, `some-timezone` is PHP like timezone name and `tag` is the tag specifying the version you want. See the list above for relevant tags, or look at the [full list of tags](https://hub.docker.com/r/zabbix/zabbix-web-apache-pgsql/tags/).
|
||||||
|
|
||||||
## Linking the container to Zabbix server
|
## Linking the container to Zabbix server
|
||||||
|
|
||||||
docker run --name some-zabbix-web-apache-pgsql --link some-zabbix-server:zabbix-server -e DB_SERVER_HOST="some-postgres-server" -e POSTGRES_USER="some-user" -e POSTGRES_PASSWORD="some-password" -e ZBX_SERVER_HOST="some-zabbix-server" -e TZ="some-timezone" -d zabbix/zabbix-web-apache-pgsql:tag
|
docker run --name some-zabbix-web-apache-pgsql --link some-zabbix-server:zabbix-server -e DB_SERVER_HOST="some-postgres-server" -e POSTGRES_USER="some-user" -e POSTGRES_PASSWORD="some-password" -e ZBX_SERVER_HOST="some-zabbix-server" -e PHP_TZ="some-timezone" -d zabbix/zabbix-web-apache-pgsql:tag
|
||||||
|
|
||||||
## Linking the container to PostgreSQL database
|
## Linking the container to PostgreSQL database
|
||||||
|
|
||||||
docker run --name some-zabbix-web-apache-pgsql --link some-postgres-server:postgres -e DB_SERVER_HOST="some-postgres-server" -e POSTGRES_USER="some-user" -e POSTGRES_PASSWORD="some-password" -e ZBX_SERVER_HOST="some-zabbix-server" -e TZ="some-timezone" -d zabbix/zabbix-web-apache-pgsql:tag
|
docker run --name some-zabbix-web-apache-pgsql --link some-postgres-server:postgres -e DB_SERVER_HOST="some-postgres-server" -e POSTGRES_USER="some-user" -e POSTGRES_PASSWORD="some-password" -e ZBX_SERVER_HOST="some-zabbix-server" -e PHP_TZ="some-timezone" -d zabbix/zabbix-web-apache-pgsql:tag
|
||||||
|
|
||||||
## Container shell access and viewing Zabbix web interface logs
|
## Container shell access and viewing Zabbix web interface logs
|
||||||
|
|
||||||
@ -92,7 +92,7 @@ These variables are used by Zabbix web interface to connect to Zabbix database.
|
|||||||
|
|
||||||
The variable is Zabbix database name. By default, value is `zabbix`.
|
The variable is Zabbix database name. By default, value is `zabbix`.
|
||||||
|
|
||||||
### `TZ`
|
### `PHP_TZ`
|
||||||
|
|
||||||
The variable is timezone in PHP format. Full list of supported timezones are available on [`php.net`](http://php.net/manual/en/timezones.php). By default, value is 'Europe/Riga'.
|
The variable is timezone in PHP format. Full list of supported timezones are available on [`php.net`](http://php.net/manual/en/timezones.php). By default, value is 'Europe/Riga'.
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ ZBX_SERVER_HOST=${ZBX_SERVER_HOST:-"zabbix-server"}
|
|||||||
ZBX_SERVER_PORT=${ZBX_SERVER_PORT:-"10051"}
|
ZBX_SERVER_PORT=${ZBX_SERVER_PORT:-"10051"}
|
||||||
|
|
||||||
# Default timezone for web interface
|
# Default timezone for web interface
|
||||||
TZ=${TZ:-"Europe/Riga"}
|
PHP_TZ=${PHP_TZ:-"Europe/Riga"}
|
||||||
|
|
||||||
# Default directories
|
# Default directories
|
||||||
# User 'zabbix' home directory
|
# User 'zabbix' home directory
|
||||||
@ -700,7 +700,7 @@ prepare_zbx_web_config() {
|
|||||||
update_config_var "$PHP_CONFIG_FILE" "post_max_size" "${ZBX_POSTMAXSIZE:-"16M"}"
|
update_config_var "$PHP_CONFIG_FILE" "post_max_size" "${ZBX_POSTMAXSIZE:-"16M"}"
|
||||||
update_config_var "$PHP_CONFIG_FILE" "upload_max_filesize" "${ZBX_UPLOADMAXFILESIZE:-"2M"}"
|
update_config_var "$PHP_CONFIG_FILE" "upload_max_filesize" "${ZBX_UPLOADMAXFILESIZE:-"2M"}"
|
||||||
update_config_var "$PHP_CONFIG_FILE" "max_input_time" "${ZBX_MAXINPUTTIME:-"300"}"
|
update_config_var "$PHP_CONFIG_FILE" "max_input_time" "${ZBX_MAXINPUTTIME:-"300"}"
|
||||||
update_config_var "$PHP_CONFIG_FILE" "date.timezone" "${TZ}"
|
update_config_var "$PHP_CONFIG_FILE" "date.timezone" "${PHP_TZ}"
|
||||||
else
|
else
|
||||||
echo "**** Zabbix related PHP configuration file not found"
|
echo "**** Zabbix related PHP configuration file not found"
|
||||||
fi
|
fi
|
||||||
|
@ -38,17 +38,17 @@ The image based on Nginx web server with MySQL database support.
|
|||||||
|
|
||||||
Start a Zabbix web-interface container as follows:
|
Start a Zabbix web-interface container as follows:
|
||||||
|
|
||||||
docker run --name some-zabbix-web-nginx-mysql -e DB_SERVER_HOST="some-mysql-server" -e MYSQL_USER="some-user" -e MYSQL_PASSWORD="some-password" -e ZBX_SERVER_HOST="some-zabbix-server" -e TZ="some-timezone" -d zabbix/zabbix-web-nginx-mysql:tag
|
docker run --name some-zabbix-web-nginx-mysql -e DB_SERVER_HOST="some-mysql-server" -e MYSQL_USER="some-user" -e MYSQL_PASSWORD="some-password" -e ZBX_SERVER_HOST="some-zabbix-server" -e PHP_TZ="some-timezone" -d zabbix/zabbix-web-nginx-mysql:tag
|
||||||
|
|
||||||
Where `some-zabbix-web-nginx-mysql` is the name you want to assign to your container, `some-mysql-server` is IP or DNS name of MySQL server, `some-user` is user to connect to Zabbix database on MySQL server, `some-password` is the password to connect to MySQL server, `some-zabbix-server` is IP or DNS name of Zabbix server or proxy, `some-timezone` is PHP like timezone name and `tag` is the tag specifying the version you want. See the list above for relevant tags, or look at the [full list of tags](https://hub.docker.com/r/zabbix/zabbix-web-nginx-mysql/tags/).
|
Where `some-zabbix-web-nginx-mysql` is the name you want to assign to your container, `some-mysql-server` is IP or DNS name of MySQL server, `some-user` is user to connect to Zabbix database on MySQL server, `some-password` is the password to connect to MySQL server, `some-zabbix-server` is IP or DNS name of Zabbix server or proxy, `some-timezone` is PHP like timezone name and `tag` is the tag specifying the version you want. See the list above for relevant tags, or look at the [full list of tags](https://hub.docker.com/r/zabbix/zabbix-web-nginx-mysql/tags/).
|
||||||
|
|
||||||
## Linking the container to Zabbix server
|
## Linking the container to Zabbix server
|
||||||
|
|
||||||
docker run --name some-zabbix-web-nginx-mysql --link some-zabbix-server:zabbix-server -e DB_SERVER_HOST="some-mysql-server" -e MYSQL_USER="some-user" -e MYSQL_PASSWORD="some-password" -e ZBX_SERVER_HOST="some-zabbix-server" -e TZ="some-timezone" -d zabbix/zabbix-web-nginx-mysql:tag
|
docker run --name some-zabbix-web-nginx-mysql --link some-zabbix-server:zabbix-server -e DB_SERVER_HOST="some-mysql-server" -e MYSQL_USER="some-user" -e MYSQL_PASSWORD="some-password" -e ZBX_SERVER_HOST="some-zabbix-server" -e PHP_TZ="some-timezone" -d zabbix/zabbix-web-nginx-mysql:tag
|
||||||
|
|
||||||
## Linking the container to MySQL database
|
## Linking the container to MySQL database
|
||||||
|
|
||||||
docker run --name some-zabbix-web-nginx-mysql --link some-mysql-server:mysql -e DB_SERVER_HOST="some-mysql-server" -e MYSQL_USER="some-user" -e MYSQL_PASSWORD="some-password" -e ZBX_SERVER_HOST="some-zabbix-server" -e TZ="some-timezone" -d zabbix/zabbix-web-nginx-mysql:tag
|
docker run --name some-zabbix-web-nginx-mysql --link some-mysql-server:mysql -e DB_SERVER_HOST="some-mysql-server" -e MYSQL_USER="some-user" -e MYSQL_PASSWORD="some-password" -e ZBX_SERVER_HOST="some-zabbix-server" -e PHP_TZ="some-timezone" -d zabbix/zabbix-web-nginx-mysql:tag
|
||||||
|
|
||||||
## Container shell access and viewing Zabbix web interface logs
|
## Container shell access and viewing Zabbix web interface logs
|
||||||
|
|
||||||
@ -92,7 +92,7 @@ These variables are used by Zabbix web interface to connect to Zabbix database.
|
|||||||
|
|
||||||
The variable is Zabbix database name. By default, value is `zabbix`.
|
The variable is Zabbix database name. By default, value is `zabbix`.
|
||||||
|
|
||||||
### `TZ`
|
### `PHP_TZ`
|
||||||
|
|
||||||
The variable is timezone in PHP format. Full list of supported timezones are available on [`php.net`](http://php.net/manual/en/timezones.php). By default, value is 'Europe/Riga'.
|
The variable is timezone in PHP format. Full list of supported timezones are available on [`php.net`](http://php.net/manual/en/timezones.php). By default, value is 'Europe/Riga'.
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ ZBX_SERVER_HOST=${ZBX_SERVER_HOST:-"zabbix-server"}
|
|||||||
ZBX_SERVER_PORT=${ZBX_SERVER_PORT:-"10051"}
|
ZBX_SERVER_PORT=${ZBX_SERVER_PORT:-"10051"}
|
||||||
|
|
||||||
# Default timezone for web interface
|
# Default timezone for web interface
|
||||||
TZ=${TZ:-"Europe/Riga"}
|
PHP_TZ=${PHP_TZ:-"Europe/Riga"}
|
||||||
|
|
||||||
# Default directories
|
# Default directories
|
||||||
# User 'zabbix' home directory
|
# User 'zabbix' home directory
|
||||||
@ -700,7 +700,7 @@ prepare_zbx_web_config() {
|
|||||||
update_config_var "$PHP_CONFIG_FILE" "post_max_size" "${ZBX_POSTMAXSIZE:-"16M"}"
|
update_config_var "$PHP_CONFIG_FILE" "post_max_size" "${ZBX_POSTMAXSIZE:-"16M"}"
|
||||||
update_config_var "$PHP_CONFIG_FILE" "upload_max_filesize" "${ZBX_UPLOADMAXFILESIZE:-"2M"}"
|
update_config_var "$PHP_CONFIG_FILE" "upload_max_filesize" "${ZBX_UPLOADMAXFILESIZE:-"2M"}"
|
||||||
update_config_var "$PHP_CONFIG_FILE" "max_input_time" "${ZBX_MAXINPUTTIME:-"300"}"
|
update_config_var "$PHP_CONFIG_FILE" "max_input_time" "${ZBX_MAXINPUTTIME:-"300"}"
|
||||||
update_config_var "$PHP_CONFIG_FILE" "date.timezone" "${TZ}"
|
update_config_var "$PHP_CONFIG_FILE" "date.timezone" "${PHP_TZ}"
|
||||||
else
|
else
|
||||||
echo "**** Zabbix related PHP configuration file not found"
|
echo "**** Zabbix related PHP configuration file not found"
|
||||||
fi
|
fi
|
||||||
|
@ -38,17 +38,17 @@ The image based on Nginx web server with MySQL database support.
|
|||||||
|
|
||||||
Start a Zabbix web-interface container as follows:
|
Start a Zabbix web-interface container as follows:
|
||||||
|
|
||||||
docker run --name some-zabbix-web-nginx-mysql -e DB_SERVER_HOST="some-mysql-server" -e MYSQL_USER="some-user" -e MYSQL_PASSWORD="some-password" -e ZBX_SERVER_HOST="some-zabbix-server" -e TZ="some-timezone" -d zabbix/zabbix-web-nginx-mysql:tag
|
docker run --name some-zabbix-web-nginx-mysql -e DB_SERVER_HOST="some-mysql-server" -e MYSQL_USER="some-user" -e MYSQL_PASSWORD="some-password" -e ZBX_SERVER_HOST="some-zabbix-server" -e PHP_TZ="some-timezone" -d zabbix/zabbix-web-nginx-mysql:tag
|
||||||
|
|
||||||
Where `some-zabbix-web-nginx-mysql` is the name you want to assign to your container, `some-mysql-server` is IP or DNS name of MySQL server, `some-user` is user to connect to Zabbix database on MySQL server, `some-password` is the password to connect to MySQL server, `some-zabbix-server` is IP or DNS name of Zabbix server or proxy, `some-timezone` is PHP like timezone name and `tag` is the tag specifying the version you want. See the list above for relevant tags, or look at the [full list of tags](https://hub.docker.com/r/zabbix/zabbix-web-nginx-mysql/tags/).
|
Where `some-zabbix-web-nginx-mysql` is the name you want to assign to your container, `some-mysql-server` is IP or DNS name of MySQL server, `some-user` is user to connect to Zabbix database on MySQL server, `some-password` is the password to connect to MySQL server, `some-zabbix-server` is IP or DNS name of Zabbix server or proxy, `some-timezone` is PHP like timezone name and `tag` is the tag specifying the version you want. See the list above for relevant tags, or look at the [full list of tags](https://hub.docker.com/r/zabbix/zabbix-web-nginx-mysql/tags/).
|
||||||
|
|
||||||
## Linking the container to Zabbix server
|
## Linking the container to Zabbix server
|
||||||
|
|
||||||
docker run --name some-zabbix-web-nginx-mysql --link some-zabbix-server:zabbix-server -e DB_SERVER_HOST="some-mysql-server" -e MYSQL_USER="some-user" -e MYSQL_PASSWORD="some-password" -e ZBX_SERVER_HOST="some-zabbix-server" -e TZ="some-timezone" -d zabbix/zabbix-web-nginx-mysql:tag
|
docker run --name some-zabbix-web-nginx-mysql --link some-zabbix-server:zabbix-server -e DB_SERVER_HOST="some-mysql-server" -e MYSQL_USER="some-user" -e MYSQL_PASSWORD="some-password" -e ZBX_SERVER_HOST="some-zabbix-server" -e PHP_TZ="some-timezone" -d zabbix/zabbix-web-nginx-mysql:tag
|
||||||
|
|
||||||
## Linking the container to MySQL database
|
## Linking the container to MySQL database
|
||||||
|
|
||||||
docker run --name some-zabbix-web-nginx-mysql --link some-mysql-server:mysql -e DB_SERVER_HOST="some-mysql-server" -e MYSQL_USER="some-user" -e MYSQL_PASSWORD="some-password" -e ZBX_SERVER_HOST="some-zabbix-server" -e TZ="some-timezone" -d zabbix/zabbix-web-nginx-mysql:tag
|
docker run --name some-zabbix-web-nginx-mysql --link some-mysql-server:mysql -e DB_SERVER_HOST="some-mysql-server" -e MYSQL_USER="some-user" -e MYSQL_PASSWORD="some-password" -e ZBX_SERVER_HOST="some-zabbix-server" -e PHP_TZ="some-timezone" -d zabbix/zabbix-web-nginx-mysql:tag
|
||||||
|
|
||||||
## Container shell access and viewing Zabbix web interface logs
|
## Container shell access and viewing Zabbix web interface logs
|
||||||
|
|
||||||
@ -92,7 +92,7 @@ These variables are used by Zabbix web interface to connect to Zabbix database.
|
|||||||
|
|
||||||
The variable is Zabbix database name. By default, value is `zabbix`.
|
The variable is Zabbix database name. By default, value is `zabbix`.
|
||||||
|
|
||||||
### `TZ`
|
### `PHP_TZ`
|
||||||
|
|
||||||
The variable is timezone in PHP format. Full list of supported timezones are available on [`php.net`](http://php.net/manual/en/timezones.php). By default, value is 'Europe/Riga'.
|
The variable is timezone in PHP format. Full list of supported timezones are available on [`php.net`](http://php.net/manual/en/timezones.php). By default, value is 'Europe/Riga'.
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ ZBX_SERVER_HOST=${ZBX_SERVER_HOST:-"zabbix-server"}
|
|||||||
ZBX_SERVER_PORT=${ZBX_SERVER_PORT:-"10051"}
|
ZBX_SERVER_PORT=${ZBX_SERVER_PORT:-"10051"}
|
||||||
|
|
||||||
# Default timezone for web interface
|
# Default timezone for web interface
|
||||||
TZ=${TZ:-"Europe/Riga"}
|
PHP_TZ=${PHP_TZ:-"Europe/Riga"}
|
||||||
|
|
||||||
# Default directories
|
# Default directories
|
||||||
# User 'zabbix' home directory
|
# User 'zabbix' home directory
|
||||||
@ -700,7 +700,7 @@ prepare_zbx_web_config() {
|
|||||||
update_config_var "$PHP_CONFIG_FILE" "post_max_size" "${ZBX_POSTMAXSIZE:-"16M"}"
|
update_config_var "$PHP_CONFIG_FILE" "post_max_size" "${ZBX_POSTMAXSIZE:-"16M"}"
|
||||||
update_config_var "$PHP_CONFIG_FILE" "upload_max_filesize" "${ZBX_UPLOADMAXFILESIZE:-"2M"}"
|
update_config_var "$PHP_CONFIG_FILE" "upload_max_filesize" "${ZBX_UPLOADMAXFILESIZE:-"2M"}"
|
||||||
update_config_var "$PHP_CONFIG_FILE" "max_input_time" "${ZBX_MAXINPUTTIME:-"300"}"
|
update_config_var "$PHP_CONFIG_FILE" "max_input_time" "${ZBX_MAXINPUTTIME:-"300"}"
|
||||||
update_config_var "$PHP_CONFIG_FILE" "date.timezone" "${TZ}"
|
update_config_var "$PHP_CONFIG_FILE" "date.timezone" "${PHP_TZ}"
|
||||||
else
|
else
|
||||||
echo "**** Zabbix related PHP configuration file not found"
|
echo "**** Zabbix related PHP configuration file not found"
|
||||||
fi
|
fi
|
||||||
|
@ -38,17 +38,17 @@ The image based on Nginx web server with PostgreSQL database support.
|
|||||||
|
|
||||||
Start a Zabbix web-interface container as follows:
|
Start a Zabbix web-interface container as follows:
|
||||||
|
|
||||||
docker run --name some-zabbix-web-nginx-pgsql -e DB_SERVER_HOST="some-postgres-server" -e POSTGRES_USER="some-user" -e POSTGRES_PASSWORD="some-password" -e ZBX_SERVER_HOST="some-zabbix-server" -e TZ="some-timezone" -d zabbix/zabbix-web-nginx-pgsql:tag
|
docker run --name some-zabbix-web-nginx-pgsql -e DB_SERVER_HOST="some-postgres-server" -e POSTGRES_USER="some-user" -e POSTGRES_PASSWORD="some-password" -e ZBX_SERVER_HOST="some-zabbix-server" -e PHP_TZ="some-timezone" -d zabbix/zabbix-web-nginx-pgsql:tag
|
||||||
|
|
||||||
Where `some-zabbix-web-nginx-pgsql` is the name you want to assign to your container, `some-postgres-server` is IP or DNS name of PostgreSQL server, `some-user` is user to connect to Zabbix database on PostgreSQL server, `some-password` is the password to connect to PostgreSQL server, `some-zabbix-server` is IP or DNS name of Zabbix server or proxy, `some-timezone` is PHP like timezone name and `tag` is the tag specifying the version you want. See the list above for relevant tags, or look at the [full list of tags](https://hub.docker.com/r/zabbix/zabbix-web-nginx-pgsql/tags/).
|
Where `some-zabbix-web-nginx-pgsql` is the name you want to assign to your container, `some-postgres-server` is IP or DNS name of PostgreSQL server, `some-user` is user to connect to Zabbix database on PostgreSQL server, `some-password` is the password to connect to PostgreSQL server, `some-zabbix-server` is IP or DNS name of Zabbix server or proxy, `some-timezone` is PHP like timezone name and `tag` is the tag specifying the version you want. See the list above for relevant tags, or look at the [full list of tags](https://hub.docker.com/r/zabbix/zabbix-web-nginx-pgsql/tags/).
|
||||||
|
|
||||||
## Linking the container to Zabbix server
|
## Linking the container to Zabbix server
|
||||||
|
|
||||||
docker run --name some-zabbix-web-nginx-pgsql --link some-zabbix-server:zabbix-server -e DB_SERVER_HOST="some-postgres-server" -e POSTGRES_USER="some-user" -e POSTGRES_PASSWORD="some-password" -e ZBX_SERVER_HOST="some-zabbix-server" -e TZ="some-timezone" -d zabbix/zabbix-web-nginx-pgsql:tag
|
docker run --name some-zabbix-web-nginx-pgsql --link some-zabbix-server:zabbix-server -e DB_SERVER_HOST="some-postgres-server" -e POSTGRES_USER="some-user" -e POSTGRES_PASSWORD="some-password" -e ZBX_SERVER_HOST="some-zabbix-server" -e PHP_TZ="some-timezone" -d zabbix/zabbix-web-nginx-pgsql:tag
|
||||||
|
|
||||||
## Linking the container to PostgreSQL database
|
## Linking the container to PostgreSQL database
|
||||||
|
|
||||||
docker run --name some-zabbix-web-nginx-pgsql --link some-postgres-server:postgres -e DB_SERVER_HOST="some-postgres-server" -e POSTGRES_USER="some-user" -e POSTGRES_PASSWORD="some-password" -e ZBX_SERVER_HOST="some-zabbix-server" -e TZ="some-timezone" -d zabbix/zabbix-web-nginx-pgsql:tag
|
docker run --name some-zabbix-web-nginx-pgsql --link some-postgres-server:postgres -e DB_SERVER_HOST="some-postgres-server" -e POSTGRES_USER="some-user" -e POSTGRES_PASSWORD="some-password" -e ZBX_SERVER_HOST="some-zabbix-server" -e PHP_TZ="some-timezone" -d zabbix/zabbix-web-nginx-pgsql:tag
|
||||||
|
|
||||||
## Container shell access and viewing Zabbix web interface logs
|
## Container shell access and viewing Zabbix web interface logs
|
||||||
|
|
||||||
@ -92,7 +92,7 @@ These variables are used by Zabbix web interface to connect to Zabbix database.
|
|||||||
|
|
||||||
The variable is Zabbix database name. By default, value is `zabbix`.
|
The variable is Zabbix database name. By default, value is `zabbix`.
|
||||||
|
|
||||||
### `TZ`
|
### `PHP_TZ`
|
||||||
|
|
||||||
The variable is timezone in PHP format. Full list of supported timezones are available on [`php.net`](http://php.net/manual/en/timezones.php). By default, value is 'Europe/Riga'.
|
The variable is timezone in PHP format. Full list of supported timezones are available on [`php.net`](http://php.net/manual/en/timezones.php). By default, value is 'Europe/Riga'.
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ ZBX_SERVER_HOST=${ZBX_SERVER_HOST:-"zabbix-server"}
|
|||||||
ZBX_SERVER_PORT=${ZBX_SERVER_PORT:-"10051"}
|
ZBX_SERVER_PORT=${ZBX_SERVER_PORT:-"10051"}
|
||||||
|
|
||||||
# Default timezone for web interface
|
# Default timezone for web interface
|
||||||
TZ=${TZ:-"Europe/Riga"}
|
PHP_TZ=${PHP_TZ:-"Europe/Riga"}
|
||||||
|
|
||||||
# Default directories
|
# Default directories
|
||||||
# User 'zabbix' home directory
|
# User 'zabbix' home directory
|
||||||
@ -700,7 +700,7 @@ prepare_zbx_web_config() {
|
|||||||
update_config_var "$PHP_CONFIG_FILE" "post_max_size" "${ZBX_POSTMAXSIZE:-"16M"}"
|
update_config_var "$PHP_CONFIG_FILE" "post_max_size" "${ZBX_POSTMAXSIZE:-"16M"}"
|
||||||
update_config_var "$PHP_CONFIG_FILE" "upload_max_filesize" "${ZBX_UPLOADMAXFILESIZE:-"2M"}"
|
update_config_var "$PHP_CONFIG_FILE" "upload_max_filesize" "${ZBX_UPLOADMAXFILESIZE:-"2M"}"
|
||||||
update_config_var "$PHP_CONFIG_FILE" "max_input_time" "${ZBX_MAXINPUTTIME:-"300"}"
|
update_config_var "$PHP_CONFIG_FILE" "max_input_time" "${ZBX_MAXINPUTTIME:-"300"}"
|
||||||
update_config_var "$PHP_CONFIG_FILE" "date.timezone" "${TZ}"
|
update_config_var "$PHP_CONFIG_FILE" "date.timezone" "${PHP_TZ}"
|
||||||
else
|
else
|
||||||
echo "**** Zabbix related PHP configuration file not found"
|
echo "**** Zabbix related PHP configuration file not found"
|
||||||
fi
|
fi
|
||||||
|
@ -38,17 +38,17 @@ The image based on Nginx web server with PostgreSQL database support.
|
|||||||
|
|
||||||
Start a Zabbix web-interface container as follows:
|
Start a Zabbix web-interface container as follows:
|
||||||
|
|
||||||
docker run --name some-zabbix-web-nginx-pgsql -e DB_SERVER_HOST="some-postgres-server" -e POSTGRES_USER="some-user" -e POSTGRES_PASSWORD="some-password" -e ZBX_SERVER_HOST="some-zabbix-server" -e TZ="some-timezone" -d zabbix/zabbix-web-nginx-pgsql:tag
|
docker run --name some-zabbix-web-nginx-pgsql -e DB_SERVER_HOST="some-postgres-server" -e POSTGRES_USER="some-user" -e POSTGRES_PASSWORD="some-password" -e ZBX_SERVER_HOST="some-zabbix-server" -e PHP_TZ="some-timezone" -d zabbix/zabbix-web-nginx-pgsql:tag
|
||||||
|
|
||||||
Where `some-zabbix-web-nginx-pgsql` is the name you want to assign to your container, `some-postgres-server` is IP or DNS name of PostgreSQL server, `some-user` is user to connect to Zabbix database on PostgreSQL server, `some-password` is the password to connect to PostgreSQL server, `some-zabbix-server` is IP or DNS name of Zabbix server or proxy, `some-timezone` is PHP like timezone name and `tag` is the tag specifying the version you want. See the list above for relevant tags, or look at the [full list of tags](https://hub.docker.com/r/zabbix/zabbix-web-nginx-pgsql/tags/).
|
Where `some-zabbix-web-nginx-pgsql` is the name you want to assign to your container, `some-postgres-server` is IP or DNS name of PostgreSQL server, `some-user` is user to connect to Zabbix database on PostgreSQL server, `some-password` is the password to connect to PostgreSQL server, `some-zabbix-server` is IP or DNS name of Zabbix server or proxy, `some-timezone` is PHP like timezone name and `tag` is the tag specifying the version you want. See the list above for relevant tags, or look at the [full list of tags](https://hub.docker.com/r/zabbix/zabbix-web-nginx-pgsql/tags/).
|
||||||
|
|
||||||
## Linking the container to Zabbix server
|
## Linking the container to Zabbix server
|
||||||
|
|
||||||
docker run --name some-zabbix-web-nginx-pgsql --link some-zabbix-server:zabbix-server -e DB_SERVER_HOST="some-postgres-server" -e POSTGRES_USER="some-user" -e POSTGRES_PASSWORD="some-password" -e ZBX_SERVER_HOST="some-zabbix-server" -e TZ="some-timezone" -d zabbix/zabbix-web-nginx-pgsql:tag
|
docker run --name some-zabbix-web-nginx-pgsql --link some-zabbix-server:zabbix-server -e DB_SERVER_HOST="some-postgres-server" -e POSTGRES_USER="some-user" -e POSTGRES_PASSWORD="some-password" -e ZBX_SERVER_HOST="some-zabbix-server" -e PHP_TZ="some-timezone" -d zabbix/zabbix-web-nginx-pgsql:tag
|
||||||
|
|
||||||
## Linking the container to PostgreSQL database
|
## Linking the container to PostgreSQL database
|
||||||
|
|
||||||
docker run --name some-zabbix-web-nginx-pgsql --link some-postgres-server:postgres -e DB_SERVER_HOST="some-postgres-server" -e POSTGRES_USER="some-user" -e POSTGRES_PASSWORD="some-password" -e ZBX_SERVER_HOST="some-zabbix-server" -e TZ="some-timezone" -d zabbix/zabbix-web-nginx-pgsql:tag
|
docker run --name some-zabbix-web-nginx-pgsql --link some-postgres-server:postgres -e DB_SERVER_HOST="some-postgres-server" -e POSTGRES_USER="some-user" -e POSTGRES_PASSWORD="some-password" -e ZBX_SERVER_HOST="some-zabbix-server" -e PHP_TZ="some-timezone" -d zabbix/zabbix-web-nginx-pgsql:tag
|
||||||
|
|
||||||
## Container shell access and viewing Zabbix web interface logs
|
## Container shell access and viewing Zabbix web interface logs
|
||||||
|
|
||||||
@ -92,7 +92,7 @@ These variables are used by Zabbix web interface to connect to Zabbix database.
|
|||||||
|
|
||||||
The variable is Zabbix database name. By default, value is `zabbix`.
|
The variable is Zabbix database name. By default, value is `zabbix`.
|
||||||
|
|
||||||
### `TZ`
|
### `PHP_TZ`
|
||||||
|
|
||||||
The variable is timezone in PHP format. Full list of supported timezones are available on [`php.net`](http://php.net/manual/en/timezones.php). By default, value is 'Europe/Riga'.
|
The variable is timezone in PHP format. Full list of supported timezones are available on [`php.net`](http://php.net/manual/en/timezones.php). By default, value is 'Europe/Riga'.
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ ZBX_SERVER_HOST=${ZBX_SERVER_HOST:-"zabbix-server"}
|
|||||||
ZBX_SERVER_PORT=${ZBX_SERVER_PORT:-"10051"}
|
ZBX_SERVER_PORT=${ZBX_SERVER_PORT:-"10051"}
|
||||||
|
|
||||||
# Default timezone for web interface
|
# Default timezone for web interface
|
||||||
TZ=${TZ:-"Europe/Riga"}
|
PHP_TZ=${PHP_TZ:-"Europe/Riga"}
|
||||||
|
|
||||||
# Default directories
|
# Default directories
|
||||||
# User 'zabbix' home directory
|
# User 'zabbix' home directory
|
||||||
@ -700,7 +700,7 @@ prepare_zbx_web_config() {
|
|||||||
update_config_var "$PHP_CONFIG_FILE" "post_max_size" "${ZBX_POSTMAXSIZE:-"16M"}"
|
update_config_var "$PHP_CONFIG_FILE" "post_max_size" "${ZBX_POSTMAXSIZE:-"16M"}"
|
||||||
update_config_var "$PHP_CONFIG_FILE" "upload_max_filesize" "${ZBX_UPLOADMAXFILESIZE:-"2M"}"
|
update_config_var "$PHP_CONFIG_FILE" "upload_max_filesize" "${ZBX_UPLOADMAXFILESIZE:-"2M"}"
|
||||||
update_config_var "$PHP_CONFIG_FILE" "max_input_time" "${ZBX_MAXINPUTTIME:-"300"}"
|
update_config_var "$PHP_CONFIG_FILE" "max_input_time" "${ZBX_MAXINPUTTIME:-"300"}"
|
||||||
update_config_var "$PHP_CONFIG_FILE" "date.timezone" "${TZ}"
|
update_config_var "$PHP_CONFIG_FILE" "date.timezone" "${PHP_TZ}"
|
||||||
else
|
else
|
||||||
echo "**** Zabbix related PHP configuration file not found"
|
echo "**** Zabbix related PHP configuration file not found"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user