Ad Widget

Collapse

How do I change timezone on Zabbix server running in Docker?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • treefox
    Junior Member
    • Nov 2019
    • 6

    #1

    How do I change timezone on Zabbix server running in Docker?

    I noticed my graphs on my server have the incorrect time. I am using Docker to run a Zabbix server, but I do not where the correct file is to change the timezone from the default (I believe it is using Europe/Riga) . I used
    Code:
    sudo docker pull zabbix/zabbix-server-mysql
    to get the image, and docker-compose_v3_ubuntu_mysql_latest.yaml to run the container. I used this tutorial to install the Docker: https://www.youtube.com/watch?v=eycKS8Nbv7o. For future reference, when using Zabbix Docker, are all the files that I change contained within the image? So I would always have to go into the image folder to find a file related to my Zabbix Docker Server?
  • kloczek
    Senior Member
    • Jun 2006
    • 1771

    #2
    Internally zabbix is using GMT for all time stams.
    All what you can change is time zone of the web frontend and you can do this changing time zone in php.ini.
    http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
    https://kloczek.wordpress.com/
    zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
    My zabbix templates https://github.com/kloczek/zabbix-templates

    Comment

    • Atsushi
      Senior Member
      • Aug 2013
      • 2028

      #3
      If it is the timezone of the web front end, specify the environment variable PHP_TZ and start the container.
      If you are using docker-compose_v3_ubuntu_mysql_latest.yaml, you can specify it in .env_web.

      ex.
      Official Zabbix Dockerfiles. Contribute to zabbix/zabbix-docker development by creating an account on GitHub.

      Comment

      Working...