Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-23541

Issues with queue and timestamp when Zabbix server and proxy are in different timezones

XMLWordPrintable

    • Icon: Documentation task Documentation task
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • 7.0 (plan)
    • 6.0.22, 6.4.7, 7.0.0alpha6
    • Documentation (D)
    • None
    • Sprint 105 (Oct 2023), Sprint 106 (Nov 2023), S2401-1, S2401-2
    • 0.5

      Bug report guide is not available - https://zabbix.org/wiki/Docs/bug_reporting_guidelines, it redirects to Zabbix Community Area.

      If Zabbix server and proxy servers are on different time zones (at least 1h interval between them) then there is issue with queue and data processing. Affected are items who has set  "Update interval" to 0 and "Custom intervals" is set to "Scheduling" with interval greater than 1h between checks, for example "wd1-7h0-23/2". Item type is "Zabbix agent", haven't tried with other item types.

      Steps to reproduce:

      1. Set up server and proxy in different time zones - at least 1h difference.
        1. 1xZabbix Server - "Europe/Oslo", PHP-FPM timezone "Europe/Riga".
          1xZabbix Proxy - "Europe/Riga". 
          Databases on both servers are PostgreSQL 14 and their time zones are "Europe/Riga".
      2. Add one host, that gets monitored through server and other through proxy.
      3. Add few items to both hosts with different custom scheduling intervals "wd1-7h0-23m0-59/5","wd1-7h0-23/2","wd1-7h0-23/2","wd1-7h0-23/3","wd1-7h0-23/4" and with update interval set to 0.
        1. With the first to scheduling intervals there are no issues. With others however it get's interesting.
      4. Wait till data get's gathered.
      5. Check "Latest data" and "Queue details" for inconsistencies.

      Result:
      Latest data:

      Queue:

      Item configuration:

      Expected:
      Item execution time get's synchronized between Proxy and Server.

      Queue uses same time (Zabbix server or Epoch) for item processing - not important if item get's monitored by Zabbix server or proxy servers in different time zones.

      If neither of previous is possible and this behavior is by design, then please mention workaround in Zabbix official documentation. 

            dgoloscapov Dmitrijs Goloscapovs
            teab Elvijs Bokanovs
            Team A
            Votes:
            1 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: