See www.zabbix.com for the official Zabbix site.

Docs/specs/ZBXNEXT-1128

From Zabbix.org
Jump to: navigation, search

Support of additional macros in trigger URL

ZBXNEXT-1128

Status: v1.0

Owner: Alexei

Summary

Zabbix should support macros {HOST.*} and {$USERMACRO} in the trigger URL, also LLD macro {#MACRO} in the trigger prototype URL.

Specification

The following macros will be supported in trigger URL:

 {HOST.CONN<1-9>}
 {HOST.DNS<1-9>}
 {HOST.HOST<1-9>}
 {HOST.ID<1-9>}
 {HOST.IP<1-9>}
 {HOST.NAME<1-9>}
 {HOST.PORT<1-9>}
 {$USERMACRO}

Deprecated macros {HOSTNAME} and {IPADDRESS} will not be supported by server and frontend in this field.

LLD macro {#MACRO} will be supported in trigger prototype URL.

No escaping will be supported, macro values will be expanded as they are.

Server-side changes

Zabbix server will expand {#MACRO} when creating new triggers based on trigger prototypes the same way as in other generic text fields (name, description).

It will also expand {HOST.*} and {$USERMACRO} in resolving {TRIGGER.URL} macros in notification messages.

Frontend changes

The frontend will expand trigger URL macros in Monitoring and Reports sections.

Documentation

ChangeLog

  • N/A