mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-09-25 19:09:08 +02:00
Fixed monitor details search by module name and module group. Ticket #4025
(cherry picked from commit dbb5aeee4c79802d2a7861d6e7582219b983c388)
This commit is contained in:
parent
18d3f1e7a0
commit
ed4693a6fe
@ -2340,7 +2340,19 @@ function modules_get_modules_name ($sql_from , $sql_conditions = '', $meta = fal
|
||||
return $return;
|
||||
}
|
||||
else {
|
||||
// For each server defined and not disabled:
|
||||
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
|
||||
$servers = db_get_all_rows_sql ('SELECT *
|
||||
FROM tmetaconsole_setup
|
||||
WHERE disabled = 0');
|
||||
@ -2349,6 +2361,7 @@ 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) {
|
||||
@ -2357,7 +2370,6 @@ 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…
x
Reference in New Issue
Block a user