mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
- 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
23 lines
436 B
PHP
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>");
|
|
|
|
?>
|