Hi,
I encounter some problem with the code below, some info are not displayed in the email.
Code:
<!DOCTYPE html>
{{ $alert->title }}
<b>Type of Device:</b> {{ $alert->type }}<br> <b>Device Name:</b> {{ $alert->hostname }} up until {{$alert->uptime_short}}<br> <b>Severity:</b> {{ $alert->severity }}<br> <b>Timestamp:</b> {{ $alert->timestamp }}<br> <b>Physical Interface:</b> {{ $value['ifAlias'] }}<br> <b>Interface Description:</b> {{ $value['ifDescr'] }}<br> <b>Interface Speed:</b> {{ ($value['ifSpeed']/1000000000) }} Gbs<br> <b>Inbound Utilization:</b> {{ (($value['ifInOctets_rate']*8)/$value['ifSpeed'])*100 }}<br> <b>Outbound Utilization:</b> {{ (($value['ifOutOctets_rate']*8)/$value['ifSpeed'])*100 }}<br> @if ($alert->state == 0) <b>Time elapsed:</b> {{ $alert->elapsed }} @endif<br>
Displayed in the mail :
Alert Port Down
Type of Device: firewall
Device Name: fg500e-fw-01 up for 95d 17h 36m 36s
Severity: critical
Timestamp: 2019-06-03 15:02:15
Physical Interface:
Interface Description:
Interface Speed: 0 Gbs
Inbound Utilization: NAN
Outbound Utilization: NAN
Could you please help me ?