Alerts - Cleaning up some code?

Hi all, looking for a way to further cleanup alerts. I’ve now been working with libre for 2 days, starting to get into the alerts. If a port goes down and up, I get the email but its pretty messy. When viewing the details it comes from sysobjectID and sysDescr. Not sure why those are even there. Pretty sure this is the problem here:

@if ($alert->faults) Faults:
@foreach ($alert->faults as $key => $value)
#{{ $key }}: {{ $value[‘string’] }}
@endforeach
@endif

Can I just remove this and use other variables instead? Are those variables in the docs or elsewhere? This, as it stands now is impossible to read for my group. Thanks!

Screenshots

All the variables are listed in the screen you displayed. So feel free to use any of them. And the list of variables depends on the rule, and is directly linked to the database objects. In your case, you probably want to display all details linked to ports.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.