Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
1.0 KiB
PHP
Raw Permalink Normal View History

2014-02-26 22:33:45 +00:00
<?php
2019-06-23 00:29:12 -05:00
if (\LibreNMS\Config::get('enable_syslog')) {
$syslog = dbFetchRows("SELECT *, DATE_FORMAT(timestamp, '" . \LibreNMS\Config::get('dateformat.mysql.compact') . "') AS date from syslog WHERE device_id = ? ORDER BY timestamp DESC LIMIT 20", [$device['device_id']]);
2014-02-26 22:33:45 +00:00
if (count($syslog)) {
echo '<div class="row">
<div class="col-md-12">
<div class="panel panel-default panel-condensed">
<div class="panel-heading">';
echo '<a href="device/device=' . $device['device_id'] . '/tab=logs/section=syslog/"><i class="fa fa-clone fa-lg icon-theme" aria-hidden="true"></i> <strong>Recent Syslog</strong></a>';
2014-02-26 22:33:45 +00:00
echo ' </div>
<table class="table table-hover table-condensed table-striped">';
foreach ($syslog as $entry) {
2022-08-30 12:55:37 -05:00
$syslog_output = '';
2019-04-11 23:26:42 -05:00
include 'includes/html/print-syslog.inc.php';
echo $syslog_output;
2014-02-26 22:33:45 +00:00
}
echo '</table>';
echo '</div>';
echo '</div>';
echo '</div>';
2015-07-13 20:10:26 +02:00
}
}