2012-08-20 Sergio Martin <sergio.martin@artica.es>

* 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
This commit is contained in:
zarzuelo 2012-08-20 14:06:20 +00:00
parent 5c42c87962
commit e77e723b12
2 changed files with 22 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2012-08-20 Sergio Martin <sergio.martin@artica.es>
* godmode/agentes/configurar_agente.php: Add enterprise tab
to manage agent plugins
2012-08-20 Miguel de Dios <miguel.dedios@artica.es>
* godmode/reporting/reporting_builder.main.php,

View File

@ -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;