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

Problem {EVENT.TIME} in "Actions

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Won't fix
    • Icon: Minor Minor
    • None
    • 3.4.10
    • Server (S)
    • None
    • Chrome 66.0.3359.181

      Hello

      Actions send out notification-mails with wrong timestamp (UTC instead of CEST).

      Here is my config:

       

      tzselect
      Selected time is now: Fri Jun 22 09:09:59 CEST 2018.
      Universal Time is now: Fri Jun 22 07:09:59 UTC 2018.
      

       

      /etc/apache2/conf-available/zabbix.conf
      <IfModule mod_php5.c>
       php_value max_execution_time 300
       php_value memory_limit 128M
       php_value post_max_size 16M
       php_value upload_max_filesize 2M
       php_value max_input_time 300
       php_value always_populate_raw_post_data -1
       php_value date.timezone Europe/Berlin
       </IfModule>
       <IfModule mod_php7.c>
       php_value max_execution_time 300
       php_value memory_limit 128M
       php_value post_max_size 16M
       php_value upload_max_filesize 2M
       php_value max_input_time 300
       php_value always_populate_raw_post_data -1
       php_value date.timezone Europe/Berlin
       </IfModule>
      

       

       

      /etc/php/7.2/apache2/php.ini
      [Date]
      ; Defines the default timezone used by the date functions
      ; http://php.net/date.timezone
      date.timezone = "Europe/Berlin"
       
      

       

      /etc/php/7.2/cli/php.ini
      [Date]
      ; Defines the default timezone used by the date functions
      ; http://php.net/date.timezone
      date.timezone = "Europe/Berlin"
      

       

      The strange thing is that the items are shown correctly in Zabbix GUI (see attached screenshot "Zabbix.jpg"), but mails are sent out with wrong timestamp (see attached screenshot "Email.jpg").

       

      Action - Operation:
       
      Problem started at {EVENT.TIME} on {EVENT.DATE}
      Problem name: {TRIGGER.NAME}
      Host: {HOST.NAME}
      Severity: {TRIGGER.SEVERITY}
      Original problem ID: {EVENT.ID}
      {TRIGGER.URL}
      

       

      Somehow {EVENT.TIME} used UTC instead of configured timezone.

      Did i miss anything?

       

      thanks for your help

       

        1. Email.jpg
          Email.jpg
          51 kB
        2. Zabbix.jpg
          Zabbix.jpg
          59 kB

            Unassigned Unassigned
            robin23 Robin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: