");
-
echo("
");
- $graph_array['from'] = $config['time']['sixhour'];
- echo("
");
+ $thumb_array = array('sixhour' => '6 Hours', 'day' => '25 Hours', 'twoday' => '48 Hours', 'week' => 'One Week', 'twoweek' => 'Two Weeks',
+ 'month' => 'One Month', 'twomonth' => 'Two Months','year' => 'One Year', 'twoyear' => 'Two Years');
- $graph_array['from'] = $config['time']['day'];
- echo("
");
- $graph_array['from'] = $config['time']['twoday'];
- echo("
");
+ foreach ($thumb_array as $period => $text)
+ {
- $graph_array['from'] = $config['time']['week'];
- echo("
");
+ $graph_array['from'] = $config['time'][$period];
- $graph_array['from'] = $config['time']['twoweek'];
- echo("
");
-
- $graph_array['from'] = $config['time']['month'];
- echo("
");
-
- $graph_array['from'] = $config['time']['twomonth'];
- echo("
");
-
- $graph_array['from'] = $config['time']['year'];
- echo("
");
+ $link_array = $vars;
+ $link_array['from'] = $graph_array['from'];
+ $link_array['to'] = $graph_array['to'];
+ $link_array['page'] = "graphs";
+ $link = generate_url($link_array);
+ echo("
");
+ }
echo("
");
+ $graph_array = $vars;
+
$graph_array['height'] = "300";
- $graph_array['width'] = "1075";
- $graph_array['from'] = $from;
- $graph_array['to'] = $to;
- $graph_array['legend'] = "yes";
+ $graph_array['width'] = $graph_width;
echo generate_graph_js_state($graph_array);
- echo("
");
+ echo("
");
echo(generate_graph_tag($graph_array));
echo("
");
- echo("
");
}
?>
diff --git a/html/pages/ports/list.inc.php b/html/pages/ports/list.inc.php
index 5da3e81f2..00984036d 100644
--- a/html/pages/ports/list.inc.php
+++ b/html/pages/ports/list.inc.php
@@ -9,27 +9,28 @@ $row = 1;
foreach (dbFetchRows($query, $param) as $interface)
{
- if (is_integer($row/2)) { $row_colour = $list_colour_a; } else { $row_colour = $list_colour_b; }
-
- $speed = humanspeed($interface['ifSpeed']);
- $type = humanmedia($interface['ifType']);
-
- $interface['in_rate'] = formatRates($interface['ifInOctets_rate'] * 8);
- $interface['out_rate'] = formatRates($interface['ifOutOctets_rate'] * 8);
-
-
- if ($interface['in_errors'] > 0 || $interface['out_errors'] > 0)
- {
- $error_img = generate_port_link($interface,"

",errors);
- } else { $error_img = ""; }
if (port_permitted($interface['interface_id'], $interface['device_id']))
{
+
+ if (is_integer($row/2)) { $row_colour = $list_colour_a; } else { $row_colour = $list_colour_b; }
+
+ $speed = humanspeed($interface['ifSpeed']);
+ $type = humanmedia($interface['ifType']);
+
+ if ($interface['in_errors'] > 0 || $interface['out_errors'] > 0)
+ {
+ $error_img = generate_port_link($interface,"

",errors);
+ } else { $error_img = ""; }
+
+ $interface['in_rate'] = formatRates($interface['ifInOctets_rate'] * 8);
+ $interface['out_rate'] = formatRates($interface['ifOutOctets_rate'] * 8);
+
$interface = ifLabel($interface, $device);
echo("
|
- " . generate_device_link($interface) . " |
- " . generate_port_link($interface) . " $error_img |
+ ".$interface['hostname']." |
+ ".fixIfName($interface['label'])." $error_img |
$speed |
".$interface['in_rate']." |
".$interface['out_rate']." |
diff --git a/includes/polling/os/ios.inc.php b/includes/polling/os/ios.inc.php
index 347c9fb15..58d0700c0 100755
--- a/includes/polling/os/ios.inc.php
+++ b/includes/polling/os/ios.inc.php
@@ -1,6 +1,5 @@