Commit d22560b72c51a62d4739e85d9a67a38e0a4379f4
1 parent
6e3f6cce
Exists in
master
and in
1 other branch
limpando strCollectsDefinitions
Showing
1 changed file
with
112 additions
and
112 deletions
Show diff stats
src/Cacic/WSBundle/Controller/DefaultController.php
| ... | ... | @@ -280,7 +280,7 @@ class DefaultController extends Controller |
| 280 | 280 | $strCollectsDefinitions = ''; |
| 281 | 281 | |
| 282 | 282 | //Coleta Forçada para computador |
| 283 | - $v_tripa_coleta = explode('#', $computador->getTeNomesCurtosModulos() ); | |
| 283 | +// $v_tripa_coleta = explode('#', $computador->getTeNomesCurtosModulos() ); | |
| 284 | 284 | |
| 285 | 285 | //Ações de Coletas por rede |
| 286 | 286 | $acoes = $this->getDoctrine()->getRepository('CacicCommonBundle:Acao')->listaAcaoRedeComputador($rede, $so); |
| ... | ... | @@ -335,117 +335,117 @@ class DefaultController extends Controller |
| 335 | 335 | $strCollectsDefinitions .= '[/ClassesAndProperties]'; |
| 336 | 336 | |
| 337 | 337 | //caso coleta forçada tenha sido marcada em algum momento |
| 338 | - $coleta_forcada_computador = $computador->getDtHrColetaForcadaEstacao(); | |
| 339 | - if ( !empty($acao['dtHrColetaForcada']) || !empty($coleta_forcada_computador)) | |
| 340 | - { | |
| 341 | - $v_dt_hr_coleta_forcada = $acao["dt_hr_coleta_forcada"]; | |
| 342 | - if (count($v_tripa_coleta) > 0 and | |
| 343 | - $v_dt_hr_coleta_forcada < $computador->getDtHrColetaForcadaEstacao() and | |
| 344 | - in_array($acao["te_nome_curto_modulo"],$v_tripa_coleta)) | |
| 345 | - { | |
| 346 | - $v_dt_hr_coleta_forcada = $computador->getDtHrColetaForcadaEstacao(); | |
| 347 | - } | |
| 348 | - $strCollectsDefinitions .= '[DT_HR_COLETA_FORCADA]' . $v_dt_hr_coleta_forcada . '[/DT_HR_COLETA_FORCADA]'; | |
| 349 | - } | |
| 350 | - if ( !$request->get('AgenteLinux') && trim($acao['idAcao']) == "col_moni" && !empty($monitorados)) | |
| 351 | - { | |
| 352 | - $arrSgSOtoOlds = array( 'W95', | |
| 353 | - 'W95OSR', | |
| 354 | - 'W98', | |
| 355 | - 'W98SE', | |
| 356 | - 'WME'); | |
| 357 | - foreach ($monitorados as $monitorado ) | |
| 358 | - { | |
| 359 | - $v_achei = 0; | |
| 360 | - if($arrPerfis <> null) | |
| 361 | - { | |
| 362 | - for($i = 0; $i < count($arrPerfis); $i++ ) | |
| 363 | - { | |
| 364 | - $arrPerfis2 = explode(',',$arrPerfis[$i]); | |
| 365 | - if ($monitorado["idAplicativo"]==$arrPerfis2[0] && | |
| 366 | - $monitorado["dtAtualizacao"]==$arrPerfis2[1]) | |
| 367 | - $v_achei = 1; | |
| 368 | - } | |
| 369 | - } | |
| 370 | - | |
| 371 | - if ( $v_achei==0 && ( $monitorado["idSo"] == 0 || $monitorado["idSo"] == $computador->getIdSo()) ) | |
| 372 | - { | |
| 373 | - if ($v_retorno_MONITORADOS <> '') $v_retorno_MONITORADOS .= '#'; | |
| 374 | - | |
| 375 | - $v_te_ide_licenca = trim($monitorado["teIdeLicenca"]); | |
| 376 | - if ($monitorado["teIdeLicenca"]=='0') | |
| 377 | - $v_te_ide_licenca = ''; | |
| 378 | - | |
| 379 | - $v_retorno_MONITORADOS .= $monitorado["idAplicativo"] . ','. | |
| 380 | - $monitorado["dtAtualizacao"] . ','. | |
| 381 | - $monitorado["csIdeLicenca"] . ','. | |
| 382 | - $v_te_ide_licenca . ','; | |
| 383 | - | |
| 384 | - if (in_array($so->getSgSo(),$arrSgSOtoOlds)) | |
| 385 | - { | |
| 386 | - $v_te_arq_ver_eng_w9x = trim($monitorado["teArqVerEngW9x"]); | |
| 387 | - if ($v_te_arq_ver_eng_w9x=='') $v_getRedete_arq_ver_eng_w9x = '.'; | |
| 388 | - | |
| 389 | - $v_te_arq_ver_pat_w9x = trim($monitorado["teArqVerPatW9x"]); | |
| 390 | - if ($v_te_arq_ver_pat_w9x=='') $v_te_arq_ver_pat_w9x = '.'; | |
| 391 | - | |
| 392 | - $v_te_car_inst_w9x = trim($monitorado["TeCarInstW9x"]); | |
| 393 | - if ($monitorado["teCarInstW9x"]=='0') $v_te_car_inst_w9x = ''; | |
| 394 | - | |
| 395 | - $v_te_car_ver_w9x = trim($monitorado["teCarInstW9x"]); | |
| 396 | - if ($monitorado["csCarVerWnt"]=='0') $v_te_car_ver_w9x = ''; | |
| 397 | - | |
| 398 | - $v_retorno_MONITORADOS .= '.' .','. | |
| 399 | - $monitorado["teCarInstW9x"] .','. | |
| 400 | - $v_te_car_inst_w9x .','. | |
| 401 | - $$monitorado["csCarVerWnt"] .','. | |
| 402 | - $v_te_car_ver_w9x .','. | |
| 403 | - $v_te_arq_ver_eng_w9x .','. | |
| 404 | - $v_te_arq_ver_pat_w9x ; | |
| 405 | - } | |
| 406 | - else | |
| 407 | - { | |
| 408 | - | |
| 409 | - $v_te_arq_ver_eng_wnt = trim($monitorado["teArqVerEngWnt"]); | |
| 410 | - if ($v_te_arq_ver_eng_wnt=='') $v_te_arq_ver_eng_wnt = '.'; | |
| 411 | - | |
| 412 | - $v_te_arq_ver_pat_wnt = trim($monitorado["teArqVerPatWnt"]); | |
| 413 | - if ($v_te_arq_ver_pat_wnt=='') $v_te_arq_ver_pat_wnt = '.'; | |
| 414 | - | |
| 415 | - $v_te_car_inst_wnt = trim($monitorado["teCarInstWnt"]); | |
| 416 | - if ($monitorado["csCarInstWnt"]=='0') $v_te_car_inst_wnt = ''; | |
| 417 | - | |
| 418 | - $v_te_car_ver_wnt = trim($monitorado["teCarVerWnt"]); | |
| 419 | - if ($monitorado["teCarInstWnt"]=='0') $v_te_car_ver_wnt = ''; | |
| 420 | - | |
| 421 | - $v_retorno_MONITORADOS .= '.' .','. | |
| 422 | - $monitorado["teCarInstWnt"] .','. | |
| 423 | - $v_te_car_inst_wnt .','. | |
| 424 | - $$monitorado["teCarVerWnt"] .','. | |
| 425 | - $v_te_car_ver_wnt .','. | |
| 426 | - $v_te_arq_ver_eng_wnt .','. | |
| 427 | - $v_te_arq_ver_pat_wnt; | |
| 428 | - | |
| 429 | - } | |
| 430 | - | |
| 431 | - $v_retorno_MONITORADOS .= ',' . $monitorado["inDisponibilizaInfo"]; | |
| 432 | - | |
| 433 | - if ($monitorado["inDisponibilizaInfo"]=='S') | |
| 434 | - { | |
| 435 | - $v_retorno_MONITORADOS .= ',' . $monitorado["nmAplicativo"]; | |
| 436 | - } | |
| 437 | - else | |
| 438 | - { | |
| 439 | - $v_retorno_MONITORADOS .= ',.'; | |
| 440 | - } | |
| 441 | - | |
| 442 | - } | |
| 443 | - } | |
| 444 | - if ($v_retorno_MONITORADOS <> '') | |
| 445 | - $v_retorno_MONITORADOS = OldCacicHelper::replaceInvalidHTTPChars($v_retorno_MONITORADOS); | |
| 446 | - | |
| 447 | - $strCollectsDefinitions .= $v_retorno_MONITORADOS; | |
| 448 | - } | |
| 338 | +// $coleta_forcada_computador = $computador->getDtHrColetaForcadaEstacao(); | |
| 339 | +// if ( !empty($acao['dtHrColetaForcada']) || !empty($coleta_forcada_computador)) | |
| 340 | +// { | |
| 341 | +// $v_dt_hr_coleta_forcada = $acao["dt_hr_coleta_forcada"]; | |
| 342 | +// if (count($v_tripa_coleta) > 0 and | |
| 343 | +// $v_dt_hr_coleta_forcada < $computador->getDtHrColetaForcadaEstacao() and | |
| 344 | +// in_array($acao["te_nome_curto_modulo"],$v_tripa_coleta)) | |
| 345 | +// { | |
| 346 | +// $v_dt_hr_coleta_forcada = $computador->getDtHrColetaForcadaEstacao(); | |
| 347 | +// } | |
| 348 | +// $strCollectsDefinitions .= '[DT_HR_COLETA_FORCADA]' . $v_dt_hr_coleta_forcada . '[/DT_HR_COLETA_FORCADA]'; | |
| 349 | +// } | |
| 350 | +// if ( !$request->get('AgenteLinux') && trim($acao['idAcao']) == "col_moni" && !empty($monitorados)) | |
| 351 | +// { | |
| 352 | +// $arrSgSOtoOlds = array( 'W95', | |
| 353 | +// 'W95OSR', | |
| 354 | +// 'W98', | |
| 355 | +// 'W98SE', | |
| 356 | +// 'WME'); | |
| 357 | +// foreach ($monitorados as $monitorado ) | |
| 358 | +// { | |
| 359 | +// $v_achei = 0; | |
| 360 | +// if($arrPerfis <> null) | |
| 361 | +// { | |
| 362 | +// for($i = 0; $i < count($arrPerfis); $i++ ) | |
| 363 | +// { | |
| 364 | +// $arrPerfis2 = explode(',',$arrPerfis[$i]); | |
| 365 | +// if ($monitorado["idAplicativo"]==$arrPerfis2[0] && | |
| 366 | +// $monitorado["dtAtualizacao"]==$arrPerfis2[1]) | |
| 367 | +// $v_achei = 1; | |
| 368 | +// } | |
| 369 | +// } | |
| 370 | +// | |
| 371 | +// if ( $v_achei==0 && ( $monitorado["idSo"] == 0 || $monitorado["idSo"] == $computador->getIdSo()) ) | |
| 372 | +// { | |
| 373 | +// if ($v_retorno_MONITORADOS <> '') $v_retorno_MONITORADOS .= '#'; | |
| 374 | +// | |
| 375 | +// $v_te_ide_licenca = trim($monitorado["teIdeLicenca"]); | |
| 376 | +// if ($monitorado["teIdeLicenca"]=='0') | |
| 377 | +// $v_te_ide_licenca = ''; | |
| 378 | +// | |
| 379 | +// $v_retorno_MONITORADOS .= $monitorado["idAplicativo"] . ','. | |
| 380 | +// $monitorado["dtAtualizacao"] . ','. | |
| 381 | +// $monitorado["csIdeLicenca"] . ','. | |
| 382 | +// $v_te_ide_licenca . ','; | |
| 383 | +// | |
| 384 | +// if (in_array($so->getSgSo(),$arrSgSOtoOlds)) | |
| 385 | +// { | |
| 386 | +// $v_te_arq_ver_eng_w9x = trim($monitorado["teArqVerEngW9x"]); | |
| 387 | +// if ($v_te_arq_ver_eng_w9x=='') $v_getRedete_arq_ver_eng_w9x = '.'; | |
| 388 | +// | |
| 389 | +// $v_te_arq_ver_pat_w9x = trim($monitorado["teArqVerPatW9x"]); | |
| 390 | +// if ($v_te_arq_ver_pat_w9x=='') $v_te_arq_ver_pat_w9x = '.'; | |
| 391 | +// | |
| 392 | +// $v_te_car_inst_w9x = trim($monitorado["TeCarInstW9x"]); | |
| 393 | +// if ($monitorado["teCarInstW9x"]=='0') $v_te_car_inst_w9x = ''; | |
| 394 | +// | |
| 395 | +// $v_te_car_ver_w9x = trim($monitorado["teCarInstW9x"]); | |
| 396 | +// if ($monitorado["csCarVerWnt"]=='0') $v_te_car_ver_w9x = ''; | |
| 397 | +// | |
| 398 | +// $v_retorno_MONITORADOS .= '.' .','. | |
| 399 | +// $monitorado["teCarInstW9x"] .','. | |
| 400 | +// $v_te_car_inst_w9x .','. | |
| 401 | +// $$monitorado["csCarVerWnt"] .','. | |
| 402 | +// $v_te_car_ver_w9x .','. | |
| 403 | +// $v_te_arq_ver_eng_w9x .','. | |
| 404 | +// $v_te_arq_ver_pat_w9x ; | |
| 405 | +// } | |
| 406 | +// else | |
| 407 | +// { | |
| 408 | +// | |
| 409 | +// $v_te_arq_ver_eng_wnt = trim($monitorado["teArqVerEngWnt"]); | |
| 410 | +// if ($v_te_arq_ver_eng_wnt=='') $v_te_arq_ver_eng_wnt = '.'; | |
| 411 | +// | |
| 412 | +// $v_te_arq_ver_pat_wnt = trim($monitorado["teArqVerPatWnt"]); | |
| 413 | +// if ($v_te_arq_ver_pat_wnt=='') $v_te_arq_ver_pat_wnt = '.'; | |
| 414 | +// | |
| 415 | +// $v_te_car_inst_wnt = trim($monitorado["teCarInstWnt"]); | |
| 416 | +// if ($monitorado["csCarInstWnt"]=='0') $v_te_car_inst_wnt = ''; | |
| 417 | +// | |
| 418 | +// $v_te_car_ver_wnt = trim($monitorado["teCarVerWnt"]); | |
| 419 | +// if ($monitorado["teCarInstWnt"]=='0') $v_te_car_ver_wnt = ''; | |
| 420 | +// | |
| 421 | +// $v_retorno_MONITORADOS .= '.' .','. | |
| 422 | +// $monitorado["teCarInstWnt"] .','. | |
| 423 | +// $v_te_car_inst_wnt .','. | |
| 424 | +// $$monitorado["teCarVerWnt"] .','. | |
| 425 | +// $v_te_car_ver_wnt .','. | |
| 426 | +// $v_te_arq_ver_eng_wnt .','. | |
| 427 | +// $v_te_arq_ver_pat_wnt; | |
| 428 | +// | |
| 429 | +// } | |
| 430 | +// | |
| 431 | +// $v_retorno_MONITORADOS .= ',' . $monitorado["inDisponibilizaInfo"]; | |
| 432 | +// | |
| 433 | +// if ($monitorado["inDisponibilizaInfo"]=='S') | |
| 434 | +// { | |
| 435 | +// $v_retorno_MONITORADOS .= ',' . $monitorado["nmAplicativo"]; | |
| 436 | +// } | |
| 437 | +// else | |
| 438 | +// { | |
| 439 | +// $v_retorno_MONITORADOS .= ',.'; | |
| 440 | +// } | |
| 441 | +// | |
| 442 | +// } | |
| 443 | +// } | |
| 444 | +// if ($v_retorno_MONITORADOS <> '') | |
| 445 | +// $v_retorno_MONITORADOS = OldCacicHelper::replaceInvalidHTTPChars($v_retorno_MONITORADOS); | |
| 446 | +// | |
| 447 | +// $strCollectsDefinitions .= $v_retorno_MONITORADOS; | |
| 448 | +// } | |
| 449 | 449 | } |
| 450 | 450 | else |
| 451 | 451 | $strCollectsDefinitions .= 'OK'; | ... | ... |