To All
I’m creating alert templates for port up or down and i can’t get the exact output that i want want when LibreNMS E-mail the notifiction. Below is the email output that i want to received from LibreNMS
Hostname
Timestamp
Interface Port
To All
I’m creating alert templates for port up or down and i can’t get the exact output that i want want when LibreNMS E-mail the notifiction. Below is the email output that i want to received from LibreNMS
Hostname
Timestamp
Interface Port
Hi,
Have you used the place holders?
https://docs.librenms.org/Alerting/Templates/
Post your alert template.
Hi Kevin
Thank you for your response. below are my template.
Device Name: {{ $alert->hostname }}
Contact Person: {{ $alert->sysContact }}
OS: {{ $alert->os }}
Severity: {{ $alert->severity }}
Timestamp: {{ $alert->timestamp }}
Uptime: {{ $alert->uptime_short }}
@if ($alert->state == 0) Time elapsed: {{ $alert->elapsed }} @endif
Location: {{ $alert->location }}
Rule: @if ($alert->name) {{ $alert->name }} @else {{ $alert->rule }} @endif
@foreach ($alert->faults as $key => $value)
Physical Interface: {{ $value['ifDescr'] }}
@endforeach
Hi Kevin,
In addition to this,
I would like to monitor the Uplink of Switches. For example