diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 3828cafadd..94de1f6178 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2010-02-12 Miguel de Dios + + * include/javascript/pandora_modules.js: add support to snmp ver3 in the + load network component. + 2010-02-12 Miguel de Dios * pandoradb.sql: add new fields to tnetwork_component for support the diff --git a/pandora_console/include/javascript/pandora_modules.js b/pandora_console/include/javascript/pandora_modules.js index 25fcf40780..3333848f3b 100644 --- a/pandora_console/include/javascript/pandora_modules.js +++ b/pandora_console/include/javascript/pandora_modules.js @@ -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" );