Ad Widget

Collapse

Zabbix user level time zones and notifications

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Taner
    Member
    • Apr 2018
    • 47

    #1

    Zabbix user level time zones and notifications

    Hello all,

    I need your rich experience with Zabbix monitoring.

    I am in trouble with time zones.

    For example, I am in Sofia/Bulgaria and the local time zone of the Zabbix server is configured with Sofia time zone.
    But the devices are in Germany and there the time zone is different, -1 hour from my time zone.
    The email notification with SMTP is configured in the Zabbix server.
    I receive the emails with the correct time and the body of the email notification is with the correct time.
    But if someone in Germany receives the email notification from the Zabbix server the email is with the correct time in their time zone but in the body of the email the event time is with my time zone!

    And now my question is, is it possible to receive the emails in my time zone, and in Germany is it possible to receive the emails in their time zone?
    If it is possible, how?

    The version of Zabbix is 4.0.9.


    At home, I am with Zabbix 5.0.5 LTS.


    I was read about the User level time zones, but they appear in Zabbix Version 5.2 standard versions for the first time.
    Could you confirm with this feature User level time zone I could manipulate the notifications with correct time zones at the same time for me for example and for a remote site in a different timezone?

    In the versions under 5 is it possible to customize the notifications with multiple time zones?


    Thank you in advance!

    Best regards!

  • vso
    Zabbix developer
    • Aug 2016
    • 190

    #2
    But if someone in Germany receives the email notification from the Zabbix server the email is with the correct time in their time zone but in the body of the email the event time is with my time zone!
    Yes, this is exactly what is documented here https://www.zabbix.com/documentation...face/time_zone

    Zabbix server will only use the specified global/user timezone when expanding macros in notifications (e.g. {EVENT.TIME} can expand to a different time zone per user) and for the time limit when notifications are sent (see “When active” setting in user media configuration).

    Comment

    • Taner
      Member
      • Apr 2018
      • 47

      #3
      Originally posted by vso
      Yes, this is exactly what is documented here https://www.zabbix.com/documentation...face/time_zone


      Hello, did you do it before, if yes, could you show me a screenshot of how did you set the notifications using user-level time zones?


      Thank you in advance.

      Comment

      • vso
        Zabbix developer
        • Aug 2016
        • 190

        #4
        You need to set user level time zone as mentioned in screenshot here:

        Comment

        • Taner
          Member
          • Apr 2018
          • 47

          #5
          Originally posted by vso
          You need to set user level time zone as mentioned in screenshot here:
          https://www.zabbix.com/documentation...ral_attributes
          Yes and nothing additional action?

          Just you define the time zone in the user, and media in the user, and in Configuration ---> Action menu just for notification we add the user?

          But the parameters in the email text in the operational menu?

          Trigger: {EVENT.NAME}
          Trigger status: {TRIGGER.STATUS}Trigger: {EVENT.NAME}
          Trigger status: {TRIGGER.STATUS}
          Trigger severity: {TRIGGER.SEVERITY}

          Computer: {HOSTNAME}
          Visible Name: {HOST.NAME}
          Check performed against: {HOST.CONN}

          EventDate: {EVENT.DATE}
          EventTime: {EVENT.TIME}
          Description: {ITEM.LASTVALUE}
          Source: {ITEM.LOG.SOURCE}
          EventID: {ITEM.LOG.EVENTID}
          Trigger severity: {TRIGGER.SEVERITY}
          Trigger URL: {TRIGGER.URL}

          Item values:

          1. {ITEM.NAME1} ({HOST.NAME1}:{ITEM.KEY1}): {ITEM.VALUE1}
          2. {ITEM.NAME2} ({HOST.NAME2}:{ITEM.KEY2}): {ITEM.VALUE2}
          3. {ITEM.NAME3} ({HOST.NAME3}:{ITEM.KEY3}): {ITEM.VALUE3}

          Original event ID: {EVENT.ID}

          Comment

          • vso
            Zabbix developer
            • Aug 2016
            • 190

            #6
            Just define time zone for the user and he will get notifications in that time zone, that's all.

            Comment

            • Taner
              Member
              • Apr 2018
              • 47

              #7
              Originally posted by vso
              Just define time zone for the user and he will get notifications in that time zone, that's all.
              Thank you, it's great.

              Comment

              Working...