Template Notification for Port Up/Down

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

Interface Port


Have you used the place holders?

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'] }}

Hi Kevin,

In addition to this,
I would like to monitor the Uplink of Switches. For example

  1. I have 2 Uplink of Cisco 2960 Switch which is also Aggregated.
  2. I want to monitor this 2 Uplink
  3. If Uplink 1 or Uplink 2 is down LibreNMS will send Notification