From b9b3c24b217c72310103220891a87e0f1c1008a6 Mon Sep 17 00:00:00 2001 From: zarzuelo Date: Mon, 20 Aug 2012 14:06:20 +0000 Subject: [PATCH] 2012-08-20 Sergio Martin * godmode/agentes/configurar_agente.php: Add enterprise tab to manage agent plugins git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6890 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ .../godmode/agentes/configurar_agente.php | 17 +++++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 65ca322f99..75794e7802 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2012-08-20 Sergio Martin + + * godmode/agentes/configurar_agente.php: Add enterprise tab + to manage agent plugins + 2012-08-20 Miguel de Dios * godmode/reporting/reporting_builder.main.php, diff --git a/pandora_console/godmode/agentes/configurar_agente.php b/pandora_console/godmode/agentes/configurar_agente.php index 39abcfcacc..0c7222a7c4 100644 --- a/pandora_console/godmode/agentes/configurar_agente.php +++ b/pandora_console/godmode/agentes/configurar_agente.php @@ -273,6 +273,19 @@ if ($id_agente) { if ($inventorytab == -1) $inventorytab = ""; + + $has_remote_conf = enterprise_hook('config_agents_has_remote_configuration',array($id_agente)); + + if($has_remote_conf === true) { + /* Plugins */ + $pluginstab = enterprise_hook ('plugins_tab'); + if ($pluginstab == -1) + $pluginstab = ""; + } + else { + $pluginstab = ""; + } + /* Collection */ $collectiontab = enterprise_hook('collection_tab'); @@ -323,6 +336,7 @@ if ($id_agente) { 'alert' => $alerttab, 'template' => $templatetab, 'inventory' => $inventorytab, + 'pluginstab' => $pluginstab, 'collection'=> $collectiontab, 'group' => $grouptab, 'gis' => $gistab); @@ -366,6 +380,9 @@ if ($id_agente) { case "inventory": $tab_description = '- ' . __('Inventory') . ui_print_help_icon('inventory_tab', true); break; + case "plugins": + $tab_description = '- ' . __('Agent plugins') . ui_print_help_icon('plugins_tab', true); + break; case "module": $tab_description = '- '. __('Modules'); break;