Email Template - %uniquehosts%
Posted: Fri Oct 25, 2024 4:17 pm
I had this email template active and working. Now when the alert occurs it doesn't send an alert email. If I create a default template without the macro %uniquehosts% it works again. Is there a recent known issue with the macro %uniquehosts%
Working template:
<p>%alertname% returned with a <b>%state%</b> state at <b>%time%</b></p>
<p>The alert was processed with the following thresholds:<br>
<ul>
<li>Lookback period: %lookback%</li>
<li>Warning: %warning%</li>
<li>Critical: %critical%</li>
</ul>
</p>
<p>
Here is the full alert output:
<div style="padding: 10px; background-color: #F9F9F9;">%output%</div>
</p>
<p>See the last %lookback% in the <a href="%url%">Nagios Log Server dashboard</a>.</p>
<p>Nagios Log Server</p>
Template that doesn't work.
<p>%alertname% returned with a <b>%state%</b> state at <b>%time%</b></p>
<p>The following IP had a OSPF router ID change:<br>
<ul>
<li>Lookback period: %lookback%</li>
<li>Warning: %warning%</li>
<li>Critical: %critical%</li>
<li>%uniquehosts%</li>
</ul>
</p>
<p>
Here is the full alert output:
<div style="padding: 10px; background-color: #F9F9F9;">%output%</div>
</p>
<p>See the last %lookback% in the <a href="%url%">Nagios Log Server dashboard</a>.</p>
<p>Nagios Log Server</p>
Working template:
<p>%alertname% returned with a <b>%state%</b> state at <b>%time%</b></p>
<p>The alert was processed with the following thresholds:<br>
<ul>
<li>Lookback period: %lookback%</li>
<li>Warning: %warning%</li>
<li>Critical: %critical%</li>
</ul>
</p>
<p>
Here is the full alert output:
<div style="padding: 10px; background-color: #F9F9F9;">%output%</div>
</p>
<p>See the last %lookback% in the <a href="%url%">Nagios Log Server dashboard</a>.</p>
<p>Nagios Log Server</p>
Template that doesn't work.
<p>%alertname% returned with a <b>%state%</b> state at <b>%time%</b></p>
<p>The following IP had a OSPF router ID change:<br>
<ul>
<li>Lookback period: %lookback%</li>
<li>Warning: %warning%</li>
<li>Critical: %critical%</li>
<li>%uniquehosts%</li>
</ul>
</p>
<p>
Here is the full alert output:
<div style="padding: 10px; background-color: #F9F9F9;">%output%</div>
</p>
<p>See the last %lookback% in the <a href="%url%">Nagios Log Server dashboard</a>.</p>
<p>Nagios Log Server</p>