From 70f09fccb43525435556fdc59ca204f2c7a06b3f Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Fri, 15 Oct 2010 08:28:37 +0000 Subject: [PATCH] 2010-10-15 Miguel de Dios * godmode/agentes/module_manager_editor_network.php: added lines to unblock SNMP community when the module is adopt. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3407 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ .../godmode/agentes/module_manager_editor_network.php | 11 ++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 925ec7f5c9..516dd6d231 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2010-10-15 Miguel de Dios + + * godmode/agentes/module_manager_editor_network.php: added lines to unblock + SNMP community when the module is adopt. + 2010-10-14 Sergio Martin * operation/agentes/ver_agente.php: Safe output the list of diff --git a/pandora_console/godmode/agentes/module_manager_editor_network.php b/pandora_console/godmode/agentes/module_manager_editor_network.php index 3d447e83f1..60f5d76096 100644 --- a/pandora_console/godmode/agentes/module_manager_editor_network.php +++ b/pandora_console/godmode/agentes/module_manager_editor_network.php @@ -53,7 +53,16 @@ $snmp_versions['3'] = 'v. 3'; $data = array (); $data[0] = __('SNMP community'); -$data[1] = print_input_text ('snmp_community', $snmp_community, '', 15, 60, true, $disabledBecauseInPolicy); +$adopt = false; +if (isset($id_agent_module)) { + $adopt = isModuleAdopt($id_agent_module); +} +if (!$adopt) { + $data[1] = print_input_text ('snmp_community', $snmp_community, '', 15, 60, true, $disabledBecauseInPolicy); +} +else { + $data[1] = print_input_text ('snmp_community', $snmp_community, '', 15, 60, true, false); +} $data[2] = _('SNMP version');