From 6d4f460ef803901adb8f83ef09ef5bcf207c1c4d Mon Sep 17 00:00:00 2001 From: danielmaya Date: Tue, 5 Dec 2017 12:13:38 +0100 Subject: [PATCH] Fixed get oid --- .../extensions/realtime_graphs/realtime_graphs.js | 11 ++++++++--- .../godmode/agentes/module_manager_editor_network.php | 11 ++++++++--- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/pandora_console/extensions/realtime_graphs/realtime_graphs.js b/pandora_console/extensions/realtime_graphs/realtime_graphs.js index 8a8b686bb9..538a68f144 100644 --- a/pandora_console/extensions/realtime_graphs/realtime_graphs.js +++ b/pandora_console/extensions/realtime_graphs/realtime_graphs.js @@ -140,14 +140,19 @@ function snmpBrowserWindow () { opacity: 0.5, background: "black" }, - width: 780, - height: 430 + width: 920, + height: 500 }); } // Set the form OID to the value selected in the SNMP browser function setOID () { - $('#text-snmp_oid').val($('#snmp_selected_oid').text()); + + if($('#snmp_browser_version').val() == '3'){ + $('#text-snmp_oid').val($('#table1-0-1').text()); + } else { + $('#text-snmp_oid').val($('#snmp_selected_oid').text()); + } // Close the SNMP browser $('.ui-dialog-titlebar-close').trigger('click'); diff --git a/pandora_console/godmode/agentes/module_manager_editor_network.php b/pandora_console/godmode/agentes/module_manager_editor_network.php index b640243cfe..915d1b542a 100644 --- a/pandora_console/godmode/agentes/module_manager_editor_network.php +++ b/pandora_console/godmode/agentes/module_manager_editor_network.php @@ -414,14 +414,19 @@ function snmpBrowserWindow () { opacity: 0.5, background: "black" }, - width: 780, - height: 430 + width: 920, + height: 500 }); } // Set the form OID to the value selected in the SNMP browser function setOID () { - $('#text-snmp_oid').val($('#snmp_selected_oid').text()); + + if($('#snmp_browser_version').val() == '3'){ + $('#text-snmp_oid').val($('#table1-0-1').text()); + } else { + $('#text-snmp_oid').val($('#snmp_selected_oid').text()); + } // Close the SNMP browser $('.ui-dialog-titlebar-close').trigger('click');