From baf4b6c28e9c2e809c749b96b32bf2ed0f13d88e Mon Sep 17 00:00:00 2001 From: zarzuelo Date: Thu, 12 Aug 2010 09:52:50 +0000 Subject: [PATCH] 2010-08-12 Sergio Martin * godmode/agentes/massive_operations.php: Added the massive operation to add snmp modules to an agent git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3130 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/godmode/agentes/massive_operations.php | 8 +++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index e2922948c4..af932c7c5f 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2010-08-12 Sergio Martin + + * godmode/agentes/massive_operations.php: Added the massive operation + to add snmp modules to an agent + 2010-08-11 Sergio Martin * godmode/agentes/module_manager_editor.php: Changed the old way of diff --git a/pandora_console/godmode/agentes/massive_operations.php b/pandora_console/godmode/agentes/massive_operations.php index 5390420d07..bd1d78a700 100644 --- a/pandora_console/godmode/agentes/massive_operations.php +++ b/pandora_console/godmode/agentes/massive_operations.php @@ -49,6 +49,12 @@ if($tab == 'edit_modules') else $editmoduletab['active'] = false; +/* Collection */ +$modulessnmpTab = enterprise_hook('massive_modules_snmp_tab'); + +if ($modulessnmpTab == -1) + $modulessnmpTab = ""; + /* Delete Modules */ $deletemoduletab['text'] = '' . print_image ("images/delete_modules.png", true, array ("title" => __('Delete modules'))) @@ -111,7 +117,7 @@ if ($policiesTab == -1) $onheader = array('copy_modules' => $copymoduletab, 'edit_modules' => $editmoduletab, - 'delete_modules' => $deletemoduletab, 'delete_agents' => $deleteagenttab, + 'add_modules_snmp' => $modulessnmpTab, 'delete_modules' => $deletemoduletab, 'delete_agents' => $deleteagenttab, 'add_action_alerts' => $addactionalerttab, 'delete_action_alerts' => $deleteactionalerttab, 'add_alerts' => $addalerttab, 'delete_alerts' => $deletealerttab, 'policies' => $policiesTab);