mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix polling and displaying of etherlike statistics
git-svn-id: http://www.observium.org/svn/observer/trunk@1672 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -19,7 +19,7 @@
|
|||||||
$graph_type = "port_errors";
|
$graph_type = "port_errors";
|
||||||
include("includes/print-interface-graphs.inc.php");
|
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("<div class=graphhead>Ethernet Errors</div>");
|
echo("<div class=graphhead>Ethernet Errors</div>");
|
||||||
$graph_type = "port_etherlike";
|
$graph_type = "port_etherlike";
|
||||||
include("includes/print-interface-graphs.inc.php");
|
include("includes/print-interface-graphs.inc.php");
|
||||||
|
@@ -3,7 +3,7 @@
|
|||||||
if($port_stats[$port['ifIndex']] && $port['ifType'] == "ethernetCsmacd"
|
if($port_stats[$port['ifIndex']] && $port['ifType'] == "ethernetCsmacd"
|
||||||
&& isset($port_stats[$port['ifIndex']]['dot3StatsIndex'])) { // Check to make sure Port data is cached.
|
&& 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");
|
$old_rrdfile = $config['rrd_dir'] . "/" . $device['hostname'] . "/" . safename("etherlike-".$port['ifIndex'].".rrd");
|
||||||
$rrdfile = $config['rrd_dir'] . "/" . $device['hostname'] . "/" . safename("port-".$port['ifIndex']."-dot3.rrd");
|
$rrdfile = $config['rrd_dir'] . "/" . $device['hostname'] . "/" . safename("port-".$port['ifIndex']."-dot3.rrd");
|
||||||
|
Reference in New Issue
Block a user