diff --git a/html/pages/device/loadbalancer.inc.php b/html/pages/device/loadbalancer.inc.php index 49271e188..fe4949f7a 100644 --- a/html/pages/device/loadbalancer.inc.php +++ b/html/pages/device/loadbalancer.inc.php @@ -21,25 +21,25 @@ unset($sep); foreach ($loadbalancer_tabs as $type) { - if (!$vars['proto']) { $vars['proto'] = $type; } + if (!$vars['type']) { $vars['type'] = $type; } echo($sep); - if ($vars['proto'] == $type) + if ($vars['type'] == $type) { echo('"); } + echo(generate_link($type_text[$type] ." (".$device_loadbalancer_count[$type].")",$link_array,array('type'=>$type))); + if ($vars['type'] == $type) { echo(""); } $sep = " | "; } print_optionbar_end(); -if (is_file("pages/device/loadbalancer/".mres($vars['proto']).".inc.php")) +if (is_file("pages/device/loadbalancer/".mres($vars['type']).".inc.php")) { - include("pages/device/loadbalancer/".mres($vars['proto']).".inc.php"); + include("pages/device/loadbalancer/".mres($vars['type']).".inc.php"); } else { foreach ($loadbalancer_tabs as $type) { diff --git a/html/pages/device/loadbalancer/loadbalancer_rservers.inc.php b/html/pages/device/loadbalancer/loadbalancer_rservers.inc.php index 6b2a3150d..24d557a00 100644 --- a/html/pages/device/loadbalancer/loadbalancer_rservers.inc.php +++ b/html/pages/device/loadbalancer/loadbalancer_rservers.inc.php @@ -15,7 +15,7 @@ $sep = ""; foreach ($menu_options as $option => $text) { if ($_GET['optd'] == $option) { echo(""); } echo(" | "); @@ -37,7 +37,7 @@ foreach ($graph_types as $type => $descr) { echo("$type_sep"); if ($_GET['opte'] == $type) { echo(""); } $type_sep = " | "; diff --git a/html/pages/device/loadbalancer/loadbalancer_vservers.inc.php b/html/pages/device/loadbalancer/loadbalancer_vservers.inc.php index 408660a48..431766494 100644 --- a/html/pages/device/loadbalancer/loadbalancer_vservers.inc.php +++ b/html/pages/device/loadbalancer/loadbalancer_vservers.inc.php @@ -15,7 +15,7 @@ $sep = ""; foreach ($menu_options as $option => $text) { if ($_GET['optd'] == $option) { echo(""); } echo(" | "); @@ -34,7 +34,7 @@ foreach ($graph_types as $type => $descr) { echo("$type_sep"); if ($_GET['opte'] == $type) { echo(""); } $type_sep = " | "; diff --git a/html/pages/device/loadbalancer/netscaler_vsvr.inc.php b/html/pages/device/loadbalancer/netscaler_vsvr.inc.php index 9a275367f..4d1835280 100644 --- a/html/pages/device/loadbalancer/netscaler_vsvr.inc.php +++ b/html/pages/device/loadbalancer/netscaler_vsvr.inc.php @@ -1,11 +1,68 @@ VServer » "); +#echo('All'); +#print_optionbar_end(); + +$graph_types = array("bits" => "Bits", + "pkts" => "Packets", + "conns" => "Connections", + "reqs" => "Requests", + "hitmiss" => "Hit/Miss"); + +$i=0; + +echo("
| ' . $vsvr['vsvr_name'] . ' | '); + echo("" . $vsvr['vsvr_ip'] . ":" . $vsvr['vsvr_port'] . " | "); + echo("" . $vsvr['vsvr_state'] . " | "); + echo("" . format_si($vsvr['vsvr_bps_in']*8) . "bps | "); + echo("" . format_si($vsvr['vsvr_bps_out']*8) . "bps | "); + echo("
');
+ $graph_type = "netscalervsvr_" . $graph_type;
+ $graph_array['height'] = "100";
+ $graph_array['width'] = "213";
+ $graph_array['to'] = $config['time']['now'];
+ $graph_array['id'] = $vsvr['vsvr_id'];
+ $graph_array['type'] = $graph_type;
+
+ echo(''.$graph_text.''); + + include("includes/print-quadgraphs.inc.php"); + + echo(" + |
+ ||||