From 2bb5c1e3b3404d81821f3a2364415e3114a78dc9 Mon Sep 17 00:00:00 2001 From: Arturo Gonzalez Date: Fri, 8 Sep 2017 09:01:58 +0200 Subject: [PATCH] Added section to agent tabs --- pandora_console/operation/agentes/ver_agente.php | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/pandora_console/operation/agentes/ver_agente.php b/pandora_console/operation/agentes/ver_agente.php index 95928a784d..f888115173 100644 --- a/pandora_console/operation/agentes/ver_agente.php +++ b/pandora_console/operation/agentes/ver_agente.php @@ -1055,6 +1055,13 @@ if($modules_wux){ $wux_console_tab = ""; } +$url_route_analyzer = enterprise_hook('get_url_route_analyzer_modules', array($id_agente)); +if ($url_route_analyzer) { + $url_route_analyzer_tab = enterprise_hook('url_route_analyzer_tab'); + if ($url_route_analyzer_tab == -1) + $url_route_analyzer_tab = ""; +} + /* GIS tab */ $gistab=""; if ($config['activate_gis']) { @@ -1186,7 +1193,8 @@ $onheader = array('manage' => $managetab, 'graphs' => $graphs, 'policy' => $policyTab, 'ux_console' => $ux_console_tab, - 'wux_console' => $wux_console_tab); + 'wux_console' => $wux_console_tab, + 'url_route_analyzer' => $url_route_analyzer_tab); //Added after it exists // If the agent has incidents associated @@ -1307,7 +1315,10 @@ switch ($tab) { enterprise_include ("operation/agentes/ux_console_view.php"); break; case "wux_console_tab": - enterprise_include ("operation/agentes/wux_console_view.php"); + enterprise_include ("operation/agentes/wux_console_vpiew.php"); + break; + case "url_route_analyzer_tab": + enterprise_include ("operation/agentes/url_route_analyzer.php"); break; case "graphs"; require("operation/agentes/graphs.php");