diff --git a/pandora_console/include/functions_events.php b/pandora_console/include/functions_events.php index 3a17a8c8a0..caf039656d 100644 --- a/pandora_console/include/functions_events.php +++ b/pandora_console/include/functions_events.php @@ -3887,6 +3887,11 @@ function events_get_response_target( } } + if (is_metaconsole() === true && (int) $server_id > 0) { + $node = new Node($server_id); + $node->connect(); + } + // Replace macros. if (strpos($target, '_agent_alias_') !== false) { $agente_table_name = 'tagente'; @@ -4248,6 +4253,10 @@ function events_get_response_target( ); } + if (is_metaconsole() === true && $server_id > 0) { + $node->disconnect(); + } + return $target; }