librenms-librenms/html/includes/print-alerts.inc.php
Rosiak 8c2f629e14 Change Default Page View
- Add print-alerts code
 - Change the view of the lower part of the front page from 12 columns
to 2 x 6 columns
 - Add alertlog entries to the new column
2015-02-20 00:33:49 +01:00

23 lines
436 B
PHP

<?php
$hostname = gethostbyid($alert_entry['device_id']);
echo('<tr>
<td>
' . $alert_entry['time_logged'] . '
</td>');
if (!isset($alert_entry['device'])) {
$dev = device_by_id_cache($alert_entry['device_id']);
echo("<td>
" . generate_device_link($dev, shorthost($dev['hostname'])) . "
</td>");
}
echo("<td>".$alert_entry['link']."</td>");
echo("<td>".htmlspecialchars($alert_entry['name']) . "</td>
</tr>");
?>