|
@@ -57,7 +57,7 @@ class CmtsInterfaceStatsCommand extends BaseCmtsCommand
|
|
|
|
|
|
|
|
|
|
$_utilization = $this->getSNMP("docsIfCmtsChannelUtilization","cmtsIfUtilization");
|
|
$_utilization = $this->getSNMP("docsIfCmtsChannelUtilization","cmtsIfUtilization");
|
|
- $utilization = array();
|
|
|
|
|
|
+ $ifStatsCached = $sendData = $utilization = array();
|
|
|
|
|
|
foreach($_utilization as $compIndex => $value) {
|
|
foreach($_utilization as $compIndex => $value) {
|
|
$params = explode(".",$compIndex);
|
|
$params = explode(".",$compIndex);
|
|
@@ -78,6 +78,7 @@ class CmtsInterfaceStatsCommand extends BaseCmtsCommand
|
|
|
|
|
|
$cmCached = $this->getData($key_cm_scan, true);
|
|
$cmCached = $this->getData($key_cm_scan, true);
|
|
$states = array();
|
|
$states = array();
|
|
|
|
+
|
|
if(empty($cmCached)) {
|
|
if(empty($cmCached)) {
|
|
$this->output->writeln("Se requiere {$key_cm_scan} para obtener cantidad de CM por Interface.");
|
|
$this->output->writeln("Se requiere {$key_cm_scan} para obtener cantidad de CM por Interface.");
|
|
} else {
|
|
} else {
|
|
@@ -91,11 +92,12 @@ class CmtsInterfaceStatsCommand extends BaseCmtsCommand
|
|
|
|
|
|
$states[$up][$state]++;
|
|
$states[$up][$state]++;
|
|
$states[$down][$state]++;
|
|
$states[$down][$state]++;
|
|
|
|
+
|
|
|
|
+ $mac = strtolower($value['mac']);
|
|
|
|
+ $sendData["cm_status_{$mac}"] = "{$state}|g";
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- $ifStatsCached = $sendData = array();
|
|
|
|
-
|
|
|
|
$subId = $this->d_s;
|
|
$subId = $this->d_s;
|
|
$metrics = array("utilization" => "{$subId}_if_utilization_", "microreflection" => "{$subId}_if_microreflection_", "signal" => "{$subId}_if_signal_", "states" => "{$subId}_if_state_");
|
|
$metrics = array("utilization" => "{$subId}_if_utilization_", "microreflection" => "{$subId}_if_microreflection_", "signal" => "{$subId}_if_signal_", "states" => "{$subId}_if_state_");
|
|
$countIfs = 0;
|
|
$countIfs = 0;
|