width = '100%'; $table->class = 'databox filter-table-adv'; $table->border = 0; $table->data = []; $table->data[0][] = html_print_label_input_block( __('Data storage path').ui_print_help_tip(__('The Netflow data will be saved in the directory specified here, which will be located in the path defined by the "General Network path" parameter (this parameter is found in the General Settings).'), true), html_print_input_text('netflow_name_dir', $config['netflow_name_dir'], false, 50, 200, true) ); $table->data[0][] = html_print_label_input_block( __('Daemon binary path'), html_print_input_text('netflow_daemon', $config['netflow_daemon'], false, 50, 200, true) ); $table->data[1][] = html_print_label_input_block( __('Nfdump binary path'), html_print_input_text('netflow_nfdump', $config['netflow_nfdump'], false, 50, 200, true) ); $table->data[1][] = html_print_label_input_block( __('Nfexpire binary path'), html_print_input_text('netflow_nfexpire', $config['netflow_nfexpire'], false, 50, 200, true) ); $table->data[2][] = html_print_label_input_block( __('Maximum chart resolution'), html_print_input_text('netflow_max_resolution', $config['netflow_max_resolution'], false, 50, 200, true) ); $table->data[2][] = html_print_label_input_block( __('Disable custom live view filters'), html_print_checkbox_switch('netflow_disable_custom_lvfilters', 1, $config['netflow_disable_custom_lvfilters'], true) ); $table->data[3][] = html_print_label_input_block( __('Netflow max lifetime'), html_print_input_text('netflow_max_lifetime', $config['netflow_max_lifetime'], false, 50, 200, true) ); $onclick = "if (!confirm('".__('Warning').'. '.__('IP address resolution can take a lot of time')."')) return false;"; $table->data[3][] = html_print_label_input_block( __('Name resolution for IP address'), html_print_checkbox_switch_extended('netflow_get_ip_hostname', 1, $config['netflow_get_ip_hostname'], false, $onclick, '', true) ); $table->data[4][] = html_print_label_input_block( __('Netflow interval').ui_print_help_tip(__('It is necessary to restart the server if the value is changed.'), true), html_print_select( [ '600' => __('10 min'), '1800' => __('30 min'), '3600' => __('60 min'), ], 'netflow_interval', $config['netflow_interval'], '', '', 0, true ) ); $table->data[4][] = html_print_label_input_block( __('Enable Sflow').ui_print_help_tip(__('SFLow uses a different protocol and needs an alternative collector that must be activated with this switch'), true), html_print_checkbox_switch_extended( 'activate_sflow', 1, $config['activate_sflow'], $rbt_disabled, '', '', true ), ); echo '
'; html_print_table($table); html_print_input_hidden('update_config', 1); html_print_action_buttons( html_print_submit_button( __('Update'), 'upd_button', false, ['icon' => 'update'], true ) ); echo '
'; ?>