2011-08-18 Miguel de Dios <miguel.dedios@artica.es>

* godmode/agentes/module_manager_editor_network.php: disabled snmp community
	when set the version 3, and added tooltip to show help in Auth and privacy
	pass about the eight characters minimum.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4776 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2011-08-18 16:53:43 +00:00
parent 7742fb7424
commit 631df4958c
2 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2011-08-18 Miguel de Dios <miguel.dedios@artica.es>
* godmode/agentes/module_manager_editor_network.php: disabled snmp community
when set the version 3, and added tooltip to show help in Auth and privacy
pass about the eight characters minimum.
2011-08-18 Miguel de Dios <miguel.dedios@artica.es>
* include/functions.php: fixed the snmpwalk for version 3, the function

View File

@ -164,7 +164,7 @@ else if ($id_agent_module === false) {
$data = array();
$data[0] = __('Auth user');
$data[1] = html_print_input_text ('snmp3_auth_user', $snmp3_auth_user, '', 15, 60, true);
$data[2] = __('Auth password');
$data[2] = __('Auth password') . ui_print_help_tip(__("The pass length must be eight character minimum."), true);
$data[3] = html_print_input_text ('snmp3_auth_pass', $snmp3_auth_pass, '', 15, 60, true);
$data[3] .= html_print_input_hidden('active_snmp_v3', 0, true);
if ($snmp_version != 3) $table_simple->rowstyle['field_snmpv3_row1'] = 'display: none;';
@ -173,7 +173,7 @@ push_table_simple($data, 'field_snmpv3_row1');
$data = array();
$data[0] = __('Privacy method');
$data[1] = html_print_select(array('DES' => __('DES'), 'AES' => __('AES')), 'snmp3_privacy_method', $snmp3_privacy_method, '', '', '', true);
$data[2] = __('privacy pass');
$data[2] = __('Privacy pass') . ui_print_help_tip(__("The pass length must be eight character minimum."), true);
$data[3] = html_print_input_text ('snmp3_privacy_pass', $snmp3_privacy_pass, '', 15, 60, true);
if ($snmp_version != 3) $table_simple->rowstyle['field_snmpv3_row2'] = 'display: none;';
push_table_simple($data, 'field_snmpv3_row2');
@ -196,12 +196,14 @@ $(document).ready (function () {
$("#simple-field_snmpv3_row2").attr("style", "");
$("#simple-field_snmpv3_row3").attr("style", "");
$("input[name=active_snmp_v3]").val(1);
$("input[name=snmp_community]").attr("disabled", true);
}
else {
$("#simple-field_snmpv3_row1").css("display", "none");
$("#simple-field_snmpv3_row2").css("display", "none");
$("#simple-field_snmpv3_row3").css("display", "none");
$("input[name=active_snmp_v3]").val(0);
$("input[name=snmp_community]").attr("disabled", false);
}
});
});