2010-10-15 Miguel de Dios <miguel.dedios@artica.es>

* 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
This commit is contained in:
mdtrooper 2010-10-15 08:28:37 +00:00
parent 9738bbd51b
commit 70f09fccb4
2 changed files with 15 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2010-10-15 Miguel de Dios <miguel.dedios@artica.es>
* godmode/agentes/module_manager_editor_network.php: added lines to unblock
SNMP community when the module is adopt.
2010-10-14 Sergio Martin <sergio.martin@artica.es>
* operation/agentes/ver_agente.php: Safe output the list of

View File

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