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']);
|
|
|
|
if ($icon) { $icon = '<img src="images/16/' . $icon . '" />'; }
|
2007-04-03 14:10:23 +00:00
|
|
|
|
2012-04-10 17:21:49 +00:00
|
|
|
echo('<tr class="eventlog">
|
2011-03-17 11:46:02 +00:00
|
|
|
<td width="0"></td>
|
|
|
|
<td class="syslog" width="160">
|
|
|
|
' . $entry['datetime'] . '
|
|
|
|
</td>');
|
2010-06-20 21:37:05 +00:00
|
|
|
|
2011-11-07 19:39:15 +00:00
|
|
|
if (!isset($vars['device'])) {
|
2011-03-17 11:46:02 +00:00
|
|
|
$dev = device_by_id_cache($entry['host']);
|
|
|
|
echo("<td class=list-bold width=150>
|
|
|
|
" . generate_device_link($dev, shorthost($dev['hostname'])) . "
|
|
|
|
</td>");
|
|
|
|
}
|
2007-04-03 14:10:23 +00:00
|
|
|
|
2011-03-17 11:46:02 +00:00
|
|
|
if ($entry['type'] == "interface")
|
|
|
|
{
|
2011-11-07 19:39:15 +00:00
|
|
|
$this_if = ifLabel(getifbyid($entry['reference']));
|
|
|
|
$entry['link'] = "<b>".generate_port_link($this_if, makeshortif(strtolower($this_if['label'])))."</b>";
|
2011-03-17 11:46:02 +00:00
|
|
|
} else {
|
|
|
|
$entry['link'] = "System";
|
|
|
|
}
|
2007-04-03 14:10:23 +00:00
|
|
|
|
2011-03-17 11:46:02 +00:00
|
|
|
echo("<td>".$entry['link']."</td>");
|
2007-04-03 14:10:23 +00:00
|
|
|
|
2011-03-17 11:46:02 +00:00
|
|
|
echo("<td>".htmlspecialchars($entry['message']) . "</td>
|
|
|
|
</tr>");
|
2007-04-03 14:10:23 +00:00
|
|
|
|
2011-11-07 19:39:15 +00:00
|
|
|
?>
|