Hello,
I’m trying to get email alerts to have the subject show the ‘sysName’ instead of the Device Name.
My email subject comes in like this:
‘Alert for device 192.168.1.2 - Device Down! Due to no ICMP response’
My template is this:
{{ $alert->title }}
Severity: {{ $alert->severity }}
@if ($alert->state == 0) Time elapsed: {{ $alert->elapsed }} @endif
Timestamp: {{ $alert->timestamp }}
System Name: {{ $alert->sysName }}
Hostname: {{ $alert->hostname }}
IP Address: {{ $alert->ip }}
OS: {{ $alert->os }}
Version: {{ $alert->version }}
Location: {{ $alert->location }}
Ping avg: {{ $alert->ping_avg }}
Ping loss: {{ $alert->ping_loss }}
Ping min: {{ $alert->ping_min }}
Ping max: {{ $alert->ping_max }}
Other Info:
Unique-ID: {{ $alert->uid }}
Rule: @if ($alert->name) {{ $alert->name }} @else {{ $alert->rule }} @endif
@if ($alert->faults) Faults:
@foreach ($alert->faults as $key => $value)
#{{ $key }}: {{ $value['string'] }}
@endforeach
@endif