Ad Widget

Collapse

New line in email alerts

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dryang
    Junior Member
    • Aug 2016
    • 8

    #1

    New line in email alerts

    Zabbix 3.0.4 here.
    Default alert (no modifications) is sending emails without line breaks.

    Trigger: {TRIGGER.NAME}
    Trigger status: {TRIGGER.STATUS}
    Trigger severity: {TRIGGER.SEVERITY}
    Results in:
    Trigger: Zabbix agent on ... is unreachable for 1 minutes Trigger status: PROBLEM Trigger severity: High
    If I add extra empty line between:
    Trigger: {TRIGGER.NAME}

    Trigger status: {TRIGGER.STATUS}

    Trigger severity: {TRIGGER.SEVERITY}
    Line breaks work:
    Trigger: Zabbix agent on ... is unreachable for 1 minutes

    Trigger status: PROBLEM

    Trigger severity: High
  • Mr.Pelovski
    Junior Member
    • Aug 2016
    • 17

    #2
    Hello i have problem with zabbix email alert

    Here what i receive :

    Trigger: Zabbix agent on OCSInvetory is unreachable for 5 minutes Trigger status: PROBLEM Trigger severity: Average Trigger URL:

    Item values:

    1. Agent ping (OCSInvetory:agent.ping): Up (1) 2. *UNKNOWN* (*UNKNOWN*:*UNKNOWN*): *UNKNOWN* 3. *UNKNOWN* (*UNKNOWN*:*UNKNOWN*): *UNKNOWN*

    Original event ID: 1937


    I use default action for email.

    Can someone to explain how is configure email alert ?!

    Thanks a lot

    Comment

    • asteroidyorkton
      Member
      • Aug 2016
      • 53

      #3
      Originally posted by Mr.Pelovski
      Hello i have problem with zabbix email alert

      Here what i receive :

      Trigger: Zabbix agent on OCSInvetory is unreachable for 5 minutes Trigger status: PROBLEM Trigger severity: Average Trigger URL:

      Item values:

      1. Agent ping (OCSInvetory:agent.ping): Up (1) 2. *UNKNOWN* (*UNKNOWN*:*UNKNOWN*): *UNKNOWN* 3. *UNKNOWN* (*UNKNOWN*:*UNKNOWN*): *UNKNOWN*

      Original event ID: 1937


      I use default action for email.

      Can someone to explain how is configure email alert ?!

      Thanks a lot
      Go to Configuration -> Action -> Dropdown Triggers
      Remove the Second and thrid in both Problem and Recovery.

      Itemvalue 2 and key2 is unknown unless the trigger has more than 1 item and and key.

      Addiotionally you can use these: Expand the Default message window for clear viewing and then feel free to add these. There are more, check the documentation.

      EventDateTime: {EVENT.DATE}-{EVENT.TIME}
      EventAge: {EVENT.AGE}

      Action emails sent history if needed
      {ESC.HISTORY}

      Hostname:{HOST.NAME1}
      Host IP: {HOST.IP1}

      In recovery, you could include
      Acknowledgement: {EVENT.ACK.HISTORY}

      Comment

      • dryang
        Junior Member
        • Aug 2016
        • 8

        #4
        Still would like to know the answer to original question.

        Comment

        • tchjts1
          Senior Member
          • May 2008
          • 1605

          #5
          Originally posted by dryang
          Still would like to know the answer to original question.
          Code:
          Trigger: {TRIGGER.NAME}
          Trigger status: {TRIGGER.STATUS}
          Trigger severity: {TRIGGER.SEVERITY}
          make the above look like the below, and you will have the results you want:
          Code:
          Trigger: {TRIGGER.NAME}
             Trigger status: {TRIGGER.STATUS}
             Trigger severity: {TRIGGER.SEVERITY}
          The first line can stay as it is. Any following lines, put 3 spaces at the beginning of the line.

          Comment

          Working...