====================================
Component | Version |
---|---|
LibreNMS | 1.42.01-21-g32f8a297e |
DB Schema | 258 |
PHP | 7.0.30-0+deb9u1 |
MySQL | 10.1.26-MariaDB-0+deb9u1 |
RRDTool | 1.6.0 |
SNMP | NET-SNMP 5.7.3 |
==================================== |
[OK] Composer Version: 1.7.1
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
[WARN] Your install is over 24 hours out of date, last update: Thu, 09 Aug 2018 21:43:14 +0000
[FIX] Make sure your daily.sh cron is running and run ./daily.sh by hand to see if there are any errors.
(Yes I need to sort this out. Just have to get some paperwork signed off on so I can bypass the proxy for updating)
So I cannot get the Email transport to send an email formatted with HTML.
here is the template
@if ($alert->state == 1) {{ $alert->severity }} @endif @if ($alert->state == 2) Low Toner Acknowledged @endif @if ($alert->state == 3) Low Toner Recovering @endif @if ($alert->state == 0) Toner Replaced @endif
@if ($alert->faults) @foreach ($alert->faults as $key => $value) Device: @if ($alert->transport == mail) @else {{ $alert->hostname }} @endif
Toner: {{ $value['toner_descr'] }}
Toner Level: {{ $value['toner_current'] }}
@if ($alert->location) Location: {{ $alert->location }}
@else Location: LOCATION NOT DEFINED YET!!
@endif Uptime: {{ $alert->uptime_long }}
Duration: {{ $alert->elapsed }}
@if ($alert->description) Description: {{ $alert->description }}
@endif @if ($alert->Features) Features: {{ $alert->features }}
@endif @if ($alert->Purpose) Purpose: {{ $alert->purpose }}
@endif @if ($alert->Notes) Notes: {{ $alert->notes }}
@endif Device: {{ $value['sysDescr'] }}
@endforeach @endif
Alerts sent to: @foreach ($alert->contacts as $key => $value){{ $value }} <{{ $key }}> @endforeach
As you can see I have HTML enabled. Any thoughts ?
The email comes out looking like (sorry it would only let me post 1 screenshot)
hpe printer Alert for device 192.200.201.17 - Low Toner Severity: warning Timestamp: 2018-08-21 15:35:15 Unique-ID: 1381 Rule: Low Toner Faults: #1: sysObjectID = .1.3.6.1.4.1.1347.41; sysDescr = KYOCERA Document Solutions Printing System; toner_id = 57; toner_oid = .1.3.6.1.2.1.43.11.1.1.9.1.1; toner_descr = TK-174; Alert sent to: