From 3114f4558b4221bf0cd0b3649cbb86ba7ed76414 Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Thu, 12 Aug 2010 12:51:59 +0000 Subject: [PATCH] fix polling and displaying of etherlike statistics git-svn-id: http://www.observium.org/svn/observer/trunk@1672 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/pages/device/port/graphs.inc.php | 2 +- includes/polling/port-etherlike.inc.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/html/pages/device/port/graphs.inc.php b/html/pages/device/port/graphs.inc.php index 42eca226cb..e34d29e023 100644 --- a/html/pages/device/port/graphs.inc.php +++ b/html/pages/device/port/graphs.inc.php @@ -19,7 +19,7 @@ $graph_type = "port_errors"; include("includes/print-interface-graphs.inc.php"); - if(is_file($config['rrd_dir'] . "/" . $device['hostname'] . "/etherlike-" . $interface['ifIndex'] . ".rrd")) { + if(is_file($config['rrd_dir'] . "/" . $device['hostname'] . "/port-" . $interface['ifIndex'] . "-dot3.rrd")) { echo("
Ethernet Errors
"); $graph_type = "port_etherlike"; include("includes/print-interface-graphs.inc.php"); diff --git a/includes/polling/port-etherlike.inc.php b/includes/polling/port-etherlike.inc.php index 58df4a93f5..c8d9f5b88e 100755 --- a/includes/polling/port-etherlike.inc.php +++ b/includes/polling/port-etherlike.inc.php @@ -3,7 +3,7 @@ if($port_stats[$port['ifIndex']] && $port['ifType'] == "ethernetCsmacd" && isset($port_stats[$port['ifIndex']]['dot3StatsIndex'])) { // Check to make sure Port data is cached. - $this_port = &$port_stats[$device[device_id]][$port[ifIndex]]; + $this_port = &$port_stats[$port[ifIndex]]; $old_rrdfile = $config['rrd_dir'] . "/" . $device['hostname'] . "/" . safename("etherlike-".$port['ifIndex'].".rrd"); $rrdfile = $config['rrd_dir'] . "/" . $device['hostname'] . "/" . safename("port-".$port['ifIndex']."-dot3.rrd");