2009-09-07 11:07:59 +00:00
|
|
|
<?php
|
2007-04-03 14:10:23 +00:00
|
|
|
|
2011-03-17 11:46:02 +00:00
|
|
|
$hostname = gethostbyid($entry['host']);
|
2007-04-03 14:10:23 +00:00
|
|
|
|
2011-03-17 11:46:02 +00:00
|
|
|
unset($icon);
|
2007-04-03 14:10:23 +00:00
|
|
|
|
2011-03-17 11:46:02 +00:00
|
|
|
$icon = geteventicon($entry['message']);
|
2015-07-13 20:10:26 +02:00
|
|
|
if ($icon) {
|
|
|
|
$icon = '<img src="images/16/'.$icon.'" />';
|
|
|
|
}
|
2007-04-03 14:10:23 +00:00
|
|
|
|
2015-07-13 20:10:26 +02:00
|
|
|
echo '<tr>
|
2014-02-28 22:02:39 +00:00
|
|
|
<td>
|
2015-07-13 20:10:26 +02:00
|
|
|
'.$entry['datetime'].'
|
|
|
|
</td>';
|
2010-06-20 21:37:05 +00:00
|
|
|
|
2011-11-07 19:39:15 +00:00
|
|
|
if (!isset($vars['device'])) {
|
2015-07-13 20:10:26 +02:00
|
|
|
$dev = device_by_id_cache($entry['host']);
|
|
|
|
echo '<td>
|
|
|
|
'.generate_device_link($dev, shorthost($dev['hostname'])).'
|
|
|
|
</td>';
|
2011-03-17 11:46:02 +00:00
|
|
|
}
|
2007-04-03 14:10:23 +00:00
|
|
|
|
2015-07-13 20:10:26 +02:00
|
|
|
if ($entry['type'] == 'interface') {
|
|
|
|
$this_if = ifLabel(getifbyid($entry['reference']));
|
|
|
|
$entry['link'] = '<b>'.generate_port_link($this_if, makeshortif(strtolower($this_if['label']))).'</b>';
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
$entry['link'] = 'System';
|
2011-03-17 11:46:02 +00:00
|
|
|
}
|
2007-04-03 14:10:23 +00:00
|
|
|
|
2015-07-13 20:10:26 +02:00
|
|
|
echo '<td>'.$entry['link'].'</td>';
|
2007-04-03 14:10:23 +00:00
|
|
|
|
2015-07-13 20:10:26 +02:00
|
|
|
echo '<td>'.htmlspecialchars($entry['message']).'</td>
|
|
|
|
</tr>';
|