The documentation for adding traceroute debugs to an alert template seems to have an error.
@if ($alert->status == 0)
@if ($alert->status == icmp)
{{ $alert->debug['traceroute'] }}
@endif
@endif
As written $alert->status cannot be both 0 and icmp at the same time. We’ve tried using this as-is in our alert template but it never includes the traceroute.
Whats the correct logic to use to include traceroutes in icmp-down alerts?
We’ve already enabled traceroute in the config and we do see the traceroutes in the Libre web interface when a device is unpingable. Just dont see them in alerts when using the documented template code.