35) { $name = substr($name, 0, 35) . "..."; } $descr = strlen($result['location']) ? escape_html($result['location']) . ' | ' : ''; $descr .= nicecase($result['entPhysicalClass']) . ' status'; /// FIXME: once we have alerting, colour this to the sensor's status $tab_colour = '#194B7F'; // FIXME: This colour pulled from functions.inc.php humanize_device, maybe set it centrally in definitions? $status_search_results[] = array('url' => 'graphs/type=status_graph/id=' . $result['status_id'] . '/', 'name' => $name, 'colour' => $tab_colour, 'icon' => $config['icon']['status'], 'data' => array( '| ' . escape_html($result['hostname']), $descr) ); } $search_results['status'] = array('descr' => 'Status Indicators found', 'results' => $status_search_results); } // EOF