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. 

        1. image-2024-04-25-15-37-54-119.png
          6 kB
          Tomas Pavlovic
        2. ZBX-23541.yaml
          1 kB
          Edgar Akhmetshin
        3. Screenshot 2023-10-13 at 14.00.57.png
          169 kB
          Edgar Akhmetshin
        4. Screenshot 2023-10-13 at 14.00.34.png
          147 kB
          Edgar Akhmetshin
        5. Screenshot 2023-10-13 at 14.00.05.png
          270 kB
          Edgar Akhmetshin
        6. Screenshot 2023-10-13 at 13.59.40.png
          153 kB
          Edgar Akhmetshin
        7. image-2023-10-12-17-23-49-848.png
          54 kB
          Elvijs Bokanovs
        8. image-2023-10-12-17-23-25-787.png
          54 kB
          Elvijs Bokanovs
        9. image-2023-10-12-17-23-01-403.png
          53 kB
          Elvijs Bokanovs
        10. image-2023-10-12-17-22-41-264.png
          54 kB
          Elvijs Bokanovs
        11. image-2023-10-12-17-22-08-516.png
          42 kB
          Elvijs Bokanovs
        12. image-2023-10-12-17-21-41-769.png
          36 kB
          Elvijs Bokanovs
        13. image-2023-10-12-17-20-58-827.png
          99 kB
          Elvijs Bokanovs
        14. image-2023-10-12-17-19-51-092.png
          102 kB
          Elvijs Bokanovs

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

              Created:
              Updated:
              Resolved: