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

14 lines
515 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']));
2015-09-21 01:30:23 +05:30
echo '<table class="table table-condensed">';
echo '<th>Timestamp</th><th>Port</th><th>Event</th>';
2015-07-13 20:10:26 +02:00
foreach ($entries as $entry) {
include 'includes/print-event.inc.php';
}
2015-07-13 20:10:26 +02:00
echo '</table>';
2015-07-13 20:10:26 +02:00
$pagetitle[] = 'Events';