diff -rupN zabbix.orig/include/menu.inc.php zabbix/include/menu.inc.php --- zabbix.orig/include/menu.inc.php 2014-03-06 09:16:50.363775008 -0800 +++ zabbix/include/menu.inc.php 2014-03-05 15:48:53.957240650 -0800 @@ -138,6 +138,11 @@ $ZBX_MENU = array( 'sub_pages' => array('popup_period.php', 'popup_bitem.php', 'chart_bar.php') ), array( + 'url' => 'reportUnsupportedItems.php', + 'label' => _('Unsupported Items'), + 'user_type' => USER_TYPE_SUPER_ADMIN + ), + array( 'url' => 'popup.php' ), array( diff -rupN zabbix.orig/reportUnsupportedItems.php zabbix/reportUnsupportedItems.php --- zabbix.orig/reportUnsupportedItems.php 1969-12-31 16:00:00.000000000 -0800 +++ zabbix/reportUnsupportedItems.php 2014-03-06 09:14:43.845178354 -0800 @@ -0,0 +1,66 @@ +addPageHeader(_('Unsupported Items')); + +$table = new CTableInfo(); +$table->setHeader(array( + _('Host'), + _('Item'), + _('Key'), + _('Type'), +)); + +$items = API::Item()->get(array( + 'filter'=>array('state' => 1), + 'output'=>'extend' + )); +$items = CMacrosResolverHelper::resolveItemNames($items); +$items = CMacrosResolverHelper::resolveItemKeys($items); + +foreach($items as $item){ + $host = API::Host()->get(array( + 'filter'=>array('hostid' => $item['hostid']), + 'output'=>'extend' + )); + $host=$host[0]; + $table->addRow(array( + new CLink($host['host'],'hosts.php?form=update&hostid='.$item['hostid']), + ($item['flags']==4)?$item['name_expanded']: new CLink($item['name_expanded'],'items.php?form=update&itemid='.$item['itemid']), + $item['key_expanded'], + item_type2str($item['type'] + ))); +} + +$reportWidget->addItem($table); +$reportWidget->show(); + +require_once dirname(__FILE__).'/include/page_footer.php';