mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
New visualization of agent view
This commit is contained in:
parent
37882026fd
commit
fe001a9cb4
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user