|
@@ -305,7 +305,7 @@ accessDenied(7) The CMTS has sent a Registration Aborted message to the CM
|
|
public function docsIfSigQSignalNoise(){
|
|
public function docsIfSigQSignalNoise(){
|
|
$rtr = array();
|
|
$rtr = array();
|
|
$data = $this->getSNMP()->realWalk(self::OID_docsIfSigQSignalNoise);
|
|
$data = $this->getSNMP()->realWalk(self::OID_docsIfSigQSignalNoise);
|
|
- foreach($data as $oid => $val){
|
|
|
|
|
|
+ if($data) foreach($data as $oid => $val){
|
|
sscanf($val,"INTEGER: %f TenthdB", $readval);
|
|
sscanf($val,"INTEGER: %f TenthdB", $readval);
|
|
$rtr[substr($oid,strlen(self::OID_docsIfSigQSignalNoise)+2)] = $readval;
|
|
$rtr[substr($oid,strlen(self::OID_docsIfSigQSignalNoise)+2)] = $readval;
|
|
}
|
|
}
|
|
@@ -316,7 +316,8 @@ accessDenied(7) The CMTS has sent a Registration Aborted message to the CM
|
|
$oid = self::OID_docsIfSigQMicroreflections;
|
|
$oid = self::OID_docsIfSigQMicroreflections;
|
|
$rtr = array();
|
|
$rtr = array();
|
|
if($trans){
|
|
if($trans){
|
|
- foreach($this->getSNMP()->realWalk($oid) as $oid => $val){
|
|
|
|
|
|
+ $data = $this->getSNMP()->realWalk($oid);
|
|
|
|
+ if($data) foreach($data as $oid => $val){
|
|
sscanf($val,"INTEGER: %f -dBc", $readval);
|
|
sscanf($val,"INTEGER: %f -dBc", $readval);
|
|
$rtr[substr($oid,strlen(self::OID_docsIfSigQSignalNoise)+2)] = $readval;
|
|
$rtr[substr($oid,strlen(self::OID_docsIfSigQSignalNoise)+2)] = $readval;
|
|
}
|
|
}
|