29 lines
1.0 KiB
PHP
29 lines
1.0 KiB
PHP
<?php
|
|
|
|
/**
|
|
* Observium Network Management and Monitoring System
|
|
* Copyright (C) 2006-2015, Adam Armstrong - http://www.observium.org
|
|
*
|
|
* @package observium
|
|
* @subpackage webui
|
|
* @author Adam Armstrong <adama@observium.org>
|
|
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
|
*
|
|
*/
|
|
|
|
// Check if a result is returned for this device.
|
|
//if ($config['enable_syslog'] && count(dbFetchRows("SELECT * from `syslog` WHERE `device_id` = ? LIMIT 0,1", array($device['device_id']))))
|
|
if ($config['enable_syslog'] && dbExist('syslog', "`device_id` = ?", array($device['device_id'])))
|
|
{
|
|
|
|
print_syslogs(array('device' => $device['device_id'], 'short' => TRUE, 'pagesize' => '20',
|
|
'header' => array('title' => 'Syslog',
|
|
'icon' => $config['icon']['syslog'],
|
|
'url' => generate_url(array('page' => 'device', 'device' => $device['device_id'], 'tab' => 'logs', 'section' => 'syslog'))
|
|
)
|
|
));
|
|
|
|
}
|
|
|
|
// EOF
|