width = '100%'; $table->class = "databox filters"; $table->data = array (); $table->style[0] = "font-weight: bold"; $table->size[0] = '70%'; $table->size[1] = '30%'; enterprise_hook('enterprise_warnings_history_days'); $table->data[1][0] = __('Max. days before delete events') . ui_print_help_tip(__('If the compaction or purge of the data is more frequent than the events deletion, anomalies in module graphs could appear'), true); $table->data[1][1] = html_print_input_text ('event_purge', $config["event_purge"], '', 5, 5, true); $table->data[2][0] = __('Max. days before delete traps'); $table->data[2][1] = html_print_input_text ('trap_purge', $config["trap_purge"], '', 5, 5, true); $table->data[3][0] = __('Max. days before delete audit events'); $table->data[3][1] = html_print_input_text ('audit_purge', $config["audit_purge"], '', 5, 5, true); $table->data[4][0] = __('Max. days before delete string data'); $table->data[4][1] = html_print_input_text ('string_purge', $config["string_purge"], '', 5, 5, true); $table->data[5][0] = __('Max. days before delete GIS data'); $table->data[5][1] = html_print_input_text ('gis_purge', $config["gis_purge"], '', 5, 5, true); $table->data[6][0] = __('Max. days before purge') . ui_print_help_tip(__('Configure a purge period more frequent than a compact data period has no sense'), true); $table->data[6][1] = html_print_input_text ('days_purge', $config["days_purge"], '', 5, 5, true); $table->data[7][0] = __('Max. days before compact data'); $table->data[7][1] = html_print_input_text ('days_compact', $config["days_compact"], '', 5, 5, true); $table->data[8][0] = __('Max. days before delete unknown modules'); $table->data[8][1] = html_print_input_text ('days_delete_unknown', $config["days_delete_unknown"], '', 5, 5, true); $table->data[9][0] = __('Max. days before delete autodisabled agents'); $table->data[9][1] = html_print_input_text ('days_autodisable_deletion', $config["days_autodisable_deletion"], '', 5, 5, true); $table->data[10][0] = __('Retention period of past special days') . ui_print_help_tip(__('This number is days to keep past special days. 0 means never remove.'), true); $table->data[10][1] = html_print_input_text ('num_past_special_days', $config["num_past_special_days"], '', 5, 5, true); $table->data[11][0] = __('Max. macro data fields') . ui_print_help_tip(__('Number of macro fields in alerts and templates between 1 and 15'), true); $table->data[11][1] = html_print_input_text ('max_macro_fields', $config["max_macro_fields"], '', 5, 5, true, false, false, "onChange=\"change_macro_fields()\""); if (enterprise_installed ()) { $table->data[12][0] = __('Max. days before delete inventory data'); $table->data[12][1] = html_print_input_text ('inventory_purge', $config["inventory_purge"], '', 5, 5, true); } $table_other = new stdClass(); $table_other->width = '100%'; $table_other->class = 'databox filters'; $table_other->data = array (); $table_other->style[0] = "font-weight: bold"; $table_other->size[0] = '70%'; $table_other->size[1] = '30%'; $table_other->data[1][0] = __('Item limit for realtime reports') . ui_print_help_tip(__('Set a value too high cause a slowdown on console and a performance penalty in the system.'), true); $table_other->data[1][1] = html_print_input_text ('report_limit', $config["report_limit"], '', 5, 5, true); $table_other->data[2][0] = __('Compact interpolation in hours (1 Fine-20 bad)') . ui_print_help_tip(__('Data will be compacted in intervals of the specified length.'), true); $table_other->data[2][1] = html_print_input_text ('step_compact', $config["step_compact"], '', 5, 5, true); $intervals = array (); $intervals[SECONDS_1HOUR] = __('1 hour'); $intervals[SECONDS_12HOURS] = __('12 hours'); $intervals[SECONDS_1DAY] = __('Last day'); $intervals[SECONDS_2DAY] = __('2 days'); $intervals[SECONDS_10DAY] = __('10 days'); $intervals[SECONDS_1WEEK] = __('Last week'); $intervals[SECONDS_2WEEK] = __('2 weeks'); $intervals[SECONDS_1MONTH] = __('Last month'); $table_other->data[3][0] = __('Default hours for event view'); $table_other->data[3][1] = html_print_input_text ('event_view_hr', $config["event_view_hr"], '', 5, 5, true); $table_other->data[5][0] = __('Use realtime statistics'); $table_other->data[5][1] = __('Yes').' '.html_print_radio_button ('realtimestats', 1, '', $config["realtimestats"], true).' '; $table_other->data[5][1] .= __('No').' '.html_print_radio_button ('realtimestats', 0, '', $config["realtimestats"], true); $table_other->data[6][0] = __('Batch statistics period (secs)') . ui_print_help_tip(__('If realtime statistics are disabled, statistics interval resfresh will be set here.'), true); $table_other->data[6][1] = html_print_input_text ('stats_interval', $config["stats_interval"], '', 5, 5, true); $table_other->data[7][0] = __('Use agent access graph') . ui_print_help_icon("agent_access", true); $table_other->data[7][1] = __('Yes').' '.html_print_radio_button ('agentaccess', 1, '', $config["agentaccess"], true).' '; $table_other->data[7][1] .= __('No').' '.html_print_radio_button ('agentaccess', 0, '', $config["agentaccess"], true); $table_other->data[8][0] = __('Max. recommended number of files in attachment directory') . ui_print_help_tip(__('This number is the maximum number of files in attachment directory. If this number is reached then a warning message will appear in the header notification space.'), true); $table_other->data[8][1] = html_print_input_text ('num_files_attachment', $config["num_files_attachment"], '', 5, 5, true); $table_other->data[9][0] = __('Delete not init modules'); $table_other->data[9][1] = __('Yes').' '.html_print_radio_button ('delete_notinit', 1, '', $config["delete_notinit"], true).' '; $table_other->data[9][1] .= __('No').' '.html_print_radio_button ('delete_notinit', 0, '', $config["delete_notinit"], true); $table_other->data[10][0] = __('Big Operation Step to purge old data') . ui_print_help_tip(__('The number of blocks that a time interval is split into. A bigger value means bigger blocks, which is faster but heavier on the database. Default is 100.'), true); $table_other->data[10][1] = html_print_input_text ('big_operation_step_datos_purge', $config["big_operation_step_datos_purge"], '', 5, 5, true); $table_other->data[11][0] = __('Small Operation Step to purge old data') . ui_print_help_tip(__('The number of rows that are processed in a single query in deletion. Default is 1000. Increase to 3000-5000 in fast systems. Decrease to 500 or 250 on systems with locks.'), true); $table_other->data[11][1] = html_print_input_text ('small_operation_step_datos_purge', $config["small_operation_step_datos_purge"], '', 5, 5, true); $table_other->data[12][0] = __('Graph container - Max. Items') . ui_print_help_tip(__('The number of graphs that are viewed in a container. Default is 10 .Increasing this number could lead to performance problems'), true); $table_other->data[12][1] = html_print_input_text ('max_graph_container', $config["max_graph_container"], '', 5, 5, true); echo '
'; ?>