Need help creating an interface down email template

Hi, Support.

I am trying to create an email template which contains the interface that has gone down but can’t seem to get it working.

I have tried using {{ $alert->ifName }} but this comes back with error ‘ifName is not a valid $alert data name’ in the email.

I’ve checked the templates syntax from here: Templates - LibreNMS Docs but doesn’t say anything about interface down.

Has anyone managed to get this working and can provide an example?

Thanks in advanced.

It would be part of the faults. Like this:

@foreach ($alert->faults as $key => $value)
  Port if name is: {{ $value['ifName'] }}


Thanks for this it worked.

Would this be the same for memory, cpu and HDD utilisation?

Thank you,
James Stoner