New visualization of agent view

This commit is contained in:
Arturo Gonzalez Diaz 2015-10-07 11:33:12 +02:00
parent 37882026fd
commit fe001a9cb4
1 changed files with 9 additions and 6 deletions
pandora_console/operation/agentes

View File

@ -503,14 +503,17 @@ if (!empty($network_interfaces)) {
}
$acl_tags = tags_get_acl_tags($config['id_user'], $group_array, 'ER',
'event_condition', 'AND', '', true, array(), true);
$id_modules_array = array();
$id_modules_array[] = $interface['status_module_id'];
$sqlEvents = sprintf('
SELECT *
FROM tevento
WHERE id_agente = (
SELECT id_agente
FROM tagente_estado
WHERE id_agente_modulo = ' . $interface['status_module_id'] . ')
');
FROM tevento te
INNER JOIN tagente_estado tae
ON te.id_agentmodule = tae.id_agente_modulo
AND tae.id_agente_modulo IN (%s)
', implode(',', $id_modules_array));
$sqlLast_contact = sprintf ('
SELECT last_try