Ad Widget

Collapse

Issue with Zabbix time

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • orion5566
    Junior Member
    • Oct 2012
    • 4

    #1

    Issue with Zabbix time

    Hi
    I have an issue with my Zabbix, he shows me two hours less.
    In my virtual machine my clock is correct and my time zone is correct.
    where can I change zabbix time ? or where is it getting this hour?
    Than you
    Regards.
  • nelsonab
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2006
    • 1233

    #2
    Time is stored/used in three (sometimes 4 or 5 places). For passive items the timestamp recorded in the database is the time of the server the Zabbix server is running on. For active items the time stamp may come from the client. When viewing graphs and other data in the frontend the time used is that of the client on which the web browser is running. However the timezone setting in the the php config file on the frontend server can impact things as well, however the time on the system running the frontend is not often used.

    Hopefully that helps clear things up.
    RHCE, author of zbxapi
    Ansible, the missing piece (Zabconf 2017): https://www.youtube.com/watch?v=R5T9NidjjDE
    Zabbix and SNMP on Linux (Zabconf 2015): https://www.youtube.com/watch?v=98PEHpLFVHM

    Comment

    • orion5566
      Junior Member
      • Oct 2012
      • 4

      #3
      Thanks for your reply.
      My zabbix dashboard is where the hour is delaying for two hours.
      The emails are being sent with the correct time.
      I checked again my linux date/hour and it´s properly configured.
      I have a lot of machines on diferents places with the time ok, which are sending information and their logs are showed in the dashboard with wrong hour.
      Where can I found the php file configuration?

      Regards.

      Comment

      • emmanux
        Member
        Zabbix Certified Specialist
        • Mar 2013
        • 47

        #4
        Code:
        locate php.ini
        locate apache.conf | grep zabbix

        Comment

        • DaiTengu
          Junior Member
          • Feb 2014
          • 1

          #5
          Originally posted by emmanux
          Code:
          locate php.ini
          locate apache.conf | grep zabbix
          It's likely you've installed via RPMs. I had the same issue, and it was driving me insane until I came across emmanux's post here. I remembered that in /etc/httpd/conf.d/ there resides zabbix.conf change php_value date.timezone to your timezone.

          then restart apache.

          Comment

          Working...