Ad Widget

Collapse

Impossible to get Zabbix to show correct time!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Fableman73
    Junior Member
    • Oct 2016
    • 9

    #1

    Impossible to get Zabbix to show correct time!

    Hi, I think I tried everything there is to try and still zabbix show the wrong time.. Here is what I done and my output.

    Please take a look at this and tell me what iam doing wrong...

    Version: Zabbix 3.2.1

    locale
    LANG=en_US.UTF-8
    LANGUAGE=
    LC_CTYPE="en_US.UTF-8"
    LC_NUMERIC="en_US.UTF-8"
    LC_TIME="en_US.UTF-8"
    LC_COLLATE="en_US.UTF-8"
    LC_MONETARY="en_US.UTF-8"
    LC_MESSAGES="en_US.UTF-8"
    LC_PAPER="en_US.UTF-8"
    LC_NAME="en_US.UTF-8"
    LC_ADDRESS="en_US.UTF-8"
    LC_TELEPHONE="en_US.UTF-8"
    LC_MEASUREMENT="en_US.UTF-8"
    LC_IDENTIFICATION="en_US.UTF-8"
    LC_ALL=

    /etc/php5/apache2/php.ini
    date.timezone = Europe/Stockholm


    dpkg-reconfigure tzdata

    Current default time zone: 'Europe/Stockholm'
    Local time is now: Tue Oct 18 10:22:22 CEST 2016.
    Universal Time is now: Tue Oct 18 08:22:22 UTC 2016.

    date
    Tue Oct 18 10:22:55 CEST 2016

    hwclock --show
    Tue 18 Oct 2016 10:23:27 AM CEST -0.770576 seconds

    rebooting server

    date
    Tue Oct 18 10:26:29 CEST 2016

    Zabbix web GUI show: Updated: 11:26:38

    Browsed from 2 different computers with 2 different browsers still showing wrong time.

    I can't find anything more todo! Feels like Zabbix hardcoded +1 hour.
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    Please make sure date.timezone outside the php.ini file has not been set.

    ex. /etc/apache2/conf-enabled/zabbix.conf

    Comment

    • kloczek
      Senior Member
      • Jun 2006
      • 1771

      #3
      hwclock should keep not a local time but UTC.
      After reboot your local time zone time is applied do 10:22 UTC.
      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

      Working...