Revert "Fixed monitor details search by module name and module group. Ticket #4025"
This reverts commit ed4693a6fe
.
This commit is contained in:
parent
2de8122edc
commit
9ea430cfc1
|
@ -2340,19 +2340,7 @@ function modules_get_modules_name ($sql_from , $sql_conditions = '', $meta = fal
|
|||
return $return;
|
||||
}
|
||||
else {
|
||||
switch ($config['dbtype']) {
|
||||
case 'mysql':
|
||||
case 'postgresql':
|
||||
$sql = 'SELECT distinct(tagente_modulo.nombre)
|
||||
'. $sql_from . $sql_conditions;
|
||||
break;
|
||||
case 'oracle':
|
||||
$sql = 'SELECT DISTINCT(tagente_modulo.nombre)' .
|
||||
$sql_from . $sql_conditions;
|
||||
break;
|
||||
}
|
||||
|
||||
// For each server defined and not disabled:h
|
||||
// For each server defined and not disabled:
|
||||
$servers = db_get_all_rows_sql ('SELECT *
|
||||
FROM tmetaconsole_setup
|
||||
WHERE disabled = 0');
|
||||
|
@ -2361,7 +2349,6 @@ function modules_get_modules_name ($sql_from , $sql_conditions = '', $meta = fal
|
|||
$servers = array();
|
||||
|
||||
$result = array();
|
||||
$modules = array();
|
||||
foreach($servers as $server) {
|
||||
// If connection was good then retrieve all data server
|
||||
if (metaconsole_connect($server) == NOERR) {
|
||||
|
@ -2370,6 +2357,7 @@ function modules_get_modules_name ($sql_from , $sql_conditions = '', $meta = fal
|
|||
else {
|
||||
$connection = false;
|
||||
}
|
||||
|
||||
// Get all info for filters of all nodes
|
||||
$modules_temp = db_get_all_rows_sql($sql);
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue