Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- hosts.php.bak 2012-01-13 23:29:31.173823317 +0400
- +++ hosts.php 2012-01-13 23:46:14.049818941 +0400
- @@ -787,6 +787,7 @@ include_once('include/page_header.php');
- make_sorting_header(S_IP, 'ip'),
- S_PORT,
- S_TEMPLATES,
- + S_GROUPS,
- make_sorting_header(S_STATUS, 'status'),
- S_AVAILABILITY
- ));
- @@ -826,10 +827,12 @@ include_once('include/page_header.php');
- $options = array(
- 'hostids' => zbx_objectValues($hosts, 'hostid'),
- 'output' => API_OUTPUT_EXTEND,
- + 'extendoutput' => 1,
- 'selectParentTemplates' => array('hostid','host'),
- 'select_items' => API_OUTPUT_COUNT,
- 'select_triggers' => API_OUTPUT_COUNT,
- 'select_graphs' => API_OUTPUT_COUNT,
- + 'select_groups' => 1,
- 'select_applications' => API_OUTPUT_COUNT,
- 'nopermissions' => 1,
- );
- @@ -907,6 +910,13 @@ include_once('include/page_header.php');
- $status = new CLink($status_caption, $status_url, $status_class, $status_script);
- + $host_groups = array();
- + foreach($host['groups'] as $group){
- + $host_groups[] = $group['name'];
- + }
- + natcasesort($host_groups);
- + $host_groups = implode(', ', $host_groups);
- +
- switch($host['available']){
- case HOST_AVAILABLE_TRUE:
- $zbx_available = new CDiv(SPACE, 'iconzbxavailable');
- @@ -990,6 +1000,7 @@ include_once('include/page_header.php');
- $ip,
- empty($host['port']) ? '-' : $host['port'],
- new CCol($hostTemplates, 'wraptext'),
- + $host_groups,
- $status,
- $av_table
- ));
Add Comment
Please, Sign In to add comment