Details
-
Change Request
-
Resolution: Unresolved
-
Trivial
-
None
-
None
-
None
-
None
-
Zabbix 4.4.8, Debian 10, Telegram, Slack
Description
Now the {HOST.ID} macro is not supported in Alerts Message
(Configuration - Actions - <any_action> - Operations - Default subject/Default message)
It is very useful to add this macro to any message.
Usage in alert message:
{$ZBX_SERVER_URL}/host_screen.php?hostid={HOST.ID}&screenid=3
Example of FULL alert message (HTML-format):
<code> {TRIGGER.NAME} Severity: {EVENT.SEVERITY} Last value: {ITEM.LASTVALUE1} ({TIME}) Problem started at {EVENT.TIME} on {EVENT.DATE} </code> <b>DETAILS: <a href="{$ZBX_SERVER_URL}/history.php?itemids[0]={ITEM.ID}&action=showlatest">Last vaules</a>, <a href="{$ZBX_SERVER_URL}/tr_events.php?triggerid={TRIGGER.ID}&eventid={EVENT.ID}">Event details</a>, <a href="{$ZBX_SERVER_URL}/host_screen.php?hostid={HOST.ID}&screenid=3">Screen</a> </b>
Example of FULL alert message (markdown-format):
``` {EVENT.NAME} Last value: {ITEM.LASTVALUE1} ({TIME}) Begin: {EVENT.DATE}, {EVENT.TIME} End: {EVENT.RECOVERY.DATE}, {EVENT.RECOVERY.TIME} ``` [Last vaules]({$ZBX_SERVER_URL}/history.php?itemids[0]={ITEM.ID}%26action=showlatest), [Event details]({$ZBX_SERVER_URL}/tr_events.php?triggerid={TRIGGER.ID}%26eventid={EVENT.ID}), [Screen]({$ZBX_SERVER_URL}/host_screen.php?hostid={HOST.ID}%26screenid=3)
It may be linked with:
ZBXNEXT-1406 - HOST.ID macro in global scripts