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

View File

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