|
@@ -65,9 +65,9 @@ class HuaweiPonOctetsCommand extends BaseCommand
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|
|
|
|
|
|
- //counter64
|
|
|
|
- $inOctets = $SNMP->$library()->ifHCInOctets();
|
|
|
|
- $outOctets = $SNMP->$library()->ifHCOutOctets();
|
|
|
|
|
|
+ //counter32
|
|
|
|
+ $inOctets = $SNMP->$library()->ifInOctets();
|
|
|
|
+ $outOctets = $SNMP->$library()->ifOutOctets();
|
|
|
|
|
|
$sendData = array();
|
|
$sendData = array();
|
|
|
|
|
|
@@ -75,7 +75,7 @@ class HuaweiPonOctetsCommand extends BaseCommand
|
|
|
|
|
|
$t1 = time();
|
|
$t1 = time();
|
|
foreach($dataCached as $index => $pon) {
|
|
foreach($dataCached as $index => $pon) {
|
|
- $ponPort = "{$pon['slot']}.{$pon['port']}";
|
|
|
|
|
|
+ $ponPort = str_replace("/",".",$pon['ponPort']);
|
|
|
|
|
|
//foreach($metrics as $data => $metric) {
|
|
//foreach($metrics as $data => $metric) {
|
|
//if(isset($$data[$index]) && !empty($$data[$index])) {
|
|
//if(isset($$data[$index]) && !empty($$data[$index])) {
|
|
@@ -113,6 +113,8 @@ class HuaweiPonOctetsCommand extends BaseCommand
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ //print_r($bandwidthCached);
|
|
|
|
+ //$bandwidthCached = array();
|
|
|
|
|
|
$this->setData($key_olt_pon_bandwidth, $bandwidthCached, true);
|
|
$this->setData($key_olt_pon_bandwidth, $bandwidthCached, true);
|
|
|
|
|