diff --git a/pandora_console/godmode/agentes/agent_wizard.snmp_explorer.php b/pandora_console/godmode/agentes/agent_wizard.snmp_explorer.php index 0c129642ff..9d6fa3f125 100644 --- a/pandora_console/godmode/agentes/agent_wizard.snmp_explorer.php +++ b/pandora_console/godmode/agentes/agent_wizard.snmp_explorer.php @@ -31,7 +31,6 @@ $ipAgent = db_get_value('direccion', 'tagente', 'id_agente', $idAgent); check_login (); $ip_target = (string) get_parameter ('ip_target', $ipAgent); -$use_agent = get_parameter ('use_agent'); $snmp_community = (string) get_parameter ('snmp_community', 'public'); $snmp_version = get_parameter('snmp_version', '1'); $snmp3_auth_user = get_parameter('snmp3_auth_user'); @@ -306,13 +305,7 @@ if ($create_modules) { $common_values['tcp_port'] = $tcp_port; } $common_values['snmp_community'] = $snmp_community; - if($use_agent){ - $common_values['ip_target'] = 'auto'; - } - else{ - $common_values['ip_target'] = $ip_target; - } - + $common_values['ip_target'] = $ip_target; $common_values['tcp_send'] = $snmp_version; if ($snmp_version == '3') { @@ -703,22 +696,18 @@ $table->data[0][1] = html_print_input_text ('ip_target', $ip_target, '', 15, 60, $table->data[0][2] = '' . __('Port') . ''; $table->data[0][3] = html_print_input_text ('tcp_port', $tcp_port, '', 5, 20, true); -$table->data[1][0] = '' . __('Use agent ip') . ''; -$table->data[1][1] = html_print_checkbox ('use_agent', 1, $use_agent, true); - $snmp_versions['1'] = 'v. 1'; $snmp_versions['2'] = 'v. 2'; $snmp_versions['2c'] = 'v. 2c'; $snmp_versions['3'] = 'v. 3'; -$table->data[2][0] = '' . __('SNMP community') . ''; -$table->data[2][1] = html_print_input_text ('snmp_community', $snmp_community, '', 15, 60, true); +$table->data[1][0] = '' . __('SNMP community') . ''; +$table->data[1][1] = html_print_input_text ('snmp_community', $snmp_community, '', 15, 60, true); -$table->data[2][2] = '' . __('SNMP version') . ''; -$table->data[2][3] = html_print_select ($snmp_versions, 'snmp_version', $snmp_version, '', '', '', true, false, false, ''); - -$table->data[2][3] .= '
'; +$table->data[1][2] = '' . __('SNMP version') . ''; +$table->data[1][3] = html_print_select ($snmp_versions, 'snmp_version', $snmp_version, '', '', '', true, false, false, ''); +$table->data[1][3] .= ' '; html_print_input_hidden('snmpwalk', 1); html_print_table($table); @@ -771,10 +760,9 @@ if (!$fail) { echo ' '; echo "