Ad Widget

Collapse

Is there macros for Escalation notes?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • neopug
    Junior Member
    • Oct 2017
    • 1

    #1

    Is there macros for Escalation notes?

    Hi,

    We've just started using Zabbix for our environment and deploying Slack notification via actions and external script (zabbix-notify by Vitaly Zhuravlev).
    It work fine except escalation notes.
    We're using JSON template as message to make slack message more preaty. But when I disable any trigger Zabbix sends notification with adding escalation notes to the message body. That message brakes notification JSON.
    So my question is there any macros for escalation notes? I tried to find it here but there is nothing looks like it.
    Here is like ALERT.MESSAGE looks like.
    Code:
    [B]NOTE: Escalation cancelled: trigger "/var/xen/xc-install: Disk space is critically low" disabled.
    [/B]{
                "fallback": "[[VTCORPTX2:/var/xen/xc-install: Disk space is critically low:PROBLEM]]",
                "pretext": "New Alarm",
                "author_name": "[[VTCORPTX2]]",
                "title": "[[/var/xen/xc-install: Disk space is critically low]]",
                "title_link": "http://10.101.1.99/zabbix/tr_events.php?triggerid=16381&eventid=258010",
                "text": "[[Last value: 100 %.]]",
                "fields": [
                    {
                        "title": "Status",
                        "value": "PROBLEM",
                        "short": true
                    },
                    {
                        "title": "Severity",
                        "value": "Average",
                        "short": true
                    },
                    {
                        "title": "Time",
                        "value": "2017.10.31 11:15:03",
                        "short": true
                    },
                    {
                        "title": "EventID",
                        "value": "eventid: 258010",
                        "short": true
                    }
                ]
            }
    Thanks everyone :-)
    P.S. I'm using Zabbix 3.4.3 Revision 73588
    Last edited by neopug; 02-11-2017, 15:08.
Working...