1<?php
2
3/**
4 * Observium Network Management and Monitoring System
5 * Copyright (C) 2006-2015, Adam Armstrong - http://www.observium.org
6 *
7 * @package    observium
8 * @subpackage webui
9 * @author     Adam Armstrong <adama@observium.org>
10 * @copyright  (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
11 *
12 */
13
14// Check if a result is returned for this device.
15//if ($config['enable_syslog'] && count(dbFetchRows("SELECT * from `syslog` WHERE `device_id` = ? LIMIT 0,1", array($device['device_id']))))
16if ($config['enable_syslog'] && dbExist('syslog', "`device_id` = ?", array($device['device_id'])))
17{
18
19  print_syslogs(array('device' => $device['device_id'], 'short' => TRUE, 'pagesize' => '20',
20                      'header' => array('title' => 'Syslog',
21                                        'icon' => $config['icon']['syslog'],
22                                        'url' => generate_url(array('page' => 'device', 'device' => $device['device_id'], 'tab' => 'logs', 'section' => 'syslog'))
23                                  )
24  ));
25
26}
27
28// EOF
29