updates to various things. remove null from device_bits graph. add 'events' subtab to interface tab.

git-svn-id: http://www.observium.org/svn/observer/trunk@2720 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2011-11-12 14:21:01 +00:00
parent 86248c8bce
commit afced3cd6c
4 changed files with 24 additions and 4 deletions

View File

@@ -59,6 +59,7 @@ $link_array = array('page' => 'device',
$menu_options['graphs'] = 'Graphs';
$menu_options['realtime'] = 'Real time'; ### FIXME CONDITIONAL
$menu_options['arp'] = 'ARP Table';
$menu_options['events'] = 'Eventlog';
if (dbFetchCell("SELECT COUNT(*) FROM `ports_adsl` WHERE `interface_id` = '".$port['interface_id']."'") )
{ $menu_options['adsl'] = 'ADSL'; }

View File

@@ -0,0 +1,16 @@
<?php
$entries = dbFetchRows("SELECT *,DATE_FORMAT(datetime, '%D %b %Y %T') as humandate FROM `eventlog` WHERE `host` = ? AND `type` = 'interface' AND `reference` = '".$port['interface_id']."' ORDER BY `datetime` DESC LIMIT 0,250", array($device['device_id']));
echo('<table cellspacing="0" cellpadding="2" width="100%">');
foreach ($entries as $entry)
{
include("includes/print-event.inc.php");
}
echo('</table>');
$pagetitle[] = "Events";
?>