*** /usr/share/zabbix/queue.php.orig	2013-08-21 15:59:26.000000000 +0200
--- /usr/share/zabbix/queue.php	2013-10-05 00:28:55.000000000 +0200
***************
*** 241,244 ****
--- 241,249 ----
  	}
  	else if($_REQUEST['config'] == 2){
+ 		$proxies = API::proxy()->get(array(
+ 			'output' => array('hostid', 'host'),
+ 			'preservekeys' => true,
+ 		));
+ 
  		$arr = array();
  
***************
*** 247,250 ****
--- 252,256 ----
  			_('Delayed by'),
  			is_show_all_nodes() ? _('Node') : null,
+ 			_('Proxy'),
  			_('Host'),
  			_('Name')
***************
*** 261,265 ****
  				continue;
  
! 			$arr[] = array($res['nextcheck'], $row['hostid'], $row['hostname'], itemName($row));
  		}
  
--- 267,271 ----
  				continue;
  
! 			$arr[] = array($res['nextcheck'], $row['hostid'], $row['hostname'], itemName($row), $row['proxy_hostid']);
  		}
  
***************
*** 273,279 ****
--- 279,293 ----
  			}
  
+ 			if ($r[4] == 0) {
+ 				$proxy='-';
+ 			}
+ 			else {
+ 				$proxy=$proxies[$r[4]]['host'];
+ 			}
+ 
  			$table->addRow(array(
  				zbx_date2str(QUEUE_NODES_DATE_FORMAT, $r[0]),
  				zbx_date2age($r[0]),
+ 				$proxy,
  				get_node_name_by_elid($r[1]),
  				$r[2],
