require_once dirname(__FILE__).'/include/config.inc.php';
require_once dirname(__FILE__).'/include/items.inc.php';
$page['title'] = _('Queue');
$page['file'] = 'queue.php';
define('ZBX_PAGE_DO_REFRESH', 1);
require_once dirname(__FILE__).'/include/page_header.php';
'config' => [T_ZBX_INT, O_OPT, P_SYS, IN($queueModes), null]
$config = getRequest('config', CProfile::get('web.queue.config', 0));
CProfile::update('web.queue.config', $config, PROFILE_TYPE_INT);
$zabbixServer = new CZabbixServer($ZBX_SERVER, $ZBX_SERVER_PORT, ZBX_SOCKET_TIMEOUT, ZBX_SOCKET_BYTES_LIMIT);
QUEUE_OVERVIEW => CZabbixServer::QUEUE_OVERVIEW,
QUEUE_OVERVIEW_BY_PROXY => CZabbixServer::QUEUE_OVERVIEW_BY_PROXY,
QUEUE_DETAILS => CZabbixServer::QUEUE_DETAILS
$queueData = $zabbixServer->getQueue($queueRequests[$config], get_cookie(ZBX_SESSION_NAME), QUEUE_DETAIL_ITEM_COUNT);
if ($zabbixServer->getError()) {
error($zabbixServer->getError());
show_error_message(_('Cannot display item queue.'));
QUEUE_OVERVIEW => _('Queue overview'),
QUEUE_OVERVIEW_BY_PROXY => _('Queue overview by proxy'),
QUEUE_DETAILS => _('Queue details')
foreach ($submenu_source as $value => $label) {
$url = (new CUrl('queue.php'))
->setArgument('config', $value)
$widget = (new CWidget())
->setTitle(array_key_exists($config, $submenu_source) ? $submenu_source[$config] : null)
$table = new CTableInfo();
$severityConfig = select_config();
if ($config == QUEUE_OVERVIEW) {