diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 7b1ec7ce28..6d2fd5a053 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,16 @@ +2012-02-06 Vanessa Gil + + * pandoradb_data.sql, + pandoradb.data.postgreSQL.sql, + pandoradb.data.oracle.sql: Added fields to display the event view. + + * godmode/menu.php + include/functions_config.php + operation/events/events_list.php: Configure the fields to be + displayed in the event view. + + * godmode/events/custom_events.php: Added file. + 2012-02-06 Hirofumi Kosaka * include/functions_api.php: Merged from 4.0. Add a missing diff --git a/pandora_console/godmode/menu.php b/pandora_console/godmode/menu.php index a3e4f5b43d..e6c6e90a06 100644 --- a/pandora_console/godmode/menu.php +++ b/pandora_console/godmode/menu.php @@ -223,6 +223,8 @@ if (check_acl ($config['id_user'], 0, "PM")) { enterprise_hook ('enterprise_acl_submenu'); enterprise_hook ('skins_submenu'); $sub["extras/pandora_diag"]["text"] = __('Diagnostic info'); + + $sub["godmode/events/custom_events"]["text"] = __('Custom events'); $menu["gsetup"]["sub"] = $sub; } diff --git a/pandora_console/include/functions_config.php b/pandora_console/include/functions_config.php index efc80fb834..c443dd4f34 100644 --- a/pandora_console/include/functions_config.php +++ b/pandora_console/include/functions_config.php @@ -248,7 +248,23 @@ function config_update_config () { config_update_value ('font_size', get_parameter('font_size', $config['font_size'])); config_update_value ('refr', get_parameter('refr', $config['refr'])); - config_update_value ('vc_refr', get_parameter('vc_refr', $config['vc_refr'])); + config_update_value ('vc_refr', get_parameter('vc_refr', $config['vc_refr'])); + + config_update_value ('show_id_evento', get_parameter('show_id_evento', $config['show_id_evento'])); + config_update_value ('show_evento', get_parameter('show_evento', $config['show_evento'])); + config_update_value ('show_id_agente', get_parameter('show_id_agente', $config['show_id_agente'])); + config_update_value ('show_id_usuario', get_parameter('show_id_usuario', $config['show_id_usuario'])); + config_update_value ('show_id_grupo', get_parameter('show_id_grupo', $config['show_id_grupo'])); + config_update_value ('show_estado', get_parameter('show_estado', $config['show_estado'])); + config_update_value ('show_timestamp', get_parameter('show_timestamp', $config['show_timestamp'])); + config_update_value ('show_event_type', get_parameter('show_event_type', $config['show_event_type'])); + config_update_value ('show_id_agentmodule', get_parameter('show_id_agentmodule', $config['show_id_agentmodule'])); + config_update_value ('show_id_alert_am', get_parameter('show_id_alert_am', $config['show_id_alert_am'])); + config_update_value ('show_criticity', get_parameter('show_criticity', $config['show_criticity'])); + config_update_value ('show_user_comment', get_parameter('show_user_comment', $config['show_user_comment'])); + config_update_value ('show_tags', get_parameter('show_tags', $config['show_tags'])); + config_update_value ('show_source', get_parameter('show_source', $config['show_source'])); + config_update_value ('show_id_extra', get_parameter('show_id_extra', $config['show_id_extra'])); enterprise_include_once('include/functions_policies.php'); $enterprise = enterprise_include_once ('include/functions_skins.php'); diff --git a/pandora_console/operation/events/events_list.php b/pandora_console/operation/events/events_list.php index 9ae5c615b4..507d325a99 100644 --- a/pandora_console/operation/events/events_list.php +++ b/pandora_console/operation/events/events_list.php @@ -386,32 +386,118 @@ $table->class = "databox"; $table->head = array (); $table->data = array (); -$table->head[0] = __('Status'); -$table->align[0] = 'center'; - -$table->head[1] = __('Event name'); - -$table->head[2] = __('Agent name'); -$table->align[2] = 'center'; - -$table->head[3] = __('Timestamp'); -$table->align[3] = 'center'; - -$table->head[4] = __('Action'); -$table->align[4] = 'center'; -$table->size[4] = '80px'; - -$table->head[5] = html_print_checkbox ("allbox", "1", false, true); -$table->align[5] = 'center'; +//fields that the user has selected to show +//headers +$i = 0; +$show_fields = array(); +if ($config['show_estado']) { + $show_fields[$i] = 'estado'; + $table->head[$i] = __('Status'); + $table->align[$i] = 'center'; + + $i++; +} +if ($config['show_id_evento']) { + $show_fields[$i] = 'id_evento'; + $table->head[$i] = __('Event ID'); + $table->align[$i] = 'center'; + $i++; +} +if ($config['show_evento']) { + $show_fields[$i] = 'evento'; + $table->head[$i] = __('Event Name'); + $table->align[$i] = 'center'; + $i++; +} +if ($config['show_id_agente']) { + $show_fields[$i] = 'id_agente'; + $table->head[$i] = __('Agent name'); + $table->align[$i] = 'center'; + $i++; +} +if ($config['show_timestamp']) { + $show_fields[$i] = 'timestamp'; + $table->head[$i] = __('Timestamp'); + $table->align[$i] = 'center'; + $i++; +} +if ($config['show_id_usuario']) { + $show_fields[$i] = 'id_usuario'; + $table->head[$i] = __('User'); + $table->align[$i] = 'center'; + $i++; +} +if ($config['show_id_grupo']) { + $show_fields[$i] = 'id_grupo'; + $table->head[$i] = __('Group'); + $table->align[$i] = 'center'; + $i++; +} +if ($config['show_event_type']) { + $show_fields[$i] = 'event_type'; + $table->head[$i] = __('Event type'); + $table->align[$i] = 'center'; + $i++; +} +if ($config['show_id_agentmodule']) { + $show_fields[$i] = 'id_agentmodule'; + $table->head[$i] = __('Agent Module'); + $table->align[$i] = 'center'; + $i++; +} +if ($config['show_id_alert_am']) { + $show_fields[$i] = 'id_alert_am'; + $table->head[$i] = __('Alert'); + $table->align[$i] = 'center'; + $i++; +} +if ($config['show_criticity']) { + $show_fields[$i] = 'criticity'; + $table->head[$i] = __('Criticity'); + $table->align[$i] = 'center'; + $i++; +} +if ($config['show_user_comment']) { + $show_fields[$i] = 'user_comment'; + $table->head[$i] = __('Comment'); + $table->align[$i] = 'center'; + $i++; +} +if ($config['show_tags']) { + $show_fields[$i] = 'tags'; + $table->head[$i] = __('Tags'); + $table->align[$i] = 'center'; + $i++; +} +if ($config['show_source']) { + $show_fields[$i] = 'source'; + $table->head[$i] = __('Source'); + $table->align[$i] = 'center'; + $i++; +} +if ($config['show_id_extra']) { + $show_fields[$i] = 'id_extra'; + $table->head[$i] = __('Extra ID'); + $table->align[$i] = 'center'; + $i++; +} +if ($i != 0) { + $table->head[$i] = __('Action'); + $table->align[$i] = 'center'; + $table->size[$i] = '80px'; + $i++; + $table->head[$i] = html_print_checkbox ("allbox", "1", false, true); + $table->align[$i] = 'center'; +} $idx = 0; //Arrange data. We already did ACL's in the query foreach ($result as $event) { $data = array (); - //First pass along the class of this row $table->rowclass[] = get_priority_class ($event["criticity"]); + //print status // Grouped events if ($group_rep != 0) { if ($event["max_estado"] == 2) { @@ -426,7 +512,6 @@ foreach ($result as $event) { else { $estado = $event["estado"]; } - // Colored box switch($estado) { case 0: @@ -442,184 +527,260 @@ foreach ($result as $event) { $title_st = __('Event in process'); break; } - - $data[0] = html_print_image ($img_st, true, - array ("class" => "image_status", - "width" => 16, - "height" => 16, - "title" => $title_st, - "id" => 'status_img_'.$event["id_evento"])); + + $i = 0; + + if (in_array('estado',$show_fields)) { + $data[$i] = html_print_image ($img_st, true, + array ("class" => "image_status", + "width" => 16, + "height" => 16, + "title" => $title_st, + "id" => 'status_img_'.$event["id_evento"])); + $i++; + } + if (in_array('id_evento',$show_fields)) { + $data[$i] = $event["id_evento"]; + $i++; + } switch ($event["criticity"]) { - default: - case 0: - $img_sev = "images/status_sets/default/severity_maintenance.png"; - break; - case 1: - $img_sev = "images/status_sets/default/severity_informational.png"; - break; - case 2: - $img_sev = "images/status_sets/default/severity_normal.png"; - break; - case 3: - $img_sev = "images/status_sets/default/severity_warning.png"; - break; - case 4: - $img_sev = "images/status_sets/default/severity_critical.png"; - break; + default: + case 0: + $img_sev = "images/status_sets/default/severity_maintenance.png"; + break; + case 1: + $img_sev = "images/status_sets/default/severity_informational.png"; + break; + case 2: + $img_sev = "images/status_sets/default/severity_normal.png"; + break; + case 3: + $img_sev = "images/status_sets/default/severity_warning.png"; + break; + case 4: + $img_sev = "images/status_sets/default/severity_critical.png"; + break; } + + if (in_array('evento', $show_fields)) { + // Event description + $data[$i] = ''; + $data[$i] .= ''; + $data[$i] .= '' . io_safe_output($event["evento"]) . ''; + $data[$i] .= ''; + $i++; + + } - // Event description - $data[1] = ''; - $data[1] .= ''; - $data[1] .= '' . io_safe_output($event["evento"]) . ''; - $data[1] .= ''; - - $data[2] = ''; - if ($event["event_type"] == "system") { - $data[2] .= __('System'); - } - elseif ($event["id_agente"] > 0) { - // Agent name - $data[2] .= ui_print_agent_name ($event["id_agente"], true); - } - else { - $data[2] .= ''; - } - $data[2] .= ''; - - //Time - $data[3] = ''; - if ($group_rep == 1) { - $data[3] .= ui_print_timestamp ($event['timestamp_rep'], true); - } - else { - $data[3] .= ui_print_timestamp ($event["timestamp"], true); - } - $data[3] .= ''; - - //Actions - $data[4] = ''; - // Validate event - if (($event["estado"] != 1) and (check_acl ($config["id_user"], $event["id_grupo"], "IW") == 1)) { - $data[4] .= ''; - $data[4] .= html_print_image ("images/ok.png", true, - array ("title" => __('Validate event'))); - $data[4] .= ' '; - } - else { - /* $data[4] .= html_print_image ("images/tick.png", true, - array ("title" => __('Event validated'))).' '; */ - $data[4] .= '      '; - } - // Delete event - if (check_acl ($config["id_user"], $event["id_grupo"], "IM") == 1) { - if($event['estado'] != 2) { - $data[4] .= ''; - $data[4] .= html_print_image ("images/cross.png", true, - array ("title" => __('Delete event'))); - $data[4] .= ' '; + if (in_array('id_agente', $show_fields)) { + $data[$i] = ''; + if ($event["event_type"] == "system") { + $data[$i] .= __('System'); + } + elseif ($event["id_agente"] > 0) { + // Agent name + $data[$i] .= ui_print_agent_name ($event["id_agente"], true); } else { - $data[4] .= html_print_image ("images/cross.disabled.png", true, - array ("title" => __('Is not allowed delete events in process'))).' '; + $data[$i] .= ''; } + $data[$i] .= ''; + $i++; } - $data[4] .= ''; - $data[4] .= html_print_image ("images/eye.png", true, - array ("title" => __('Show more'))); - $data[4] .= ' '; - - // Create incident from this event - if (check_acl ($config["id_user"], $event["id_grupo"], "IW") == 1) { - if(isset($config['integria_enabled']) && $config['integria_enabled'] == 1) { - $incidents_path = 'integria_incidents/incident&tab=editor'; + if (in_array('timestamp', $show_fields)) { + //Time + $data[$i] = ''; + if ($group_rep == 1) { + $data[$i] .= ui_print_timestamp ($event['timestamp_rep'], true); } else { - $incidents_path = 'incidents/incident_detail&insert_form'; + $data[$i] .= ui_print_timestamp ($event["timestamp"], true); } - $data[4] .= ''; - $data[4] .= html_print_image ("images/page_lightning.png", true, - array ("title" => __('Create incident from event'))); - $data[4] .= ''; + $data[$i] .= ''; + $i++; } - //Checkbox - $data[5] = html_print_checkbox_extended ("eventid[]", $event["id_evento"], false, false, false, 'class="chk"', true); - array_push ($table->data, $data); - - //Hiden row with description form - $string = '';//$string = '
'; - $string .= ''; - $string .= ''; - $string .= '
'; - $string .= '' . __('Comment:') . '' . html_print_textarea("comment_".$event["id_evento"], 2, 10, '', 'style="min-height: 10px; width: 250px;"', true) . ''; - $string .= '
'; - if($event["estado"] == 0) { - $string .= html_print_select(array('1' => __('Validate'), '2' => __('Set in process')), 'select_validate_'.$event["id_evento"], '', '', '', 0, true, false, false, 'select_validate').'

'; + if (in_array('id_usuario',$show_fields)) { + $id_user = $event["id_usuario"]; + $user_name = db_get_value('fullname', 'tusuario', 'id_user', $id_user); + $data[$i] = $user_name; + $i++; } - $string .= ''; - if($event["estado"] == 2) { - $string .= html_print_button (__('Validate'), 'validate', false, '', 'class="sub ok validate_event" id="validate-'.$event["id_evento"].'"', true).'
'; - }else { - $string .= html_print_button (__('Change status'), 'validate', false, '', 'class="sub ok validate_event" id="validate-'.$event["id_evento"].'"', true).''; - } - $string .= ''; - $string .= '
'; - if($event["id_alert_am"] != 0) { - $string .= ''; - } - $string .= '
'; //
'; - $data = array($string); - - $idx++; - - $table->rowclass[$idx] = 'event_form_' . $event["id_evento"].' event_form'; - $table->colspan[$idx][0] = 10; - $table->rowstyle[$idx] = 'display: none;'; - array_push ($table->data, $data); - - //Hiden row with extended description - $string = ''; - $string .= ''; - - $string .= ''; - $string .= ''; - $string .= ''; - $string .= ''; - $string .= ''; + + if (in_array('event_type',$show_fields)) { + $data[$i] = $event["event_type"]; + $i++; + } + + if (in_array('id_agentmodule',$show_fields)) { + $data[$i] = $event["id_agentmodule"]; + $i++; + } + + if (in_array('id_alert_am',$show_fields)) { + $data[$i] = $event["id_alert_am"]; + $i++; + } + + if (in_array('criticity',$show_fields)) { + $data[$i] = $event["criticity"]; + $i++; + } + + if (in_array('user_comment',$show_fields)) { + $data[$i] = $event["user_comment"]; + $i++; + } + + if (in_array('tags',$show_fields)) { + $data[$i] = $event["tags"]; + $i++; + } + + if (in_array('source',$show_fields)) { + $data[$i] = $event["source"]; + $i++; + } + + if (in_array('id_extra',$show_fields)) { + $data[$i] = $event["id_extra"]; + $i++; + } + + + if ($i != 0) { + //Actions + $data[$i] = ''; + // Validate event + if (($event["estado"] != 1) and (check_acl ($config["id_user"], $event["id_grupo"], "IW") == 1)) { + $data[$i] .= ''; + $data[$i] .= html_print_image ("images/ok.png", true, + array ("title" => __('Validate event'))); + $data[$i] .= ' '; + } + else { + /* $data[4] .= html_print_image ("images/tick.png", true, + array ("title" => __('Event validated'))).' '; */ + $data[$i] .= '      '; + } + // Delete event + if (check_acl ($config["id_user"], $event["id_grupo"], "IM") == 1) { + if($event['estado'] != 2) { + $data[$i] .= ''; + $data[$i] .= html_print_image ("images/cross.png", true, + array ("title" => __('Delete event'))); + $data[$i] .= ' '; + } + else { + $data[$i] .= html_print_image ("images/cross.disabled.png", true, + array ("title" => __('Is not allowed delete events in process'))).' '; + } + } + + $data[$i] .= ''; + $data[$i] .= html_print_image ("images/eye.png", true, + array ("title" => __('Show more'))); + $data[$i] .= ' '; + + // Create incident from this event + if (check_acl ($config["id_user"], $event["id_grupo"], "IW") == 1) { + if(isset($config['integria_enabled']) && $config['integria_enabled'] == 1) { + $incidents_path = 'integria_incidents/incident&tab=editor'; + } + else { + $incidents_path = 'incidents/incident_detail&insert_form'; + } + $data[$i] .= ''; + $data[$i] .= html_print_image ("images/page_lightning.png", true, + array ("title" => __('Create incident from event'))); + $data[$i] .= ''; + } + $i++; + + //Checkbox + $data[$i] = html_print_checkbox_extended ("eventid[]", $event["id_evento"], false, false, false, 'class="chk"', true); + array_push ($table->data, $data); + } + //Hiden row with description form + $string = '';//$string = ''; + $string .= '
'; - $string .= '' . __('Event ID') . ''; - $string .= io_safe_output($event["id_evento"]); - $string .= '
'; - $string .= '' . __('Event name') . ''; - $string .= io_safe_output($event["evento"]); - $string .= '
'; - $string .= '' . __('Severity') . ''; - $string .= html_print_image ($img_sev, true, - array ("class" => "image_status", - "width" => 12, - "height" => 12, - "title" => get_priority_name ($event["criticity"]))); - $string .= ' '.get_priority_name ($event["criticity"]); - $string .= '
'; - $string .= '' . __('Type') . ''; - $string .= events_print_type_img ($event["event_type"], true).' '.events_print_type_description($event["event_type"], true); - $string .= '
'; - $string .= '' . __('Status') . ''; - $string .= $title_st; - $string .= '
'; - $string .= '' . __('Timestamp') . ''; - if ($group_rep == 1) { - $string .= date ($config["date_format"], $event['timestamp_rep']); + if (in_array('id_grupo',$show_fields)) { + $id_group = $event["id_grupo"]; + $group_name = db_get_value('nombre', 'tgrupo', 'id_grupo', $id_group); + $data[$i] = $group_name; + $i++; } - else { - $string .= date ($config["date_format"], strtotime($event["timestamp"])); - } - $string .= '
'; + $string .= ''; + $string .= '
'; + $string .= '' . __('Comment:') . '' . html_print_textarea("comment_".$event["id_evento"], 2, 10, '', 'style="min-height: 10px; width: 250px;"', true) . ''; + $string .= '
'; + if($event["estado"] == 0) { + $string .= html_print_select(array('1' => __('Validate'), '2' => __('Set in process')), 'select_validate_'.$event["id_evento"], '', '', '', 0, true, false, false, 'select_validate').'

'; + } + $string .= ''; + if($event["estado"] == 2) { + $string .= html_print_button (__('Validate'), 'validate', false, '', 'class="sub ok validate_event" id="validate-'.$event["id_evento"].'"', true).'
'; + }else { + $string .= html_print_button (__('Change status'), 'validate', false, '', 'class="sub ok validate_event" id="validate-'.$event["id_evento"].'"', true).''; + } + $string .= ''; + $string .= '
'; + if($event["id_alert_am"] != 0) { + $string .= ''; + } + $string .= '
'; //'; + + $data = array($string); + + $idx++; + + $table->rowclass[$idx] = 'event_form_' . $event["id_evento"].' event_form'; + $table->colspan[$idx][0] = 10; + $table->rowstyle[$idx] = 'display: none;'; + array_push ($table->data, $data); - $odd = 'rowOdd'; + //Hiden row with extended description + $string = ''; + $string .= ''; + + $string .= ''; + $string .= ''; + $string .= ''; + $string .= ''; + $string .= ''; + + $odd = 'rowOdd'; if ($event["id_agente"] != 0) { $string .= '
'; + $string .= '' . __('Event ID') . ''; + $string .= io_safe_output($event["id_evento"]); + $string .= '
'; + $string .= '' . __('Event name') . ''; + $string .= io_safe_output($event["evento"]); + $string .= '
'; + $string .= '' . __('Severity') . ''; + $string .= html_print_image ($img_sev, true, + array ("class" => "image_status", + "width" => 12, + "height" => 12, + "title" => get_priority_name ($event["criticity"]))); + $string .= ' '.get_priority_name ($event["criticity"]); + $string .= '
'; + $string .= '' . __('Type') . ''; + $string .= events_print_type_img ($event["event_type"], true).' '.events_print_type_description($event["event_type"], true); + $string .= '
'; + $string .= '' . __('Status') . ''; + $string .= $title_st; + $string .= '
'; + $string .= '' . __('Timestamp') . ''; + if ($group_rep == 1) { + $string .= date ($config["date_format"], $event['timestamp_rep']); + } + else { + $string .= date ($config["date_format"], strtotime($event["timestamp"])); + } + $string .= '
'; diff --git a/pandora_console/pandoradb.data.oracle.sql b/pandora_console/pandoradb.data.oracle.sql index 8c131c619f..22c7506f33 100644 --- a/pandora_console/pandoradb.data.oracle.sql +++ b/pandora_console/pandoradb.data.oracle.sql @@ -88,6 +88,21 @@ INSERT INTO tconfig (token, value) VALUES ('integria_url', ' '); INSERT INTO tconfig (token, value) VALUES ('netflow_path', '/var/spool/pandora/data_in/netflow'); INSERT INTO tconfig (token, value) VALUES ('netflow_interval', '300'); INSERT INTO tconfig (token, value) VALUES ('netflow_daemon', '/usr/bin/nfcapd'); +INSERT INTO tconfig (token, value) VALUES ('show_id_evento', '0'); +INSERT INTO tconfig (token, value) VALUES ('show_evento', '1'); +INSERT INTO tconfig (token, value) VALUES ('show_id_agente', '1'); +INSERT INTO tconfig (token, value) VALUES ('show_id_usuario', '0'); +INSERT INTO tconfig (token, value) VALUES ('show_id_grupo', '0'); +INSERT INTO tconfig (token, value) VALUES ('show_estado', '1'); +INSERT INTO tconfig (token, value) VALUES ('show_timestamp', '1'); +INSERT INTO tconfig (token, value) VALUES ('show_event_type', '0'); +INSERT INTO tconfig (token, value) VALUES ('show_id_agentmodule', '0'); +INSERT INTO tconfig (token, value) VALUES ('show_id_alert_am', '0'); +INSERT INTO tconfig (token, value) VALUES ('show_criticity', '0'); +INSERT INTO tconfig (token, value) VALUES ('show_user_comment', '0'); +INSERT INTO tconfig (token, value) VALUES ('show_tags', '0'); +INSERT INTO tconfig (token, value) VALUES ('show_source', '0'); +INSERT INTO tconfig (token, value) VALUES ('show_id_extra', '0'); COMMIT; END;; diff --git a/pandora_console/pandoradb.data.postgreSQL.sql b/pandora_console/pandoradb.data.postgreSQL.sql index 2d81ffcf68..964fd031f1 100644 --- a/pandora_console/pandoradb.data.postgreSQL.sql +++ b/pandora_console/pandoradb.data.postgreSQL.sql @@ -85,6 +85,21 @@ INSERT INTO "tconfig" ("token", "value") VALUES ('netflow_path', '/var/spool/pandora/data_in/netflow'), ('netflow_interval', '300'), ('netflow_daemon', '/usr/bin/nfcapd'); +('show_id_evento', '0'), +('show_evento', '1'), +('show_id_agente', '1'), +('show_id_usuario', '0'), +('show_id_grupo', '0'), +('show_estado', '1'), +('show_timestamp', '1'), +('show_event_type', '0'), +('show_id_agentmodule', '0'), +('show_id_alert_am', '0'), +('show_criticity', '0'), +('show_user_comment', '0'), +('show_tags', '0'), +('show_source', '0'), +('show_id_extra', '0'); COMMIT WORK; diff --git a/pandora_console/pandoradb_data.sql b/pandora_console/pandoradb_data.sql index 5771035d0f..d7416d4ca9 100644 --- a/pandora_console/pandoradb_data.sql +++ b/pandora_console/pandoradb_data.sql @@ -83,7 +83,22 @@ INSERT INTO `tconfig` (`token`, `value`) VALUES ('integria_url', ''), ('netflow_path', '/var/spool/pandora/data_in/netflow'), ('netflow_interval', '300'), -('netflow_daemon', '/usr/bin/nfcapd'); +('netflow_daemon', '/usr/bin/nfcapd'), +('show_id_evento', '0'), +('show_evento', '1'), +('show_id_agente', '1'), +('show_id_usuario', '0'), +('show_id_grupo', '0'), +('show_estado', '1'), +('show_timestamp', '1'), +('show_event_type', '0'), +('show_id_agentmodule', '0'), +('show_id_alert_am', '0'), +('show_criticity', '0'), +('show_user_comment', '0'), +('show_tags', '0'), +('show_source', '0'), +('show_id_extra', '0'); UNLOCK TABLES;