I am including {TRIGGER.URL} in our Email and Email (HTML) media types but when it sends to our users it shows up with no value.
I'll include one of our templates and the resulting message below.
TEMPLATE:
RESULT:
I'll include one of our templates and the resulting message below.
TEMPLATE:
Code:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ZABBIX ALERT</title>
<style>
table,
th,
td {
border: solid 2px black;
border-collapse: collapse;
padding: 15px;
}
th {
text-align: right;
}
</style>
</head>
<body>
<h1>ZABBIX PROBLEM ALERT</h1>
<table>
<tr>
<th>STARTED</th>
<td>{EVENT.DATE} {EVENT.TIME}</td>
</tr>
<tr>
<th>HOST</th>
<td>{HOST.NAME}</td>
</tr>
<tr>
<th>EVENT</th>
<td>{EVENT.NAME}</td>
</tr>
<tr>
<th>SEVERITY</th>
<td>{EVENT.SEVERITY}</td>
</tr>
<tr>
<th>EVENT ID</th>
<td>{EVENT.ID}</td>
</tr>
<tr>
<th>URL</th>
<td>{TRIGGER.URL}</td>
</tr>
</table>
<h3>DATA</h3>
<p>{EVENT.OPDATA}</p>
</body>
</html>
RESULT:
Code:
<!DOCTYPE html><html lang="en"><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ZABBIX ALERT</title>
<style>
table,
th,
td {
border: solid 2px black;
border-collapse: collapse;
padding: 15px;
}
th {
text-align: right;
}
</style>
</head>
<body>
<h1>ZABBIX PROBLEM ALERT</h1>
<table>
<tr>
<th>STARTED</th>
<td>2023.02.10 13:39:58</td>
</tr>
<tr>
<th>HOST</th>
<td>test.nasa.gov</td>
</tr>
<tr>
<th>EVENT</th>
<td>Unavailable by ICMP ping: test.nasa.gov</td>
</tr>
<tr>
<th>SEVERITY</th>
<td>High</td>
</tr>
<tr>
<th>EVENT ID</th>
<td>4493</td>
</tr>
<tr>
<th>URL</th>
<td></td>
</tr>
</table>
<h3>DATA</h3>
<p>Down (0)</p>
</body>
</html>