2009-09-07 11:07:59 +00:00
|
|
|
<?php
|
2017-12-29 07:36:49 +02:00
|
|
|
/*
|
|
|
|
* LibreNMS
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify it
|
|
|
|
* under the terms of the GNU General Public License as published by the
|
|
|
|
* Free Software Foundation, either version 3 of the License, or (at your
|
|
|
|
* option) any later version. Please see LICENSE.txt at the top level of
|
|
|
|
* the source code distribution for details.
|
|
|
|
*
|
|
|
|
* @package LibreNMS
|
|
|
|
* @subpackage webui
|
2021-02-09 00:29:04 +01:00
|
|
|
* @link https://www.librenms.org
|
2017-12-29 07:36:49 +02:00
|
|
|
* @copyright 2017 LibreNMS
|
|
|
|
* @author LibreNMS Contributors
|
|
|
|
*/
|
2008-11-27 12:36:37 +00:00
|
|
|
|
2011-03-17 11:46:02 +00:00
|
|
|
unset($icon);
|
2017-02-13 00:41:05 +02:00
|
|
|
$severity_colour = eventlog_severity($entry['severity']);
|
2017-12-29 07:36:49 +02:00
|
|
|
$icon = '<span class="alert-status ' . $severity_colour . '"></span>';
|
2008-11-27 12:36:37 +00:00
|
|
|
|
2017-12-29 07:36:49 +02:00
|
|
|
echo '<tr>';
|
|
|
|
echo '<td>' . $icon . '</td>';
|
|
|
|
echo '<td>' . $entry['humandate'] . '</td>';
|
2007-04-03 14:10:23 +00:00
|
|
|
|
2015-07-13 20:10:26 +02:00
|
|
|
if ($entry['type'] == 'interface') {
|
2017-12-29 07:36:49 +02:00
|
|
|
$entry['link'] = '<b>' . generate_port_link(cleanPort(getifbyid($entry['reference']))) . '</b>';
|
2015-07-13 20:10:26 +02:00
|
|
|
}
|
2007-04-03 14:10:23 +00:00
|
|
|
|
2021-03-23 14:07:27 +00:00
|
|
|
echo '<td style="white-space: nowrap;max-width: 100px;overflow: hidden;text-overflow: ellipsis;">' . $entry['link'] . '</td>';
|
2017-12-29 07:36:49 +02:00
|
|
|
echo '<td>' . htmlspecialchars($entry['message']) . '</td>';
|
|
|
|
|
|
|
|
echo '</tr>';
|