Adding traceroute to HTML email alerts

Was really excited to be able to add traceroutes to alerts for machines that aren’t reachable but am running into a problem. I added the configuration line to the config.php file and am successfully seeing the traceroute in the webui for the machine that I’m testing with but the emails are showing either:

[\'output\']

or

[\'traceroute\']

depending on whether I use the $alert->debug['output'] or $alert->debug['traceroute'] statement. Am I missing something or am I just too early of an adopter? :slight_smile:

Only works if it’s a device down due to icmp.

However, you really need to show us the alert template you’re using. Also, have to be on the latest stable or a recent master.

Currently on the latest daily:

librenms@PiLibreNMS01 ~ $ ./daily.sh 
Updating to latest codebase                        OK
Updating Composer packages                         OK
Updating SQL-Schema                                OK
Updating submodules                                OK
Cleaning up DB                                     OK
Fetching notifications                             OK
Caching PeeringDB data                             OK

With this rule for ICMP:

Running this for the transport rule:

-<br>
 @if ($alert->transport == mail) <b>{{ $alert->title }}</b><br>
 @if ($alert->state == 0) <b>Time elapsed:</b> {{ $alert->elapsed }}<br> @endif 
<b>Timestamp:</b> {{ $alert->timestamp }}<br>
 @if ($alert->faults) <b>Faults:</b> 
@if ($alert->state == 1){{ $alert->hostname }} is down<br>
 $alert->debug['output']
 @else{{ $alert->hostname }} is up @endif <br>
 @endif 
 @endif 
 @if ($alert->transport == msteams) 
 @if ($alert->state == 0) **Time elapsed:** {{ $alert->elapsed }} @endif   
**Timestamp:** {{ $alert->timestamp }}  
 @if ($alert->faults) **Faults:** {{ $alert->hostname }} is  @if ($alert->state == 1) down @else up @endif
 @endif 
 @endif 

I’m just trying to include it in the emails so that the MSTeams messages aren’t so huge. But I did give it a test in the MSTeams section and it did the same thing.