2010-02-12 Miguel de Dios <miguel.dedios@artica.es>

* include/javascript/pandora_modules.js: add support to snmp ver3 in the
	load network component.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2357 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2010-02-12 11:47:57 +00:00
parent 176a3d1963
commit d5e037aa97
2 changed files with 22 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2010-02-12 Miguel de Dios <miguel.dedios@artica.es>
* include/javascript/pandora_modules.js: add support to snmp ver3 in the
load network component.
2010-02-12 Miguel de Dios <miguel.dedios@artica.es>
* pandoradb.sql: add new fields to tnetwork_component for support the

View File

@ -155,6 +155,23 @@ function configure_modules_form () {
$("#text-ff_threshold").attr ("value", (data["min_ff_event"] == 0) ? 0 : data["min_ff_event"]);
$("#component_loading").hide ();
$("#id_module_type").change ();
if (data["type"] >= 15 && data["type"] <= 18) {
$("#snmp_version option[value="+data["tcp_send"]+"]").select(1);
$("#text-snmp3_auth_user").val(data["plugin_user"]);
$("#text-snmp3_auth_pass").val(data["plugin_pass"]);
$("#snmp3_auth_method option[value="+data["plugin_parameter"]+"]").select(1);
$("#snmp3_privacy_method option[value="+data["custom_string_1"]+"]").select(1);
$("#text-snmp3_privacy_pass").val(data["custom_string_2"]);
$("#snmp3_security_level option[value="+data["custom_string_3"]+"]").select(1);
if (data["tcp_send"] == "3") {
$("#simple-field_snmpv3_row1").attr("style", "");
$("#simple-field_snmpv3_row2").attr("style", "");
$("#simple-field_snmpv3_row3").attr("style", "");
$("input[name=active_snmp_v3]").val(1);
}
}
},
"json"
);