<?php /** * Observium * * This file is part of Observium. * * @package observium * @subpackage webui * @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2016 Observium Limited * */ echo ' <table class="table table-hover table-striped table-condensed ">'; foreach ($devices as $device) { if (device_permitted($device['device_id'])) { if (!$location_filter || $device['location'] == $location_filter) { print_device_row($device, 'basic'); } } } echo " </table>"; // EOF
//$graph_array_zoom['height'] = "150"; //$graph_array_zoom['width'] = "400"; //$graph_array['legend'] = "no"; $app_devices = array(); foreach (dbFetchRows("SELECT * FROM `applications` WHERE `app_type` = ? " . $GLOBALS['cache']['where']['devices_permitted'], array($vars['app'])) as $app) { if (isset($cache['devices']['id'][$app['device_id']])) { $app_devices[] = array_merge($app, $cache['devices']['id'][$app['device_id']]); } } $app_devices = array_sort_by($app_devices, 'hostname', SORT_ASC, SORT_STRING); //echo generate_box_open(); //echo '<table class="table table-hover table-condensed table-striped ">'; foreach ($app_devices as $app_device) { echo generate_box_open(); echo '<table class="table table-hover table-condensed table-striped ">'; print_device_row($app_device, NULL, array('tab' => 'apps', 'app' => $app['app_type'])); echo '<tr><td colspan="6">'; $graph_array['id'] = $app_device['app_id']; $graph_array['types'] = array(); $graph_array['legend'] = "no"; foreach ($config['app'][$vars['app']]['top'] as $graph_type) { $graph_array['types'][] = "application_" . $vars['app'] . "_" . $graph_type; } print_graph_summary_row($graph_array); /* foreach ($config['app'][$vars['app']]['top'] as $graph_type) { $graph_array['type'] = "application_".$vars['app']."_".$graph_type; $graph_array['id'] = $app_device['app_id']; $graph_array_zoom['type'] = "application_".$vars['app']."_".$graph_type; $graph_array_zoom['id'] = $app_device['app_id'];
* * This file is part of Observium. * * @package observium * @subpackage webui * @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2016 Observium Limited * */ // Display devices as a list in detailed format ?> <table class="table table-hover table-striped table-condensed " style="margin-top: 10px;"> <thead> <tr> <th></th> <th></th> <th>Device/Location</th> <th>Poller Performance times</th> </tr> </thead> <?php foreach ($devices as $device) { if (device_permitted($device['device_id'])) { if (!$location_filter || $device['location'] == $location_filter) { print_device_row($device, 'perf'); //include("includes/hostbox-status.inc.php"); } } } echo "</table>"; // EOF
* */ // Display devices as a list in detailed format ?> <table class="table table-hover table-striped table-condensed "> <thead> <tr> <th class="state-marker"></th> <th></th> <th>Device / Location</th> <th></th> <th>Operating System / Hardware Platform</th> <th>Uptime / sysName</th> </tr> </thead> <?php foreach ($devices as $device) { if (device_permitted($device['device_id'])) { if (!$location_filter || $device['location'] == $location_filter) { print_device_row($device, 'details'); } } } ?> </table> <?php // EOF
* * This file is part of Observium. * * @package observium * @subpackage webui * @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2016 Observium Limited * */ // Display devices as a list in detailed format ?> <table class="table table-hover table-striped table-condensed " style="margin-top: 10px;"> <thead> <tr> <th></th> <th></th> <th>Device/Location</th> <th></th> </tr> </thead> <?php foreach ($devices as $device) { if (device_permitted($device['device_id'])) { if (!$location_filter || $device['location'] == $location_filter) { print_device_row($device, 'status'); } } } echo "</table>"; // EOF
// Print single VRF echo generate_box_open(); echo '<table class="table table-striped">'; $vrf = dbFetchRow("SELECT * FROM `vrfs` WHERE `mplsVpnVrfRouteDistinguisher` = ? " . $GLOBALS['cache']['where']['devices_permitted'], array($vars['vrf'])); echo '<tr>'; echo '<td style="width: 200px;" class="entity-title"><a href="' . generate_url($link_array, array('vrf' => $vrf['mplsVpnVrfRouteDistinguisher'])) . '">' . $vrf['vrf_name'] . '</a></td>'; echo '<td style="width: 100px;" class="small">' . $vrf['mplsVpnVrfRouteDistinguisher'] . '</td>'; echo '<td style="width: 200px;" class="small">' . $vrf['mplsVpnVrfDescription'] . '</td>'; echo '</table>'; echo generate_box_close(); $vrf_devices = dbFetchRows("SELECT * FROM `vrfs` LEFT JOIN `devices` USING (`device_id`) WHERE `mplsVpnVrfRouteDistinguisher` = ? " . $GLOBALS['cache']['where']['devices_permitted'], array($vrf['mplsVpnVrfRouteDistinguisher'])); foreach ($vrf_devices as $device) { $hostname = $device['hostname']; echo generate_box_open(); echo '<table cellpadding="10" cellspacing="0" class="table table-striped" width="100%">'; print_device_row($device); echo '</table>'; echo generate_box_close(); unset($seperator); echo '<div style="margin: 10px;"><table class="table table-striped">'; $i = 1; foreach (dbFetchRows("SELECT * FROM `ports` WHERE `ifVrf` = ? AND `device_id` = ?" . $GLOBALS['cache']['where']['ports_permitted'], array($device['vrf_id'], $device['device_id'])) as $port) { print_port_row($port); $i++; } $x++; echo '</table></div>'; echo '<div style="height: 10px;"></div>'; } } // EOF