Hey everyone,
I have A Zabbix 5.0 stack (nginx/mysql) running on a Ubuntu 18.04 server via docker containers.
Rather than running the applicance I have separate containers for the database, server and frontend.
The stack it spun up and down via a docker-compose yaml file and all containers have the "TZ" and "PHP_TZ" (just in case) environment variables set to my local timezone "Europe/London".
I also have volumes setup on each container to map the servers localtime file "/etc/localtime:/etc/localtime:ro".
The issue is the Zabbix server container is an hour behind. This shows up in email alerts and the problem history which is confusing when you recieve an alert that a server when down an hour ago when its only just happened.
Main server (running docker) = Time 13:00
Zabbix frontend= Time 13:00
MySql DB = Time 13:00
Zabbix server = Time 12:00
When I get email alerts come through via actions they include the time as per the Zabbix server (i.e. an hour behind) however they appear to be correct everywhere else.
I've been googling for hours but I can't seem to find a resolution. The zabbix server docker image also doesn't have sudo installed so I'm struggling to run any commands which may resolve the issue.
When running the "date" command within the containers I get "Tue Jun 9 14:38:42 BST 2020" for the correct containers but "Tue Jun 9 13:38:42 Europe 2020" on the zabbix server container.
I'm at my wits end here. Any help would be greatly appreciated.
Thanks!
I have A Zabbix 5.0 stack (nginx/mysql) running on a Ubuntu 18.04 server via docker containers.
Rather than running the applicance I have separate containers for the database, server and frontend.
The stack it spun up and down via a docker-compose yaml file and all containers have the "TZ" and "PHP_TZ" (just in case) environment variables set to my local timezone "Europe/London".
I also have volumes setup on each container to map the servers localtime file "/etc/localtime:/etc/localtime:ro".
The issue is the Zabbix server container is an hour behind. This shows up in email alerts and the problem history which is confusing when you recieve an alert that a server when down an hour ago when its only just happened.
Main server (running docker) = Time 13:00
Zabbix frontend= Time 13:00
MySql DB = Time 13:00
Zabbix server = Time 12:00
When I get email alerts come through via actions they include the time as per the Zabbix server (i.e. an hour behind) however they appear to be correct everywhere else.
I've been googling for hours but I can't seem to find a resolution. The zabbix server docker image also doesn't have sudo installed so I'm struggling to run any commands which may resolve the issue.
When running the "date" command within the containers I get "Tue Jun 9 14:38:42 BST 2020" for the correct containers but "Tue Jun 9 13:38:42 Europe 2020" on the zabbix server container.
I'm at my wits end here. Any help would be greatly appreciated.
Thanks!