diff --git a/pandora_console/godmode/massive/massive_edit_modules.php b/pandora_console/godmode/massive/massive_edit_modules.php index 9d7dee0ec8..b0889bd5ea 100755 --- a/pandora_console/godmode/massive/massive_edit_modules.php +++ b/pandora_console/godmode/massive/massive_edit_modules.php @@ -640,6 +640,53 @@ $table->data['edit11'][3] = html_print_input_text( 'max_timeout', '', '', 5, 10, true) . ' ' . ui_print_help_tip ( __('Seconds that agent will wait for the execution of the module.'), true); + +$table->data['edit16'][0] = __('Retries'); +$table->data['edit16'][1] = html_print_input_text ('max_retries', '', '', 5, 10, true) . ' ' . + ui_print_help_tip ( + __('Number of retries that the module will attempt to run.'), true); + + + $table->data['edit22'][0] = __('Web checks').ui_print_help_icon ("web_checks", true);; + $table->data['edit22'][1] = ''; + +$table->data['edit16'][2] = __('Port'); +$table->data['edit16'][3] = html_print_input_text ('tcp_port', '', '', 5, 20, true); + +$table->data['edit17'][0] = __('TCP send') . ' ' . ui_print_help_icon ("tcp_send", true); +$table->data['edit17'][1] = html_print_textarea ('tcp_send', 2, 65, '', '', true); + +$table->data['edit17'][2] = __('TCP receive'); +$table->data['edit17'][3] = html_print_textarea ('tcp_rcv', 2, 65, '', '', true); + +$table->data['edit18'][0] = __('WMI query') . ui_print_help_icon ('wmiquery', true); +$table->data['edit18'][1] = html_print_input_text ('snmp_oid', '', '', 35, 255, true); + +$table->data['edit18'][2] = __('Key string'); +$table->data['edit18'][3] = html_print_input_text ('snmp_community', '', '', 20, 60, true); + +$table->data['edit19'][0] = __('Field number') . ui_print_help_icon ('wmifield', true); +$table->data['edit19'][1] = html_print_input_text ('tcp_port', '', '', 5, 15, true); + +$table->data['edit20'][0] = __('Plugin') . ui_print_help_icon ('plugin_macros', true); +$table->data['edit20'][1] = html_print_select_from_sql ('SELECT id, name FROM tplugin ORDER BY name', + 'id_plugin', '', 'changePluginSelect();', __('None'), 0, true, false, false); + + + // Store the macros in base64 into a hidden control to move between pages + $table->data['edit21'][0] = html_print_input_hidden('macros',base64_encode($macros),true); + + if (!empty($id_plugin)) { + $preload = db_get_sql ("SELECT description FROM tplugin WHERE id = $id_plugin"); + $preload = io_safe_output ($preload); + $preload = str_replace ("\n", "
", $preload); + } + else { + $preload = ""; + } + + $table->data['edit21'][1] = ''.$preload.''; + echo '
+ +