Ad Widget

Collapse

Dashboard clock issue

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bordo83
    Junior Member
    • Sep 2024
    • 4

    #1

    Dashboard clock issue

    Dear all,
    first of all thanks for the support. With Zabbix FAQs and forum support I was able to set up a server with some proxies, about 350 hosts and 15k items right now.
    I'm writing for a "strange" lttle problem but boring to look at it on dashboard.
    Current configuration is Zabbix server (ver. 7.0.3) on almalinux (used vmware vmx image) and proxies with almalinux (from minimal iso) and proxy (ver. 7.0.4/5/6)+ agent installed.
    I copied default "Zabbix server health" dashboard and created a "zabbix proxy health" one with different pages for different proxies.
    On the widget clock I wanted to see the local time of the proxy (installed in different time zones in europe, usa, south america and Asia).
    On local ones (Time Type "Local time") time and date are correct. When I try to use Time Type "Host time" I get a random date and time (usually time is 17:33, UTC is +01:00, and date is correct except for the year).
    I tried using "System local time" of zabbix proxies agent or the same Item of a Windows server running zabbix Agent.
    Checked on all host time, date and timezones are correct.
    Thanks in advance for the support.
    Regards.
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    Do you have "system.localtime[local]" item for those proxy hosts? Must be used as a passive check only.
    To display host time, use the system.localtime[local] item. This item must exist on the host.​

    system.localtime[<type>]
    System time. Integer - with type as utc

    String - with type as local
    type (since version 2.0) - possible values:
    utc - (default) the time since the Epoch (00:00:00 UTC, January 1, 1970), measured in seconds.
    local - the time in the 'yyyy-mm-dd,hh:mm:ss.nnn,+hh:mm' format
    Must be used as a passive check only.

    Example:
    => system.localtime[local] → create an item using this key and then use it to display host time in the Clock dashboard widget.

    Comment

    • bordo83
      Junior Member
      • Sep 2024
      • 4

      #3
      Dear Cyber, thanks for your feedback.
      I cloned "Linux by Zabbix agent" system.localtime item (the item I linked before on clock widget that showed wrong time):


      In this way:


      and is working properly.
      Thanks for your great support.
      Best regards.​

      Comment

      Working...