We have a lot of cameras being monitored where the only way to tell them apart is by the device notes. Even though the notes are included in the alert template, the notes sent in the alert are always blank even though there are notes in the device page. According to the docs, the device notes should be in this field.
Here’s the template:
{{ $alert->title }}
Severity: {{ $alert->severity }}
@if ($alert->state == 0) Time elapsed: {{ $alert->elapsed }} @endif
Timestamp: {{ $alert->timestamp }}
Unique-ID: {{ $alert->uid }}
IP Address: {{ $alert->ip }}
Description: {{ $alert->sysDescr }}
sysDescr: {{ $alert->sysDescr }}
Notes: {{ $alert->notes }}
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
Alert sent to:
@foreach ($alert->contacts as $key => $value)
{{ $value }} <{{ $key }}>
@endforeach
====================================
Component | Version |
---|---|
LibreNMS | 1.69 |
DB Schema | 2020_07_27_00522_alter_devices_snmp_algo_columns (188) |
PHP | 7.4.3 |
Python | 3.8.5 |
MySQL | 10.3.25-MariaDB-0ubuntu0.20.04.1 |
RRDTool | 1.7.2 |
SNMP | NET-SNMP 5.8 |
OpenSSL |
====================================
[OK] Composer Version: 1.10.17
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct