- <html>
- <head>
- <title>{{ $alert->title }}</title>
- <style type="text/css">
- body {
- margin: 15px;
- font-family: 'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
- font-size: 14px;
- line-height: 20px;
- color: #333333;
- background-color: #fff;
- font-weight: 400;
- }
- .box {
- position: relative;
- -webkit-border-radius: 0px;
- -moz-border-radius: 0px;
- border-radius: 0px;
- background: #ffffff;
- margin-bottom: 10px;
- width: 100%;
- box-shadow: 0 0 2px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.24);
- }
- .no-padding {
- padding: 0 !important;
- }
- .table {
- max-width: 600px;
- background-color: #fff;
- border-collapse: collapse;
- border-spacing: 0;
- color: #333;
- }
- .table th, .table td {
- padding: 5px 10px;
- line-height: 20px;
- text-align: left;
- vertical-align: top;
- border-top: 1px solid #f4f4f4;
- }
- .table tbody > tr:nth-child(even) > td, .table tbody > tr:nth-child(even) > th {
- background-color: #f9f9f9;
- }
- .table .state-marker, .state-marker {
- padding: 0px;
- margin: none;
- width: 7px;
- }
- .table tbody > tr > td.state-marker {
- background-color: #004774;
- }
- .table .ALERT .state-marker {
- background-color: #bd1e1e;
- }
- .table tbody > tr.ALERT > td {
- background-color: #ffebee;
- }
- .ALERT {
- color: red;
- }
- .table .ACKNOWLEDGED .state-marker {
- background-color: rgb(187, 135, 4);
- }
- .table tbody > tr.ACKNOWLEDGED > td {
- background-color: #fff8eb;
- }
- .ACKNOWLEDGED {
- color: goldenrod;
- }
- .table .RECOVERED .state-marker {
- background-color: rgb(0, 92, 0);
- }
- .table tbody > tr.RECOVERED > td {
- background-color: #ebffec;
- }
- .RECOVERED {
- color: green;
- }
- .header { font-size: 20px; font-weight: bold; padding: 10px;}
- </style>
- </head>
- <body>
- <p>Merhaba bu alert Arya-IT NOC Ekibi tarafından oluşturulmuştur. Ilgili sunucunun memory durumunu kontrol ederek lütfen bilgi sağlayınız.</p> <br>
- <table border="2" class="table box box-solid">
- <tbody>
- @if ($alert->state == 1) <tr class="ALERT">
- @elseif ($alert->state == 2) <tr class="ACKNOWLEDGED">
- @elseif ($alert->state == 0) <tr class="RECOVERED">
- @elseif ($alert->state == 3) <tr class="RECOVERED">
- @else <tr class="RECOVERED">
- @endif
- <td class="state-marker"></td>
- <td colspan=2 xss=removed class="header">
- @if ($alert->state == 1) <span class="ALERT">{{ $alert->severity }} @endif
- @if ($alert->state == 2) <span class="ACKNOWLEDGED">acknowledged @endif</span>
- @if ($alert->state == 3) <span class="RECOVERED">recovering @endif</span>
- @if ($alert->state == 0) <span class="RECOVERED">recovered @endif</span>
- </td>
- </tr>
- <tr>
- <td colspan=2><strong>Alert Title:</strong></td>
- <td><strong>{{ $alert->name }}</strong></td>
- </tr>
- <tr>
- <td colspan=2><strong>System Name:</strong></td>
- <td><strong><a>device_id }}/" class="entity-popup red" data-eid="{{ $alert->device_id }}" data-etype="device">{{ $alert->sysName }}</a></strong></td>
- </tr>
- <tr>
- <td colspan=2><strong>Device IP:</strong></td>
- <td><strong><a>device_id }}/" class="entity-popup red" data-eid="{{ $alert->device_id }}" data-etype="device">{{ $alert->hostname }}</a></strong></td>
- </tr>
- @foreach ($alert->faults as $key => $value)
- <tr>
- <td colspan=2><strong>Error DIMM:</strong></td>
- <td>{{$value['state_name']}}</td>
- </tr>
- @endforeach
- </tbody>
- </table>
- </body>
- </html>