|
@@ -104,15 +104,15 @@ class CmtsReportController extends Controller
|
|
public function cmtsCommandsAction($cmtsServerId, $cmtsDeviceId, $mark) {
|
|
public function cmtsCommandsAction($cmtsServerId, $cmtsDeviceId, $mark) {
|
|
|
|
|
|
$mark = strtolower($mark);
|
|
$mark = strtolower($mark);
|
|
- $subName = "d_{$cmtsDeviceId}_s_{$cmtsServerId}_cmd_cmts";
|
|
|
|
|
|
+ $subName = "d_{$cmtsDeviceId}_s_{$cmtsServerId}";
|
|
|
|
|
|
$result = $targets = array();
|
|
$result = $targets = array();
|
|
$endpoint = $this->get('endpoint.mysql');
|
|
$endpoint = $this->get('endpoint.mysql');
|
|
|
|
|
|
- $targets["interface_stats"] = array("target" => "{$subName}_interface_stats");
|
|
|
|
- $targets["cmts_octets"] = array("target" => "{$subName}_octets");
|
|
|
|
- $targets["interface_scan"] = array("target" => "{$subName}_interface_scan");
|
|
|
|
- $targets["cm_scan"] = array("target" => "{$subName}_cm_scan");
|
|
|
|
|
|
+ //$targets["interface_stats"] = array("target" => "{$subName}_interface_stats");
|
|
|
|
+ $targets["cmts_octets"] = array("target" => "{$subName}_snmp_cmtsOctets");
|
|
|
|
+ $targets["interface_scan"] = array("target" => "{$subName}_snmp_cmtsIf");
|
|
|
|
+ $targets["cm_scan"] = array("target" => "{$subName}_snmp_cmMac");
|
|
$errors = array();
|
|
$errors = array();
|
|
|
|
|
|
foreach($targets as $index => $t) {
|
|
foreach($targets as $index => $t) {
|
|
@@ -120,7 +120,7 @@ class CmtsReportController extends Controller
|
|
try {
|
|
try {
|
|
$data = $endpoint->get(json_encode($search),'last', true);
|
|
$data = $endpoint->get(json_encode($search),'last', true);
|
|
} catch(\Exception $e) {
|
|
} catch(\Exception $e) {
|
|
- $errors[] = array("msg" => "Falla mysql_json_endpoint({$index}): {$e->getMessage()}");
|
|
|
|
|
|
+ $errors[] = array("msg" => "Falla mongo_json_endpoint({$index}): {$e->getMessage()}");
|
|
$data = array();
|
|
$data = array();
|
|
}
|
|
}
|
|
|
|
|
|
@@ -155,7 +155,7 @@ class CmtsReportController extends Controller
|
|
try {
|
|
try {
|
|
$data = $endpoint->get(json_encode($search),'last', true);
|
|
$data = $endpoint->get(json_encode($search),'last', true);
|
|
} catch(\Exception $e) {
|
|
} catch(\Exception $e) {
|
|
- $errors[] = array("msg" => "Falla mysql_json_endpoint({$index}): {$e->getMessage()}");
|
|
|
|
|
|
+ $errors[] = array("msg" => "Falla mongo_json_endpoint({$index}): {$e->getMessage()}");
|
|
$data = array();
|
|
$data = array();
|
|
}
|
|
}
|
|
|
|
|
|
@@ -268,7 +268,7 @@ class CmtsReportController extends Controller
|
|
try {
|
|
try {
|
|
$data = $endpoint->get(json_encode($search),'last', true);
|
|
$data = $endpoint->get(json_encode($search),'last', true);
|
|
} catch(\Exception $e) {
|
|
} catch(\Exception $e) {
|
|
- $errors[] = array("msg" => "Falla mysql_json_endpoint({$index}): {$e->getMessage()}");
|
|
|
|
|
|
+ $errors[] = array("msg" => "Falla mongo_json_endpoint({$index}): {$e->getMessage()}");
|
|
$data = array();
|
|
$data = array();
|
|
}
|
|
}
|
|
|
|
|