mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-03 08:01:38 +02:00
only show syslog on device overview when enable_syslog=1
git-svn-id: http://www.observium.org/svn/observer/trunk@2727 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -59,6 +59,8 @@ if ($services['total'])
|
||||
}
|
||||
|
||||
### FIXME - split this into overview/syslog.inc.php?
|
||||
if ($config['enable_syslog'])
|
||||
{
|
||||
$syslog = dbFetchRows("SELECT *, DATE_FORMAT(timestamp, '%Y-%m-%d %T') AS date from syslog WHERE device_id = ? ORDER BY timestamp DESC LIMIT 20", array($device['device_id']));
|
||||
if (count($syslog))
|
||||
{
|
||||
@@ -69,6 +71,7 @@ if (count($syslog))
|
||||
echo("</table>");
|
||||
echo("</div>");
|
||||
}
|
||||
}
|
||||
|
||||
echo("</td>");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user