git-svn-id: http://www.observium.org/svn/observer/trunk@327 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2008-11-27 12:36:37 +00:00
parent 052dab4cbd
commit 3dc2f650b8
11 changed files with 101 additions and 145 deletions

View File

@@ -3,9 +3,6 @@
if($bg == $list_colour_a) { $bg = $list_colour_b; } else { $bg=$list_colour_a; }
$hostname = gethostbyid($entry['host']);
$interface = fixifname(getifbyid($entry['interface']));
unset($icon);
$icon = geteventicon($entry['message']);
@@ -17,10 +14,11 @@ if($bg == $list_colour_a) { $bg = $list_colour_b; } else { $bg=$list_colour_a; }
<td class=syslog width=140>
".$entry['humandate']."
</td>");
$if['interface_id'] = $entry['interface'];
$if['ifDescr'] = makeshortif($interface);
$if = mysql_fetch_array(mysql_query("SELECT * from interfaces AS I, devices as D where I.device_id = D.device_id AND I.interface_id = '".$entry['interface']."'"));
echo("<td class=list-bold width=75>
" . generateiflink($if) . "
" . generateiflink($if, makeshortif($if['ifDescr'])) . "
</td>
<td class=syslog>" .
htmlspecialchars(truncate($entry['message'], 45))