Ad Widget

Collapse

Do the zabbix server and host need to on same timezone

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • santhosh04
    Junior Member
    • Feb 2019
    • 5

    #1

    Do the zabbix server and host need to on same timezone

    I'm facing an issue with the my zabbix server. Getting metriecs from the host but it is delay by 6 hours.

    Please help me on resolving this.

    Attached Files
  • Andrzej PAwlik
    Junior Member
    • Feb 2019
    • 27

    #2
    Read this topic on forum Growing queue after upgrading from 3.4 to 4

    Comment

    • kloczek
      Senior Member
      • Jun 2006
      • 1771

      #3
      No. Both hosts needs to have hardware clock as UTC + time zone definition. Because all time stamps in zabbix db are written as UTC zabbix frontend allays is able to present those timestamps as time in exact time zone.
      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

      • Andrzej PAwlik
        Junior Member
        • Feb 2019
        • 27

        #4
        I have the same problem after upgrade Zabbix 3.2 to 4.0

        In my case help

        1. fix time on the server.
        2. restart agent zabbix.

        Click image for larger version

Name:	Przechwytywanie.PNG
Views:	4951
Size:	16.4 KB
ID:	375019

        Comment

        • kloczek
          Senior Member
          • Jun 2006
          • 1771

          #5
          Originally posted by Andrzej PAwlik
          I have the same problem after upgrade Zabbix 3.2 to 4.0

          In my case help

          1. fix time on the server.
          2. restart agent zabbix.
          You need to have everywhere as RTC (Real Time clock) as UTC time. Check what shows you "date -u" command.
          You can have on every system different time zone but UTC it is on top of UTC.
          Looks like you are setting up on those system as RTC not UTC but exact zone times by this you have all those observed time shifts.
          Your issue has nothing to do with zabbix. Simple you are setting up incorrectly time on your systems
          https://access.redhat.com/documentat..._date_and_time
          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

          • gprentice11
            Junior Member
            • Mar 2019
            • 1

            #6
            The default Zabbix timezone is hardcoded to be Europe/Riga this is done by editing the file /etc/apache2/conf-available/zabbix.conf

            Comment

            • SalDiaz
              Junior Member
              • Apr 2023
              • 5

              #7
              I have a question, guys.
              I have a local server but manage monitoring from servers in Canada (I'm located in Mexico). How can add a second clock with eastern time zone?

              Comment

              • cyber
                Senior Member
                Zabbix Certified SpecialistZabbix Certified Professional
                • Dec 2006
                • 4922

                #8
                as widget? Set widget to "Host time" and collect that time from required host... (system.localtime[<type>]​)

                Comment

                Working...