Files
librenms-librenms/html/pages/device/port/events.inc.php

16 lines
481 B
PHP
Raw Normal View History

<?php
2015-05-22 13:38:52 +01:00
$entries = dbFetchRows("SELECT *,DATE_FORMAT(datetime, '".$config['dateformat']['mysql']['compact']."') as humandate FROM `eventlog` WHERE `host` = ? AND `type` = 'interface' AND `reference` = '".$port['port_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";
?>